Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
Rekenaar

Delete Directory

Recommended Posts

Rekenaar    0

Hi

I used the following command to delete a directory. Is this the best/only way to do it?

(the example will delete the menu entry "PrintMe Internet Printing" created by Acrobat Reader on the Start Menu)

command.3=cmd.exe /Q /C rd /s /q "%SYSTEMDRIVE%\Documents and Settings\All Users\Start Menu\Programs\PrintMe Internet Printing"

Thank you for this cool program.

Share this post


Link to post
Share on other sites
my2001    0

Well, as long as a method does what it is intended to it's a good method, isn't it! ;)

I'd by the way do it the same way like you. Maybe there're other methods, too, but the only way you can execute a command in WIHU is the command.x.y.z directive and a possible command to delete files is indeed cmd /c rd :) I guess another way would be using an INF-file, but don't ask me how this exactly works. But one thing is clear: INF files would be much more complicated! :)

Furthermore I don't think it would be a good idea to add an extra file deletion command to WIHU because this isn't the programm's original purpose.

Share this post


Link to post
Share on other sites

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×