Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run a batch file require parameters
#1
I am trying to run a batch file that needs command line parameters. I tried several thing but haven't been able to figure it out. Basically i need to run a batch file off of an install cd.
I need to pass the batch file two parameters which are a user name and a password. I tried the following with no luck. There is something simple I am missing.
Macro 62001637
Code:
Copy      Help
str cline.format("/k ''D:\temp\sybaseScripts15\sybaseScripts\installSchemaAppview.bat test1 test2''")
out cline
run "%comspec%" cline "" "D:\temp\sybaseScripts15\sybaseScripts"
#2
Never mind I had something else screwed up. That works as expected!


Forum Jump:


Users browsing this thread: 1 Guest(s)