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 


Opening .reg file in VDS?

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


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Feb 25, 2008 9:15 am    Post subject: Opening .reg file in VDS? Reply with quote

Has anyone ever tried loading a .reg file into a list?

It's odd, I can open them in any text editor with no issues, but in a list in VDS, all I get is 3 goofy freaking characters, and that's it. Sad

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Feb 25, 2008 1:30 pm    Post subject: Reply with quote

That what unicode text files look like when opened as plain ASCII. Windows XP .reg files are unicode.

I presume you're using VDS 5, because VDS 6 lists were supposed to be able to handle unicode text.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Feb 25, 2008 8:40 pm    Post subject: Reply with quote

jules wrote:
That what unicode text files look like when opened as plain ASCII. Windows XP .reg files are unicode.

I presume you're using VDS 5, because VDS 6 lists were supposed to be able to handle unicode text.


Yeah, using VDS 5 here.

Anyway to open it using Binfile and kill the unicode junk in it?

Thanks,
~Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Feb 26, 2008 1:59 am    Post subject: Reply with quote

Garrett,
You should be able to use the TEXT option and then remove the '.' or Just cycle through the file with BINFILE in HEX mode and remove the 00's for the NULL bytes. You really should just build a alphabet with all the viewable characters and just extract those instead of just removing the NULL bytes.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Feb 26, 2008 4:36 am    Post subject: Reply with quote

Thanks....

.... Or CR could send me that VDS 6 Reg that I've always wanted and have been waiting for. Then I could use VDS 6 instead of VDS 5. Twisted Evil

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Tue Feb 26, 2008 8:17 am    Post subject: Reply with quote

Garrett wrote:
Anyway to open it using Binfile and kill the unicode junk in it?

You can use the DOS type command to convert it to ANSI. I use it often when using xml files with VDS 5.

Code:
RUNH CMD /C /A TYPE @chr(34)%%UnicodeFile@chr(34) > @chr(34)%%AnsiFile@chr(34), wait

_________________
cheers

Dave
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Feb 26, 2008 9:11 am    Post subject: Reply with quote

DaveŽ wrote:
Garrett wrote:
Anyway to open it using Binfile and kill the unicode junk in it?

You can use the DOS type command to convert it to ANSI. I use it often when using xml files with VDS 5.

Code:
RUNH CMD /C /A TYPE @chr(34)%%UnicodeFile@chr(34) > @chr(34)%%AnsiFile@chr(34), wait


Oooooo... Sweet! Thanks Dave! Smile

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Feb 26, 2008 9:37 am    Post subject: Reply with quote

Well, that did the job Dave, except for some reason the /A was causing blank files to be output though. So I dropped that and it works fine. What was the /A suppose to do, or what is it for? For "ANSI" or "ASCII"?

Well either way, just using the TYPE alone seems to do the job.

Thanks,
~Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Wed Feb 27, 2008 8:38 am    Post subject: Reply with quote

Garrett wrote:
What was the /A suppose to do, or what is it for? For "ANSI" or "ASCII"?

It's supposed to cause the output or pipe to be ANSI. But I just checked some of my scripts and I never use /A.

I also noticed that I always include 'wait 1' on the line after the 'type' command. Even though the script waits for the command to finish, slow PCs still need to wait up to a second for Windows to finish writing the new file.

_________________
cheers

Dave
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Feb 27, 2008 10:09 pm    Post subject: Reply with quote

Luckily, my program won't be touching any older pc's. It's a tool for changing accounts for game I play, and the game won't work on anything less than 700 Mhz for sure.

But just to be safe, I'll put at least a WAIT "0.2" in there.

Again, thanks for the solution for my problem here... That really helped out and kept my little project going here. Smile

~Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
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