nas8060 Posted August 13, 2005 Posted August 13, 2005 I dont know how to do the silent install for certian programs and dont have time given im attending two schools, have a full time job and a girlfriend (so...two full time jobs) I wrote a small batch file to copy the install files straight to the desktop. Then I wrote another one to delete the files after I have installed them, only I cant find a switch that works without having to answer "Y" and enter after each one. Here is the batch file. If I miss anything or you need more information please let me know. CLS@ECHO offTitle * * * Time To Clean Your Desk * * *Echo.Echo Deleting Setup Program FilesDEL "%systemdrive%\Install\FreeAV" "%systemdrive%\Documents and Settings\All Users\Desktop" /YDEL "%systemdrive%\Install\REGISTRY" "%systemdrive%\Documents and Settings\All Users\Desktop" /YDEL "%systemdrive%\Install\VCDgear" "%systemdrive%\Documents and Settings\All Users\Desktop" /YDEL "%systemdrive%\Install\Riochet" "%systemdrive%\Documents and Settings\All Users\Desktop" /YDEL "%systemdrive%\Install\dB PowerAMP" "%systemdrive%\Documents and Settings\All Users\Desktop" /Ypause
Siginet Posted August 13, 2005 Posted August 13, 2005 (edited) Deletes one or more files.DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] namesERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names names Specifies a list of one or more files or directories. Wildcards may be used to delete multiple files. If a directory is specified, all files within the directory will be deleted. /P Prompts for confirmation before deleting each file. /F Force deleting of read-only files. /S Delete specified files from all subdirectories. /Q Quiet mode, do not ask if ok to delete on global wildcard /A Selects files to delete based on attributes attributes R Read-only files S System files H Hidden files A Files ready for archiving - Prefix meaning notIf Command Extensions are enabled DEL and ERASE change as follows:The display semantics of the /S switch are reversed in that it showsyou only the files that are deleted, not the ones it could not find.Or it looks like you want to delete the entire folders.Try the RD command.Removes (deletes) a directory.RMDIR [/S] [/Q] [drive:]pathRD [/S] [/Q] [drive:]path /S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree. /Q Quiet mode, do not ask if ok to remove a directory tree with /SEcho Deleting Setup Program FilesRD /S /Q "%systemdrive%\Install\FreeAV" "%systemdrive%\Documents and Settings\All Users\Desktop"RD /S /Q "%systemdrive%\Install\REGISTRY" "%systemdrive%\Documents and Settings\All Users\Desktop"RD /S /Q "%systemdrive%\Install\VCDgear" "%systemdrive%\Documents and Settings\All Users\Desktop"RD /S /Q "%systemdrive%\Install\Riochet" "%systemdrive%\Documents and Settings\All Users\Desktop"RD /S /Q "%systemdrive%\Install\dB PowerAMP" "%systemdrive%\Documents and Settings\All Users\Desktop"P.S. You can find most cmd switches by typing the command and using the switch /? Edited August 13, 2005 by Siginet
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now