Sign in to follow this  
Followers 0
caddmonkey

help with _rundos

3 posts in this topic

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

Share this post


Link to post
Share on other sites

FileCopy("C:\OldName.au3","C:\Temp\NewName.au3")

This shall help <_<


I can do signature me.

Share this post


Link to post
Share on other sites

Thanks that did the trick.

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  
Followers 0