running an application from a batchfile

Status
Not open for further replies.

keba

In Runtime
Messages
107
I need to run a program like mspaint, or any other program from a batch file, in WinXP. Can anyone provide me with a template? I need to use parameters as well.

START "mspaint.exe" /high "C:\WINDOWS\system32\mspaint.exe"
START C:\WINDOWS\system32\mspaint.exe
START mspaint.exe

I tried the start command, but no dice. Does anyone remember the syntax?
 
it's start just like you have it as the 2nd line.
start %systemroot%\system32\mspaint.exe will work
 
it's start just like you have it as the 2nd line.
start %systemroot%\system32\mspaint.exe will work

Wow... why didn't I get results when I tried that before? Anyway, thank you Dr. IP, it works! =)

EDIT:
I just found out why it failed to work before. For some reason notepad saved the batch as an UTF-8 type file, and it wouldn't work until i changed that to ANSI. Hate when stuff like that happens xD
 
Status
Not open for further replies.
Back
Top Bottom