forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C.R. for batch files

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
dmonckton
Contributor
Contributor


Joined: 09 Aug 2002
Posts: 117
Location: Lewes, U.K.

PostPosted: Mon Feb 14, 2011 9:21 am    Post subject: C.R. for batch files Reply with quote

Hi All

I've been trying to replicate the below trick by writing directly in to the registry but I can't do it!

Quote:
Here's a neat trick.
Right-click on My Computer | Properties | Advanced tab | Environment Variables button.
Under System Variables, click New. In the Variable name type something like CR. Make
sure NumLock is on, in the Variable value field, press and hold the ALT key, now press
and release the 1 key on the number pad and then the 0 key on the number pad, now
release the ALT key. You should get a Square. Click OK.

Now in your batch file whenever you want a carriage return, use %CR%.


Whatever I try I end up with a nul between the D9 and the 25. Any ideas?

Thanks

David...



Registry.GIF
 Description:
 Filesize:  69.09 KB
 Viewed:  3906 Time(s)

Registry.GIF


Back to top
View user's profile Send private message
cnodnarb
Professional Member
Professional Member


Joined: 11 Sep 2002
Posts: 766
Location: Eastman, GA

PostPosted: Mon Feb 14, 2011 8:45 pm    Post subject: Reply with quote

Try manually doing the procedure, then exporting the results to a .reg file and viewing in notepad. You may find that it exports differently than it appears in the registry.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group