Christine_ts Posted November 18, 2008 Posted November 18, 2008 (edited) As an Old Dos Girl this was impossible in Batch-Jobsbut see, here in Xp is it possible !This is the file i have in my Start Menu\Programs\Startup Folder.The file is named: Startup.cmdCls@Echo OffRD /S /Q "%Userprofile%\Favorites\links"Del /F /Q "%Userprofile%\Start Menu\Programs\*.lnk"RD /S /Q "%Userprofile%\Start Menu\Programs\Accessories"Del /F "%Userprofile%\Start Menu\Programs\Startup\Startup.cmd"Exit Edited November 18, 2008 by Yzöwl Code tags added
Yzöwl Posted November 18, 2008 Posted November 18, 2008 Well the clear screen isn't required at the beginning since the batch would open a new console, you dont need to exit at the end if the file's already gone and the last line could then just say Del %0But I'm sure someone may benefit from the information, after all most of us want to learn something whilst here!
jaclaz Posted November 19, 2008 Posted November 19, 2008 Isn't this the good ol' self deleting batch? http://www.msfn.org/board/force-directory-...3.html&st=3http://catch22.net/tuts/selfdelIt should work on 9x too.jaclaz
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