Jump to content
Sign in to follow this  
caddmonkey

help with _rundos

Recommended Posts

caddmonkey

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
i542

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.