Issue with bat file when turned into exe

Convert your BATch files into EXEcutable format in one click.
Post Reply
rberger
Posts: 1
Joined: Sat Oct 20, 2007 1:52 am

Issue with bat file when turned into exe

Post by rberger » Sat Oct 20, 2007 1:56 am

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???

sKurt
Posts: 32
Joined: Mon Jul 23, 2007 5:37 am

Try this

Post by sKurt » Mon Oct 22, 2007 3:18 pm

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

Post Reply