caddmonkey Posted November 9, 2007 Posted November 9, 2007 Hello, I am new to this so try and forgive me. I want to copy a file and then rename it to something else. I looked in the help file and found that there is no rename function in autoit. I found that I can run a dos command and so I want to use the dos rename. I've got it to copy the file and rename the file but now I want to use the @UserNmae variable for the file name. Can someone look at it and tell me where I am going wrong? FileCopy("C:\temp\new folder\test.au3", "C:\temp\") _RunDOS("rename""C:\temp\test.au3" & "@UserName & ".au3") Thanks, caddmonkey
i542 Posted November 9, 2007 Posted November 9, 2007 FileCopy("C:\OldName.au3","C:\Temp\NewName.au3") This shall help I can do signature me.
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