Hi guy's
it's been a while since i needed some help but this is one strange cookie
i'm writing a script that checks what language of Office is installed on a client,
and im writing the information to an Excel sheet.
AutoIt
; Tool t.b.v. Office pakket installatie ; controleer welke machine welke taal van Office geinstalleerd heeft. #include "Excel.au3" $settings = $dir & "\Settings.ini" $Row = 2 $settings = $dir & "\Settings.ini" $User_name = 0 $User_account = 0 $Machine_naam = 0 $Machine_Office = 0 $oexcel_exists = 0 ; 1: created new 2: existed $oexcel_exists = 1 ;functie om gebruikers gegevens te verzamelen. $Machine_Office = "?" $msg= RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources\","SKULanguage") $msg= RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Common\LanguageResources\","SKULanguage") $Machine_Office = "NLD" $Machine_Office = "ENG" ;schrijf de credentials naar excel en sla excel op $Row = $Row + 1
now when i run it directly from Scite it works perfectly,
when i compile it to an .exe and run it from the directory where the exe is created it works fine, but as soon as i move the exe to an 2nd drive partition , the program runs and the _ExcelBookSaveAs() stops working, if i use an exsisting excel file it works so the only part that stops this script is the _ExcelBookSaveAs()
the version of Autoit i use is : 3.3.6.1
the comments in this script are in dutch if any questions arise wich need commenting for you guys let me know