Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Passing commandline parameters that have spaces with DOSCMD (https://www.kinook.com/Forum/showthread.php?t=390)

sridhar 04-01-2004 05:11 PM

Passing commandline parameters that have spaces with DOSCMD
 
I am trying to run a batch file that takes 2 parameters.
The second parameter can contain spaces. So I use the following in VisualBuild:
%DOSCMD% mybatchfile.bat param1 "param two"

This fails. If I just use
mybatchfile.bat param1 "param two"
it is successful when run visually.
But, this fails if I schedule it to run using the visbuild command line version.

kinook 04-01-2004 05:16 PM

Try

%DOSCMD% call mybatchfile.bat param1 "param two"


All times are GMT -5. The time now is 10:24 PM.


Copyright © 1999-2023 Kinook Software, Inc.