A Windows 98 & ME forum. Win98banter

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.

Go Back   Home » Win98banter forum » Windows 98 » Shell
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Suppress End of line character in batch filese



 
 
Thread Tools Display Modes
  #1  
Old January 12th 06, 03:14 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

What is the character (s) that go at the end of a line in a batch that
suppresses the end of line, and makes the next line an extention of the
first.

Regards
Stephen Ford


  #2  
Old January 13th 06, 09:03 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

The line length limit is 127 characters. There is no line continuation
character.
http://support.microsoft.com/?id=69563
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Stephen Ford" . wrote in message
...
What is the character (s) that go at the end of a line in a batch that
suppresses the end of line, and makes the next line an extention of the
first.

Regards
Stephen Ford



  #3  
Old January 15th 06, 10:33 AM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

OK, Thanks. I'd swear I've used such a character to make the code more
readable. Must be thinking of something else.
--
Regards
Stephen Ford

"Jeff Richards" wrote in message
...
The line length limit is 127 characters. There is no line continuation
character.
http://support.microsoft.com/?id=69563
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Stephen Ford" . wrote in message
...
What is the character (s) that go at the end of a line in a batch that
suppresses the end of line, and makes the next line an extention of the
first.

Regards
Stephen Ford





  #4  
Old January 16th 06, 09:33 AM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

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.



  #5  
Old January 21st 06, 01:28 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

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.





  #6  
Old January 22nd 06, 01:40 AM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

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.







  #7  
Old January 22nd 06, 01:46 AM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

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.







  #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.








  #9  
Old January 23rd 06, 09:50 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

On Mon, 23 Jan 2006 09:05:47 -0000, "Stephen Ford"
put finger to keyboard and
composed:

Not sure what the version number refers to that you quote. I'm running what
ever cmd.exe comes with Win XP Pro SP2.


This is a Win98 group.

- Franc Zabkar
--
Please remove one 'i' from my address when replying by email.
  #10  
Old January 24th 06, 10:42 AM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Suppress End of line character in batch filese

CMD.EXE that comes with XP is _very_ different than DOS that comes with W98.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Stephen Ford" wrote in message
...
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 06:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.