Jump to content

Recommended Posts

Posted

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


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

Posted

The ----------------- doesnt exist in the actual file - put it there as an indicator of where the file was breaking.

Any ideas?

TIA

Oli

Posted

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.

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