Jump to content

help with _rundos


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...