Jump to content

Bat file doesn't run . . .


Ephilei

Recommended Posts

I wrote a RunOnceEx.cmd, tested it, and copied it to an image. When I installed Windows it doesn't run. I can't run it manually either - the command window flashes up for a split second, presumably with an error message. But if I open the same file and copy and paste its contents into a new file, the new file runs perfectly. What is it about the image file that could be different than the copy-paste file?

Link to comment
Share on other sites


Well, you could post some of the lines that seem suspicious to you, or attach the whole file. I've done it and have received a great amount of help. Also check (this has happened to me) if the extension is correct; is it <b>.cmd</b> in the file name and in cmdlines.txt? I once added a.cmd file, but the command was for a .bat file.

Cheers

Edited by Sp0iLedBrAt
Link to comment
Share on other sites

Here are the contents.

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Symantec Endpoint" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Symantec.exe /s REBOOT=REALLYSUPPRESS" /f

PAUSE

EXIT

I double checked the file extensions: cmdlines.txt and RunOnceEx.cmd

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...