Jump to content

Recommended Posts

Posted (edited)

As an Old Dos Girl this was impossible in Batch-Jobs

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

Cls
@Echo Off
RD /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 by Yzöwl
Code tags added

Posted

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 %0

But I'm sure someone may benefit from the information, after all most of us want to learn something whilst here!

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