JoGa Posted September 6, 2015 Share Posted September 6, 2015 Greetings,running D:\Programs\AutoIt3\AutoIt3.exe X:\Test.au3 with Administrator rights I get the errorLine 0 "(File X:\Test.au3)"Error: openning the file X: is the networkdrive No problem when running as standard user. Any hints would be very much appreciated. Link to comment Share on other sites More sharing options...
Jfish Posted September 6, 2015 Share Posted September 6, 2015 Greetings, it would be best if you posted your code and used the code tags <>. That way folks would not be guessing. Without any more info I would try to include #RequireAdmin at the top of your script and see if that helps for admin mode when running as admin. If that works you could use IsAdmin to create a condition to require it or not. Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt Link to comment Share on other sites More sharing options...
jguinch Posted September 6, 2015 Share Posted September 6, 2015 Are you using RunAs or RunAsWait ?If it is the case, you probably have to remap the drive in the script running as admin, or copy and run it locally Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
computergroove Posted September 6, 2015 Share Posted September 6, 2015 What OS are you using to run the script? Are you running the script right after a reboot? There is a known issue with Windows 7 where mapped drives don't reconnect after a reboot. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
JoGa Posted September 7, 2015 Author Share Posted September 7, 2015 Thanks for your reply;The OS is windows 7, the script is run 20 minutes+ after reboot.It must have to do with Windows security stuff, perhaps I have to declare the network drive as save or so...The code:GUICreate("Test", 200, 30, 500, 700) Local $L1 = GUICtrlCreateLabel("", 100, 10, 30, 30) GUISetState(@SW_SHOW) Local $t=10 do GUICtrlSetData($L1, $t) Sleep(500) $t -= 1 until(NOT $t) Exit(0) Link to comment Share on other sites More sharing options...
KaFu Posted September 7, 2015 Share Posted September 7, 2015 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
computergroove Posted September 7, 2015 Share Posted September 7, 2015 There is a supposed fix for the problem but I tried it and could not get it to work so I tried a script that disconnects the network drive on startup and reconnects the drive and the same issue continued to happen. If you have the power then I would switch operating systems and test the result. It's really unprofessional for Microsoft not to have fixed this issue yet. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html 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