Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Need help with batch program
New Posts  All Forums:Forum Nav:

Need help with batch program

post #1 of 10
Thread Starter 
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
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
post #2 of 10
Why do you need to do this with a batch process?
Main Rig
(15 items)
 
  
Reply
Main Rig
(15 items)
 
  
Reply
post #3 of 10
Thread Starter 
need it in a program because it'll take to much time to do it manually on a lot of comps...
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
post #4 of 10
Thread Starter 
arent there any batch gurus on this forum??
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
post #5 of 10
yes, why not just create a new group called admin and give that group admin rights..
My System
(13 items)
 
  
CPUMotherboardPowerCase
AMD Athlon 64 X2 4400+ DFI LANPARTY UT nF4 Ultra ENERMAX Liberty 620 WT Antec P-180 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardPowerCase
AMD Athlon 64 X2 4400+ DFI LANPARTY UT nF4 Ultra ENERMAX Liberty 620 WT Antec P-180 
  hide details  
Reply
post #6 of 10
Thread Starter 
well how do i do that in a batch file?
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
post #7 of 10
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.)
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 2.67GHz ASUS P6X58D PREMIUM NVIDIA GeForce GTX 480 6GB DDR3 9-9-9-24 
Hard DriveOptical DriveOSMonitor
Approx. 1.5TB total space PIONEER DVD-RW DVR-212D Windows 7 Ultimate Samsung T240HD 
KeyboardPowerCaseMouse
Apple Keyboard A1243 (remapped) BFG Cooler Master: Cosmos Microsoft Habu 
Mouse Pad
Black IceMat 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 2.67GHz ASUS P6X58D PREMIUM NVIDIA GeForce GTX 480 6GB DDR3 9-9-9-24 
Hard DriveOptical DriveOSMonitor
Approx. 1.5TB total space PIONEER DVD-RW DVR-212D Windows 7 Ultimate Samsung T240HD 
KeyboardPowerCaseMouse
Apple Keyboard A1243 (remapped) BFG Cooler Master: Cosmos Microsoft Habu 
Mouse Pad
Black IceMat 
  hide details  
Reply
post #8 of 10
Thread Starter 
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?
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
post #9 of 10
Thread Starter 
anyone??!
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
post #10 of 10
Thread Starter 
My god!
doesnt anyone know some sort of "fix" for this problem????
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardOSMonitor
AMD64 3500+@2500-2650mhz Asus A8N-SLI XP pro Just some junk 
KeyboardPowerCaseMouse
Crap OCZ Modstream 450W Thermaltake Shark :) MX518 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Need help with batch program