Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dos .bat won't start in script on windows NT

Status
Not open for further replies.

bigdan

Technical User
Nov 13, 2000
41
CA
Hi,

I tried to write an aspect script which start a .bat dos program at the end but it's not working with windows NT.

I have try what's gete(below) send in a previous thread without any success. When i double clik on the .bat he is running fine!!!

Any help will be very appreciate!!!

thanks Dan


gete (TechnicalUser) May 12, 2001
You can use that (100% will work):

=======================================================
proc main
string CmdLine
integer x
strfmt CmdLine "C:\Mapi\sendmail.bat"
run CmdLine x
endproc
=======================================================

For CmdLine you can write any path you need.
x is a variable (you can use for other aplication but it must be here)
It should be work.
Use exactly in this form (included x variable)

Good luck,
Geo
 
I posted this on the Symantec Procomm forum in response to your message over there. Reposting here to make sure you get it:

I tried this on my NT machine and my batch file executed as expected. However, while reading the documentation of the run command in the ASPECT help file, I noticed this: "run cannot be used for DOS internal commands and batch files; use the dos command instead." Try switching to the dos command and see if that works any better for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top