| View previous topic :: View next topic |
| Author |
Message |
KeyClick
Joined: 18 Jul 2008 Posts: 3 Location: USA
|
Posted: Fri Jul 18, 2008 3:18 pm Post subject: Looking for a better way to rename a directory |
|
|
Working on an audio automation function that includes generating an MP3 through audacity. The other thing I'm doing is storing the previous weeks raw audio (44.1 kHz, 16-bit) under a new audacity filename & sub-directory, in order to be able to go back a week or two if something is wrong w/ the MP3. For example, audio stored last week as audio.aup now becomes audio_NM1.aup, & its directory changes from audio_data to audio_NM1_data.
I'm using filecopy in a recursive manner to copy the directory into the new name & then deleting the previous directory name. All of this works fine, but the problem is that this directory of raw audio files (.au) is large, and copying them takes time.
I've seen suggestions for using renaming from an IE window, but wondered if anyone has a more straightforward manner of doing this. Any suggestions would be welcome. Thanks. |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 556 Location: MN, USA
|
|
| Back to top |
|
 |
KeyClick
Joined: 18 Jul 2008 Posts: 3 Location: USA
|
Posted: Sat Jul 19, 2008 1:51 am Post subject: |
|
|
| Thanks, but I don't want to change the files in any manner, only the top level directory name. |
|
| Back to top |
|
 |
infogulch
Joined: 27 Mar 2008 Posts: 127 Location: KC, MO
|
Posted: Sat Jul 19, 2008 2:01 am Post subject: |
|
|
| TFM wrote: | FileMoveDir:
Moves a folder along with all its sub-folders and files. It can also rename a folder.
...
| Code: | | FileMoveDir, C:\My Folder, C:\My Folder (renamed), 1 |
|
_________________
 |
|
| Back to top |
|
 |
KeyClick
Joined: 18 Jul 2008 Posts: 3 Location: USA
|
Posted: Sat Jul 19, 2008 10:20 pm Post subject: |
|
|
| infogulch: Under the FileMoveDir help, the top sentence says- "Moves a folder along with all its sub-folders and files." However, my testing has shown it doesn't work that way. Then I noticed further down in the same help file it says this "FileMoveDir moves a single folder to a new location. To instead move the contents of a folder (all its files and subfolders), see the examples section of FileMove." Thanks. |
|
| Back to top |
|
 |
|