mr-es335 Posted August 30 Share Posted August 30 (edited) Good day, I hope that the day finds you well! The following script works as expected, 1) when launching the script directly, or 2) when launching the script via a shortcut/link. I have had no issues whatsoever when testing the script in Windows 7 Pro. The problems occur with Windows 10 Pro. Though the script DOES WORK when accessing the same shortcut/link from the Quick Launch area in WIN7, the very same script DOES NOT WORK when accessing the same shortcut/link from the Quick Launch area in WIN10. • The shortcuts/links are removed, but the icons still remain. [...See attached image...] ; ----------------------------------------------- #include <AutoItConstants.au3> #include <FileConstants.au3> ; ----------------------------------------------- Opt("MustDeclareVars", 1) ; ------------------------------------------------ _DelLnks() ; ------------------------------------------------ Func _DelLnks() ; Source data Local $_sSrcPath = "C:\Users\Dell\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\*.lnk" ; ------------------------------------------------ FileDelete($_sSrcPath) EndFunc ;==>_DelLnks ; ------------------------------------------------ Any ideas?? Any assistance in this matter would be greatly appreciated! Any assistance in this matter would be greatly appreciated! _CopyLnks.au3 _DelLnks.au3 Edited August 30 by mr-es335 mr-es335 Sentinel Music Studios Link to comment Share on other sites More sharing options...
mr-es335 Posted August 30 Author Share Posted August 30 Hello, This seems to help, but this is NOT what I want to do? ProcessClose("explorer.exe") Run("explorer.exe") mr-es335 Sentinel Music Studios Link to comment Share on other sites More sharing options...
Solution mr-es335 Posted August 30 Author Solution Share Posted August 30 (edited) Hello, Well, I do believe that I have "solved it"!! Prior to the deletion of the links, a text file is exited...and..apparently...time is required to execute/complete this command. Thus, I added a "Sleep(750)" command to provide this period of time...And "Voila!"...all pears to be working as expected.. ; ----------------------------------------------- #include <AutoItConstants.au3> #include <FileConstants.au3> ; ----------------------------------------------- Opt("MustDeclareVars", 1) ; ------------------------------------------------ _ExitTxt() _DelLnks() ; ----------------------------------------------- Func _ExitTxt() ; Source data Local $_sSrcPath = "D:\Install\App_Config\Digital_Audio\4_RML_Labs\P8_Text.txt" ; ----------------------------------------------- WinClose($_sSrcPath, "") Sleep(750) EndFunc ;==>_ExitTxt ; ----------------------------------------------- Func _DelLnks() ; Source data Local $_sSrcPath = "C:\Users\Dell\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\*.lnk" ; ------------------------------------------------ FileDelete($_sSrcPath) EndFunc ;==>_DelLnks ; ------------------------------------------------ Verification would be very much appreciated here! Thank you for any assistance that one may provide. UPDATE!: Just for curiosity my man..."Has anyone else come across this anomaly?" Edited August 30 by mr-es335 mr-es335 Sentinel Music Studios Link to comment Share on other sites More sharing options...
ioa747 Posted August 30 Share Posted August 30 you might find it interesting https://www.autoitscript.com/forum/topic/211276-taskpin/#comments mr-es335 1 I know that I know nothing 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