View Single Post
  #8  
Old January 23rd 06, 10:05 AM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

Not sure what the version number refers to that you quote. I'm running what
ever cmd.exe comes with Win XP Pro SP2.
I'd be pleased to put you in touch with the guy who found this for me, but
am not keen to publish his email here. I've suggested he joins this thread,
but if you mail me directly (remove "_NO_" and "_SPAM_" from my address
below), with your preferred email address I will pass it to him.

--
Regards
Stephen Ford )

"Jeff Richards" wrote in message
...
Doesn't work for me on 4.10.2222. Your command line looks like it's for
an NT system, so it might be a function of the NT command interpreter.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Stephen Ford" . wrote in message
...
Have just found this - use the "^" character at the end of a line with a
leading space on the next line, so ...

ntbackup backup "@E:\Backup bks files\Backup-%NAME%-Data.bks" /F
"E:\Backup bkf files\Backup-%NAME%-Data-%TYPE%.bkf" /j "%NAME% %LNGTYPE%
Data Backup" /l:s /m %LNGTYPE% /n "%NAME%D" /v:yes

... becomes ...

ntbackup backup "@E:\Backup bks files\Backup-%NAME%-Data.bks" ^
/F "E:\Backup bkf files\Backup-%NAME%-Data-%TYPE%.bkf" ^
/j "%NAME% %LNGTYPE% Data Backup" ^
/l:s ^
/m %LNGTYPE% ^
/n "%NAME%D" ^
/v:yes

--
Regards
Stephen Ford

"Jeff Richards" wrote in message
...
Your editor might support a newline character which is ignored by the
command interpreter, depending on what editor you are using.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Stephen Ford" . wrote in message
...
OK, Thanks. I'd swear I've used such a character to make the code more
readable. Must be thinking of something else.