Jump to content
Sign in to follow this  
xvital

i want to copy a file but ,,,

Recommended Posts

xvital

hi , i have a question about this line

FileCopy("AutoHotkey.exe", "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\",9)

i want to copy it but when i run it , it create a folder in desktop , i want to copy it not to create a folder

Share this post


Link to post
Share on other sites
xvital

i tried to change the flag to 0 , 1 and it didnt work

Share this post


Link to post
Share on other sites
jdelaney

FileCopy("AutoHotkey.exe", "%userprofile%AppDataRoamingMicrosoftWindowsStart MenuProgramsStartupAutoHotkey.exe",1)

edit: i like how you are using autoit to copy autohotkey :P

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
xvital

FileCopy("AutoHotkey.exe", "%userprofile%AppDataRoamingMicrosoftWindowsStart MenuProgramsStartupAutoHotkey.exe",1)

edit: i like how you are using autoit to copy autohotkey :P

XD , i made the file from autohotkey so i dont want to make it again ,

thanks i tried this and it worked :

FileCopy("AutoHotkey.exe", @userprofiledir&"AppdataRoamingMicrosoftWindowsStart MenuProgramsStartup",0)

Share this post


Link to post
Share on other sites
jdelaney

also, @startmenudir will get you deeper in than userprofile


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
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
Sign in to follow this  

×