run command from desktop

  • Thread starter Thread starter Loane Sharp
  • Start date Start date
L

Loane Sharp

Hi there

Is it possible to run a particular command from the command prompt icon on
the desktop? I need to run the command regularly and opening up the command
prompt, changing directories, etc. is quite cumbersome.

Best regards
Loane
 
You have to write (code) a batch or script file with your commands; then,
you can schedule the file to run at the desired times.
Alternatively, you can use a keyboard input recorder - some keyboards come
with macro capability.
Michael
 
Yes. That's a textbook case for a batch file. Use Notepad to create a
file - eg mycommand Write the command into the file exactly like you type
it at the prompt. After saving the file, change the name from
mycommand.txt to mycommand.cmd
(Or you can save it that way at the outset if your put the name in quotes in
the Notepad save dialog.)
When testing it initially, it is useful to put a pause command as the line
after your command so you can see any error messages or output.
 
Hi there

Is it possible to run a particular command from the command
prompt icon on
the desktop? I need to run the command regularly and opening
up the command
prompt, changing directories, etc. is quite cumbersome.

Best regards
Loane

Write a batch script (Also knowen as a shell script) that dose it for
you, what ever it is you do that is.
 
Back
Top