Vindicator209 Posted January 13, 2007 Share Posted January 13, 2007 Hi, im trying to find a command to rename the folder that the script is currently in, is that possible? and if so, what command(s) should I look at? thanks [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
BALA Posted January 13, 2007 Share Posted January 13, 2007 DirMove From Help File: "Because AutoIt lacks a "DirRename" function, use DirMove to rename a folder!" [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com Link to comment Share on other sites More sharing options...
Somerset Posted January 13, 2007 Share Posted January 13, 2007 (edited) if you try to change the folder's name that script is located in, while running you will get the sharing violation error. Edited January 13, 2007 by beerman Link to comment Share on other sites More sharing options...
Vindicator209 Posted January 13, 2007 Author Share Posted January 13, 2007 Yea, I tried that, but I can't do that with the directory that the script is in... $name=InputBox("Name","Whats the name of your pet?") DirMove(@ScriptDir,StringTrimRight(@ScriptFullPath,5)&$name) (dir name is mypet) [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Somerset Posted January 13, 2007 Share Posted January 13, 2007 directory X, where the script is running. load something outside of the X directory to change the name of the directory. then to reload the orginal script. 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