That is a pretty good direct translation ... but DOS doesn't quite work that way. What is the format of the parameters.txt file? Is it one line per parameter like:
FILENAME=TEST.TXT
or does it have the declare syntax like:
declare -x FILENAME="TEST.TXT"
or is it something else? If it is one line per parameter without declare, AND it is running under a command prompt under Windows NT/2000/XP/2003, you can try something like this in a batch file:
for /f "delims=" %%a in (c:\parameters.txt) do set %%a
C:\...\dsjob.exe -run PROJECTNAME JOBNAME
Do you know if the "DOS" version of this program takes the parameters from the environment? The "for" line should load all the values into the current environment if they are in the right format, so I wouldn't think there would be a need to pass them in the .exe file if it does read them from the environment.
If they are in the "declare" format, then maybe try stripping each line down to just "variable=value" syntax and try it.
Main Topics
Browse All Topics





by: leewPosted on 2006-06-14 at 14:46:12ID: 16907192
Translate the unix into englilsh (what you want to do) and we'll see if we can help. Otherwise, you may be waiting for someone who knows both well.