You are here

Cleanup Scripts....

3 posts / 0 new
Last post
madcadder
Offline
Last seen: 14 years 3 months ago
Joined: 2007-11-16 09:07
Cleanup Scripts....

I'd like to see what you all do for a cleanup script. Ya know for those lil pcs that you've found that just don't totally go away.

This is my sloppy first version: (Sitting in \PortableApps\EjectScript\App\EjectScript

@ECHO OFF
TITLE Eject Black Box Batch File

cd..
cd..
cd..
cd..
START PortableApps\TrueCrypt\App\TrueCrypt\TrueCrypt.exe /q /d /w
DEL /A:H "%APPDATA%\xpy.ini"
DEL "%APPDATA%\xpy.ini"
RMDir /S /Q "%APPDATA%\Google"
RMDir /S /Q "%APPDATA%\Mozilla"
RMDir /S /Q "%APPDATA%\SiteAdvisor"
RMDir /S /Q "%APPDATA%\Talkback"
RMDir /S /Q "%APPDATA%\TrueCrypt"
RMDir /S /Q "%APPDATA%\X-Setup Pro"
:next - for FFP CACHE
RMDir /S /Q C:\PortableApps Temp\ 
RMDir /S /Q C:\Program Files\EUSING~1
START PortableApps/EjectScript\App\EjectScript\EjectScript.exe
EXIT

[Code goes in PRE tags - RM]

I would like to figure out how to call this without the four "CD.."

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 6 months ago
Developer
Joined: 2006-12-06 18:07
cd ..\..\..\.. would replace

cd ..\..\..\.. would replace it. and in some cases, when a local version is installed, we don't want to remove the directories, in those cases, the launcher creates a backup of the local settings, puts the portable ones in place, and then when the portable app is closed, restores the originals

The developer formerly known as ZGitRDun8705

madcadder
Offline
Last seen: 14 years 3 months ago
Joined: 2007-11-16 09:07
I'd considered that, but

I'd considered that, but just hadn't gotten that far.

Part of writing programs for CAD I need to save all the current variables, replace with my needed variables, run the program, and put everything back.

Log in or register to post comments