meoit Posted October 27, 2016 Share Posted October 27, 2016 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. Link to comment Share on other sites More sharing options...
Anoop Posted October 27, 2016 Share Posted October 27, 2016 (edited) Function to Create Shortcut Function to delete shortcut You need to specify the appropriate SendTo folder path in parameter "lnk" - Full path and file name of the shortcut. Edited October 27, 2016 by Anoop meoit 1 Link to comment Share on other sites More sharing options...
Anoop Posted October 27, 2016 Share Posted October 27, 2016 (edited) Below are the methods to access different SendTo shortcut folders: AutoIt - Get Current User Desktop Folder Path AutoIt - Get Desktop Folder Path for 'All Users' AutoIt - Get My Documents Folder AutoIt - Get Documents Folder Path for 'All Users' Edited October 27, 2016 by Anoop meoit 1 Link to comment Share on other sites More sharing options...
meoit Posted October 27, 2016 Author Share Posted October 27, 2016 (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 October 27, 2016 by meoit Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted October 27, 2016 Share Posted October 27, 2016 (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 October 27, 2016 by ViciousXUSMC meoit 1 Link to comment Share on other sites More sharing options...
meoit Posted October 27, 2016 Author Share Posted October 27, 2016 Yes, your method belong to Current User. What about All Users ?. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted October 27, 2016 Share Posted October 27, 2016 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. meoit 1 Link to comment Share on other sites More sharing options...
meoit Posted October 27, 2016 Author Share Posted October 27, 2016 Do you have this code?. I am noob member in coding. Link to comment Share on other sites More sharing options...
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