Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Batch File - Pause Execution and View Variable Values?
Message
From
10/10/2007 12:35:48
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Windows
Category:
Computing in general
Miscellaneous
Thread ID:
01260069
Message ID:
01260080
Views:
17
>>Literally "pause" or something else? How can I see the values of the parameters sent?
>>
>>>Insert a pause inside the batch file.
>>>
>>>>Is there a way to pause execution of a batch file and see the values of the parameters sent to it? I know what I'm sending, but I want to see what the batch file thinks they are. Thanks!
>
>
>...
>echo %1 %2 %3
>pause
>...
>
For extra credit (like you need any) why would I get an error that the RUN command failed because the parameter is incorrect?
RUN EMPS_Install.bat "&scFilename" "&instsrvFilename" "&srvanyFilename"
The parameters evaluate to basically "c:\MyPath\MyFile" for each one. They are valid paths/files. This worked before I added the %1 paramemeter (and renamed 1 and 2 to 2 and 3 repectively) in order to run the delete command.

This is the batch file:

UPDATE: Added the quotes on the echo command, but still getting the error.
echo "%~f1" "%~f2" "%~f3"
pause
"%~f1" delete "EMPS"
"%~f2" EMPS "%~f3"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform