Need help with batch program - Overclock.net - An Overclocking Community

Forum Jump: 

Need help with batch program

 
Thread Tools
post #1 of 10 (permalink) Old 02-08-2006, 07:48 AM - Thread Starter
New to Overclock.net
 
Join Date: Jun 2005
Location: Earth?!
Posts: 130
Rep: 0
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

Windows in a nutshell:
WINDOWS DID NOT DETECT ANY KEYBOARD.
PRESS F1 TO CONTINUE
Zlim is offline  
Sponsored Links
Advertisement
 
post #2 of 10 (permalink) Old 02-08-2006, 08:31 AM
Some call me... Bifford
 
BFRD's Avatar
 
Join Date: Dec 2004
Location: Carrollton, TX
Posts: 5,264
Why do you need to do this with a batch process?



BFRD is offline  
post #3 of 10 (permalink) Old 02-08-2006, 10:02 AM - Thread Starter
New to Overclock.net
 
Join Date: Jun 2005
Location: Earth?!
Posts: 130
Rep: 0
need it in a program because it'll take to much time to do it manually on a lot of comps...

Windows in a nutshell:
WINDOWS DID NOT DETECT ANY KEYBOARD.
PRESS F1 TO CONTINUE
Zlim is offline  
Sponsored Links
Advertisement
 
post #4 of 10 (permalink) Old 02-10-2006, 11:10 AM - Thread Starter
New to Overclock.net
 
Join Date: Jun 2005
Location: Earth?!
Posts: 130
Rep: 0
arent there any batch gurus on this forum??

Windows in a nutshell:
WINDOWS DID NOT DETECT ANY KEYBOARD.
PRESS F1 TO CONTINUE
Zlim is offline  
post #5 of 10 (permalink) Old 02-10-2006, 11:24 AM
New to Overclock.net
 
Join Date: Jan 2006
Location: Oklahoma City
Posts: 98
Rep: 10 (Unique: 10)
yes, why not just create a new group called admin and give that group admin rights..
Shock.r is offline  
post #6 of 10 (permalink) Old 02-10-2006, 01:45 PM - Thread Starter
New to Overclock.net
 
Join Date: Jun 2005
Location: Earth?!
Posts: 130
Rep: 0
well how do i do that in a batch file?

Windows in a nutshell:
WINDOWS DID NOT DETECT ANY KEYBOARD.
PRESS F1 TO CONTINUE
Zlim is offline  
post #7 of 10 (permalink) Old 02-10-2006, 02:35 PM
New to Overclock.net
 
Join Date: Dec 2005
Location: Kansas City
Posts: 404
Rep: 105 (Unique: 87)
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.)
Xaine99 is offline  
post #8 of 10 (permalink) Old 02-11-2006, 02:42 PM - Thread Starter
New to Overclock.net
 
Join Date: Jun 2005
Location: Earth?!
Posts: 130
Rep: 0
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?

Windows in a nutshell:
WINDOWS DID NOT DETECT ANY KEYBOARD.
PRESS F1 TO CONTINUE
Zlim is offline  
post #9 of 10 (permalink) Old 02-14-2006, 11:05 AM - Thread Starter
New to Overclock.net
 
Join Date: Jun 2005
Location: Earth?!
Posts: 130
Rep: 0
anyone??!

Windows in a nutshell:
WINDOWS DID NOT DETECT ANY KEYBOARD.
PRESS F1 TO CONTINUE
Zlim is offline  
post #10 of 10 (permalink) Old 02-14-2006, 12:29 PM - Thread Starter
New to Overclock.net
 
Join Date: Jun 2005
Location: Earth?!
Posts: 130
Rep: 0
My god!
doesnt anyone know some sort of "fix" for this problem????

Windows in a nutshell:
WINDOWS DID NOT DETECT ANY KEYBOARD.
PRESS F1 TO CONTINUE
Zlim is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off