asp.net - How do I resolve '@echo' is not a recognized command -
i've implemented scott hanselman's method keeping dev/qa/prod version of web.config: http://www.hanselman.com/blog/commentview.aspx?guid=93bfa4b3-44cd-4681-b70e-f4a2b0386466
for reason when compile project error message in output window.
ideas?
------ build started: project: abc.flims.web, configuration: development cpu ------ "c:\projects\ballyhoo-trunk\src\abc.flims.web\scripts/copyifnewer.bat" "c:\projects\ballyhoo-trunk\src\abc.flims.web\web.config.development" "c:\projects\ballyhoo-trunk\src\abc.flims.web\web.config" '@echo' not recognized internal or external command, operable program or batch file.
here script file:
@echo off echo comparing 2 files: %1 %2 if not exist %1 goto file1notfound if not exist %2 goto file2notfound fc %1 %2 if %errorlevel%==0 goto nocopy echo files not same. copying %1 on %2 copy %1 %2 /y & goto end :nocopy echo files same. did nothing goto end :file1notfound echo %1 not found. goto end :file2notfound copy %1 %2 /y goto end :end echo done.
the file unicode encoded , has byte order mark (bom) @ start throwing off batch processor.
save ascii file , should ok. can in notepad
- select save as...
file
menu , ensure encoding
dropdown set ansi
.
Comments
Post a Comment