Traskiz Posted July 3, 2014 Share Posted July 3, 2014 (edited) Hello, I can't copy file(3.cfg) running (1.exe) that runs file (2.exe) with admin rights that have filecopy()1.exe: Global $sUserName = "Administrator" Global $sPassword = "" RunAs($sUserName, @ComputerName, $sPassword, 0, "2.exe", "", @SW_SHOWMAXIMIZED) 2.exe: FileCopy("3.cfg", "C:Program Files (x86)Mozilla Firefox", 1) 3.cfg is empty file all files is in C:test How to fix that? on windows xp it's working.. :/ I tried to write full path and everything...:| I think this is because of win 7 64 bit version... Edited July 3, 2014 by Traskiz Link to comment Share on other sites More sharing options...
spudw2k Posted July 3, 2014 Share Posted July 3, 2014 I am thinking maybe the working dir context changes to "C:\Windows\System32\". Try changing FileCopy("3.cfg" to FileCopy(@ScriptDir & "3.cfg", to rule out a bad path. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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