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???
Issue with bat file when turned into exe
-
- Posts: 32
- Joined: Mon Jul 23, 2007 5:37 am
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
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