If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#7
|
|||
|
|||
Suppress End of line character in batch filese
The reference was my site:
http://home.att.net/~gobruen/progs/d...ch.html#lbreak I didn't have it up at the time, but Stephen's question got me to dig it up. "Jeff Richards" wrote in message ... Nice Find. Do you have a reference? FWIW my preference would be to build those strings into variables (as you've already done for some) and reference the variables from the backup command line. -- 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. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Batch file for IE 6 - 5.5 dll replacement (explorer hang issue with bulk move/delete file operations) | Ivan Bútora | General | 5 | December 16th 05 02:58 AM |
batch programming | Tobias Goller | Software & Applications | 4 | April 12th 05 10:21 PM |
line error box | barry martin | General | 0 | August 1st 04 02:51 AM |
running many files through the same command | Ivan Bútora | General | 32 | July 12th 04 01:20 AM |