Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Batch File - Pause Execution and View Variable Values?
Message
De
10/10/2007 12:35:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01260069
Message ID:
01260080
Vues:
18
>>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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform