Running a batch file in DOS

Chipp Walters chipp at chipp.com
Tue Dec 11 13:37:01 EST 2001


Jerry,

Chris tells me to use cmd.exe instead of command.com

so try this:

cmd /c c:\test.bat

   cmd            -- short for cmd.exe
   /c             -- run then terminate
   c:\test.bat    --filepath of batch file to run

-Chipp

-----Original Message-----
From: use-revolution-admin at lists.runrev.com
[mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Chipp Walters
Sent: Tuesday, December 11, 2001 3:17 AM
To: Jerry Daniels; use-revolution at lists.runrev.com
Subject: RE: Running a batch file in DOS


Jerry,

The /C is a switch which tells DOS to close after running the batch file.

test.bat is the name of the file...in the same directory as the command.com
file.
because it is difficult to always know you have a correct path, it is easier
to just put the file in the same directory as command.com

you might try fooling around with a designated path like "C:\bin\newmon.bat"
It would look like:

open process "C:\WINDOWS\COMMAND.COM /C C:\bin\newmon.bat"

hope it works!

-----Original Message-----
From: Jerry Daniels [mailto:jerry at danielsfamily.org]
Sent: Tuesday, December 11, 2001 2:34 AM
To: 'Chipp Walters'
Subject: RE: Running a batch file in DOS


Specifically, the batch file I'm trying to open is

-----Original Message-----
From: Chipp Walters [mailto:chipp at chipp.com]
Sent: Tuesday, December 11, 2001 2:08 AM
To: use-revolution at lists.runrev.com; jerry at danielsfamily.org
Subject: RE: Running a batch file in DOS


Jerry,

try:

open process "C:\WINDOWS\COMMAND.COM /C test.bat"

this runs the batch file "test.bat" from within the windows directory

-Chipp

>>I got one for you...how do you run a batch file under Windows?

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list