Jump to content
Sign in to follow this  
vnavna

How to run a DOS rename command with quotes?

Recommended Posts

vnavna

I can't get anything to work. I am trying @comspec but with no luck.

Run(@ComSpec & '/c & ren "Office 2003" "Office 2007-1"')

Share this post


Link to post
Share on other sites
jvanegmond

Your script is fine.. but you probably have the demo version of AutoIt. Please download the full version. :whistle:

Share this post


Link to post
Share on other sites
vnavna

Shortcuts.au3 (19) : ==> Unable to execute the external program.:

Run(@ComSpec & '/c & ren "Office 2003" "Office 2007-1"')

Share this post


Link to post
Share on other sites
vnavna

I have the full version.

Share this post


Link to post
Share on other sites
Danny35d

You need a space beteen ' and /c and remove the second &.

Run(@ComSpec & ' /c ren "Office 2003" "Office 2007-1"') oÝ÷ Øí«]Ù÷öÜ(®FvØ^Âäx·¶òjëh×6Run(@ComSpec & ' /c ren "Office 2003" "Office 2007-1"', @TempDir)

AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

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  

×