palba Posted November 18, 2008 Share Posted November 18, 2008 Hi All, I'm trying to find a way to modify a Directory name. I'm using FileMove but doesn't work. Is there another command to use? Thanks Paul Link to comment Share on other sites More sharing options...
DaRam Posted November 18, 2008 Share Posted November 18, 2008 It is in the Help, Use DirMoveBecause AutoIt lacks a "DirRename" function, use DirMove to rename a folder!Hi All,I'm trying to find a way to modify a Directory name.I'm using FileMove but doesn't work.Is there another command to use?Thanks Paul Link to comment Share on other sites More sharing options...
Madza91 Posted November 18, 2008 Share Posted November 18, 2008 (edited) Why not doesn't work? It works for me $OldName = "old folder name" $NewName = "Some New folder name" DirCreate(@DesktopDir & "\" & $OldName) MsgBox(0,"Ok", "New folder is created with name: "&$OldName&", and it will be renamed to: "&$NewName) DirMove(@DesktopDir & "\"& $OldName, @DesktopDir & "\"& $NewName) Edited November 18, 2008 by n3nE [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
DaRam Posted November 18, 2008 Share Posted November 18, 2008 OP was using FileMove Why not doesn't work? It works for me $OldName = "old folder name" $NewName = "Some New folder name" DirCreate(@DesktopDir & "\" & $OldName) MsgBox(0,"Ok", "New folder is created with name: "&$OldName&", and it will be renamed to: "&$NewName) DirMove(@DesktopDir & "\"& $OldName, @DesktopDir & "\"& $NewName) Link to comment Share on other sites More sharing options...
palba Posted November 18, 2008 Author Share Posted November 18, 2008 Thank Guys! You are genius! The right command was DirMove! Great! Thanks ! Thanks ! All the best Paul Link to comment Share on other sites More sharing options...
Madza91 Posted November 18, 2008 Share Posted November 18, 2008 Hehe, you're Welcome [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
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