Windows Batch file - can't get variable to store fill file name with spaces
I'm trying to setup a batch file that will run a series of files on
multiple processors, I've got the code worked out, but the one remaining
problem I have is in this section of the code. Basically, the %%f does
store the full file name including characters after a space. However, when
it gets to the %1 it drops off all the characters after a space in the
file name.
Does anyone know how to change this so it retains the full file name? Thanks!
for /R %%f in (*.nas) do call :runnastran %%f
:runnastran start "mywindow" "c:\test\nastran.exe" "c:\test\nastran.ini" "%1"
pause
No comments:
Post a Comment