Running a batch file in DOS

Chipp Walters chipp at chipp.com
Tue Dec 11 17:45:48 EST 2001


Jerry,

great...fyi the "C/" part is "/C" 

just so you know.

-Chipp

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


Chip,

This worked:

  do "open process" && quote & "C:\bin\newmon.bat" & quote
  do "close process" && quote & "C:\bin\newmon.bat" & quote

I tried everything I could think of in the message box until I got the
batch file to run. And then the message script wouldn't work in the
button, so I resorted to "do" as you see above. Maybe I had a typo. Who
knows? I'm low on sleep.

I couldn't figure out how to get the "C/" part of the script to work and
time was running out, so the cmd window remained open behind the
PowerBuilder app that I opened.

Thanks, again for the help.

Jerry

-----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

_______________________________________________
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