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 20:37:44
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
10/10/2007 16:49:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01260069
Message ID:
01260185
Vues:
23
>Why do you need to send parameters to a batch file you just created? Can't you just insert the values as such?
>
>
text to InstallBatchCommands textmerge noshow
>"<<m.scFilename>>" EMPS "<<m.srvAnyFileName>>"
>endtext
>
>
>And that's your batch file. You may want to put fullpaths into your variables, because sys(2023) may return a 8.3 shorthand path - which may still work fine in a .bat file, but may be a bit unclear when read by a human.

Great idea! Much cleaner.

Ok, now I've got this problem. In the code below, the RUN causes a DOS error that the file cannot be found:
m.InstallBatchFilename = "C:\DOCUME~1\JAY\LOCALS~1\TEMP\EMPS_Install.bat"
RUN <<m.InstallBatchFilename>>
But, if I type the line below in the RUN dialog box under the Start menu, then it works.
C:\DOCUME~1\JAY\LOCALS~1\TEMP\EMPS_Install.bat
I've tried different variations for the RUN command in the first code block, but nothing seems to work. Any ideas?

Nevermind. I tried this:
RUN /N &InstallBatchFilename
And it worked, but why did I need the /N switch?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform