Jump to content

Batch file stops before finishing? Help...


Recommended Posts

Hi

OK, having done 23 installs so far, the "cleanup" batch file always kills itself just before it finishes. Here is my code:

ECHO.
ECHO Removing Program Installation Directories
ECHO Please wait...
rmdir %systemdrive%\Install /S/Q

--------------------------

ECHO.
ECHO Removing Temporary Driver Installation Directories
ECHO Please wait...
rmdir %systemdrive%\Drivers /S/Q

It always kills itself where i have put the -------

Anyone ideas?

TIA

Oli

Link to comment
Share on other sites


Hi

OK, having done 23 installs so far, the "cleanup" batch file always kills itself just before it finishes.  Here is my code:

ECHO.
ECHO Removing Program Installation Directories
ECHO Please wait...
rmdir %systemdrive%\Install /S/Q

--------------------------

ECHO.
ECHO Removing Temporary Driver Installation Directories
ECHO Please wait...
rmdir %systemdrive%\Drivers /S/Q

It always kills itself where i have put the -------

Anyone ideas?

TIA

Oli

Put ECHO in front of the ---------------------------- and it should work.

Link to comment
Share on other sites

You are deleting the folder with the batch in, before it has finished running.

Switch them around and make sure that the last command is the one deleting the folder in which your running batch resides.

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