|
Answer» Problem I'm looking for the way to process a PARAMETER passed from a X aplication to a Y batchfile.
Details The application was develop using delphi and call the batch file when finish the process of some task. The delphi application pass the local path to the batch file.
I make a batch file that open NOTEPAD only to make sure that the aplication is calling the batch file, but when I make OTHERS test like @ECHO %1 that supose to show the parameter that the application is passing I get nothing.
Any HELP?
I'm not familiar with Delphi, but perhaps you can set an environment variable and then have your batch file use it. In other words have Delphi set some variable, say LocalPath, and then the batch file can use it as batchpgm %localpath%
OR
since the Delphi program is calling the batch file, pass the parameter with the call and use the %1 in the batch file.
Hope this helps.
|