Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
captemo
- Posts: 3
- Joined: 02 Feb 2012 18:38
#1
Post
by captemo » 02 Feb 2012 18:47
Okay I am trying to make a batch file that will automatically change my password once I plug in a USB. I have everything working with the autorun.inf and the .ico file I am using but the batch file seems to not be working properly. What I believe I need to do is to make it so that the new password is put into the cache instead of only using the echo command. Here is my script: (hopefully I have given you enough info. lemme know if you need more)
:top
@echo off
cls
net user %username% *
pause
goto top
The goto top is so that I can repeatedly try the script so that I can be sure that it is or is not working... Thanks!

-
captemo
- Posts: 3
- Joined: 02 Feb 2012 18:38
#2
Post
by captemo » 02 Feb 2012 19:19
Okay I also have been experimenting and looking around... Windows 7 disables the autorun.inf files for a USB drive so I put them onto a disk. When I do anything the autorun.inf file does not work, will not load anything, etc., and I have it just like any other autorun file I have seen made by anyone else... I don't know what I am doing wrong... Please help me with this too... I am so bad at this... Here is my autorun.inf script:
[autorun]
open=H4x0Rs.bat
icon-H4x0Rs.ico
label=H4x0Rs
I chose H4x0Rs as an interesting choice for the heck of it... Most likely to scare my friends... Thanks!

-
captemo
- Posts: 3
- Joined: 02 Feb 2012 18:38
#3
Post
by captemo » 02 Feb 2012 19:43
Okay scratch out the first post. I figured it out but because I am trying to get it to work from a limited account, I don't have the privileges. I got it though. So only answer the one about the autorun.inf please. Thank you!
