Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: 1932 winexec The parameter is incorrect.
The error when I run it is:
1932 winexec The parameter is incorrect.That's because the command gets truncated after @ in @wait). It is as if the line is too long, but it is not. I have up to 255 chars, the line is about 160 chars.
This same code works fine as a DOS .BAT file. I am using Windows NT 4.0 Any answers, workarounds? Here's my code:
Runenviron("command.com","/c ROBOCOPY \\BPRSMTL01\Releases\Current\afc c:\pgms\%Server% *.* /L /R:2 /W:30 /XF *.CMD *.ROX > C:\PGMS\RBC\TST01.TXT",@normal,@wait)
REM NAME ROBO.BAT REM note server changed ROBOCOPY \\BPRSMTL01\Releases\Current\afc c:\pgms\%1 *.* /L /R:2 /W:30 /XF *.CMD *.ROX > C:\PGMS\RBC\TST01.TXTThen your WinBatch line would be:
runenviron("robo.bat",Server,@normal,@wait)
Article ID: W12881
Filename: DOS Command Line Getting Truncated.txt
File Created: 2001:01:25:15:49:58
Last Updated: 2001:01:25:15:49:58