Overclock.net banner

Need help with batch program

955 9
im making a batch file that creates an account called ola and adds it too teh administrator group. the only problem is that im using a swedish version of xp and admin group is administratörer, ö isnt allowed in dos so can i create a new group without ö, in dos, that has admin powers??

code

Net user ola qwerty12 /add
net localgroup /add administratörer ola
1 - 10 of 10 Posts

·
Registered
Joined
·
637 Posts
I think this might assist you. Make your code like this:

@ECHO OFF
MODE CON: CP SELECT=437
Net user ola qwerty12 /add
net localgroup /add administratörer ola

You can substitute MODE CON: CP SELECT=437 with GRAFTABL 437
(same thing)

What that will do is change the DOS Code Page to United States. When I tested this it worked for me and I hope it's your solution.

Xaine99

(Side note, just in case: ALT+NumPad 148 = ö if you need to type it within a DOS Console instead of pasting it from the CharMap.)
 

·
Registered
Joined
·
138 Posts
Discussion Starter · #8 ·
thx for the reply, but it doesnt work.
any other ideas are much appreciated!

the problem is that dos cant read the Ö in my batch file...
are there any way to create a new admin group and give it admin powers in dos/batch?
 
1 - 10 of 10 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top