| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Feb 25, 2008 9:15 am Post subject: Opening .reg file in VDS? |
|
|
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.
-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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Feb 25, 2008 1:30 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Feb 25, 2008 8:40 pm Post subject: |
|
|
| 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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Feb 26, 2008 1:59 am Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Feb 26, 2008 4:36 am Post subject: |
|
|
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.  _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Tue Feb 26, 2008 8:17 am Post subject: |
|
|
| 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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Feb 26, 2008 9:11 am Post subject: |
|
|
| 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!  _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Feb 26, 2008 9:37 am Post subject: |
|
|
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 |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Wed Feb 27, 2008 8:38 am Post subject: |
|
|
| 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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Feb 27, 2008 10:09 pm Post subject: |
|
|
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.
~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 |
|
 |
|