Abyssmedia.com Forum Index Abyssmedia.com
Abyssmedia Support Forums
 
  FAQ    Search    Memberlist    Usergroups   Register 
  Profile    Log in to check your private messages    Log in 

Issue with bat file when turned into exe

 
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler
View previous topic :: View next topic  
Author Message
rberger



Joined: 20 Oct 2007
Posts: 1

PostPosted: Sat Oct 20, 2007 1:56 am    Post subject: Issue with bat file when turned into exe Reply with quote

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

PostPosted: Mon Oct 22, 2007 3:18 pm    Post subject: Try this Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Abyssmedia.com Forum Index -> Quick Batch File Compiler All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2011 phpBB Group