| View previous topic :: View next topic |
| Author |
Message |
rberger
Joined: 20 Oct 2007 Posts: 1
|
Posted: Sat Oct 20, 2007 1:56 am Post subject: Issue with bat file when turned into exe |
|
|
I have a pretty simple bat file that I am trying to compile into an exe to change passwords on some 2003 SP2 servers.
net user darius password
net user voilmove password /add
net localgroup "administrators" voilmove /add
When I run it as a bat file it is fine, but when I try to run the compiled exe it does nothing. What is it that I could be doing wrong??? |
|
| Back to top |
|
 |
|
|
sKurt
Joined: 23 Jul 2007 Posts: 32
|
Posted: Mon Oct 22, 2007 3:18 pm Post subject: Try this |
|
|
To debug this;
if you have @ECHO OFF
turn it into
::@ECHO OFF
so you can watch the process
and put a pause after each line to see if it gives a response
so you have
::@ECHO OFF
NET USER DARIUS PASSWORD
PAUSE
NET USER VOILMOVE PASSWORD /ADD
PAUSE
NET LOCALGROUP "ADMINISTRATORS" VOILMOVE /ADD |
|
| Back to top |
|
 |
|