Search found 3 matches

by peterko
28 Jan 2010 03:37
Forum: DOS Batch Forum
Topic: The syntax of the command is incorrect.
Replies: 4
Views: 14659

Re: The syntax of the command is incorrect.

thanks and thanks, I checked and rechecked and never came to my mind that remarked lines could cause the problem
replacing them solve the error
by peterko
27 Jan 2010 01:22
Forum: DOS Batch Forum
Topic: The syntax of the command is incorrect.
Replies: 4
Views: 14659

Re: The syntax of the command is incorrect.

Here it is completely. ~~~~~~~~~~~~~~~~~~ :: requirements :: copy robocopy into %WINDIR%\system32\ :: copy pskill into %WINDIR%\system32\ :: copy doff into %WINDIR%\system32\ @echo off cls echo. set debug_txt= REM :: debug 0 REM ::@@@@@@@@@@@@@ REM if exist "%PROGRAMFILES%\Saveresults\saveresul...
by peterko
26 Jan 2010 09:57
Forum: DOS Batch Forum
Topic: The syntax of the command is incorrect.
Replies: 4
Views: 14659

The syntax of the command is incorrect.

hi I am writing long but simple batch. In some stage I got "The syntax of the command is incorrect." in few commands, I am sure are correct (e.g. "IF EXIST "%PROGRAMFILES%\Saveresults\saveresult.exe" ( ". Same command works properly when written in Command Prompt window...