meoit

Deleting shortcut in the SendTo folder (For Current users and All users)

8 posts in this topic

Hellow ALL.

Sorry for my bad English.

I found in the AutoIT document, but I can not found Function to create/delete Shortcuts in the SendTo folder.

(Includes Current users and All users.)

Where can I find it ?.

Thanks.

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

There is a difference between the path of the SendTo folder in Windows Vista/7/8/10 and Windows XP. Anyway I also thank you.

Somebody help me.

Edited by meoit

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

C:\Users\<username>\AppData\Roaming\Microsoft\Windows\SendTo

_FileListToArrayRec() for Users, and go through an array to put the desired shortcut.  

That or if that is too complicated do a run at startup script that runs as the current user.

 

For XP just add a check if StringinStr(@OSVersion, "XP") then...

Edited by ViciousXUSMC
1 person likes this

Share this post


Link to post
Share on other sites

Yes, your method belong to Current User. What about All Users ?.

Share this post


Link to post
Share on other sites

As a log in script it would get all users as they log in, as a recursive search on the users folder it would get all users at once.

Also since your doing a deletion it looks like instead of an add, you could even just search the C: for all instances of that shortcut and delete them all.

1 person likes this

Share this post


Link to post
Share on other sites

Do you have this code?. I am noob member in coding.

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