Jump to content

WIN7 versus WIN 10 Issues?


Go to solution Solved by mr-es335,

Recommended Posts

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!

 

error.png

_CopyLnks.au3 _DelLnks.au3

Edited by mr-es335
Link to comment
Share on other sites

  • Solution
Posted (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 by mr-es335
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...