-
January 26th, 2010, 12:26 PM #1Junior Member
- Join Date
- Jan 2010
- Posts
- 2
The syntax of the command is incorrect.
hi
I am writing long but simple batch (attached). 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 or in another batch.
I tried to resave the batch, also in other editors, several times , but the result is the same.
editor: Notepad++, ANSI encoding, DOS/Windows format
What the **********, could be the catch ?
10x for help
p.s.
would be anybody willing to review and "tune up" the batch?
-
January 28th, 2010, 05:29 AM #2Junior Member
- Join Date
- Jan 2010
- Posts
- 2
solution
just in a case somebody else will suffer....
"::" signed remarks cannot be used before combined commands [e.g. if exist...(something, somenthig, ...)]
use "REM" instead and better not to use "::" at all
10x to Rems from Petri's forum
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Command line option syntax error window.
By fella in forum Technical SupportReplies: 0Last Post: December 27th, 2008, 10:00 AM -
incorrect command line error message
By sandienc in forum Technical SupportReplies: 1Last Post: November 4th, 2008, 08:25 AM -
Send Command in PHP in Command line
By jeremychin in forum Webmastering and ProgrammingReplies: 1Last Post: September 8th, 2005, 05:41 PM -
Playing around with Command Prompt. Command that makes comp beep?
By mjolnir1134 in forum General Tech DiscussionReplies: 3Last Post: March 8th, 2005, 08:43 PM -
Help...Error msg: "Incorrect command line parameters". Windows Installer?
By thunderb0lt in forum Applications and Operating SystemsReplies: 7Last Post: August 22nd, 2003, 07:22 AM



LinkBack URL
About LinkBacks



Reply With Quote

A 100 gallon tanked turned into a terrarium for turtles would be cool! Purchased a nice supply of fireworks today for Memorial day...
Is It Just Me? v233893843