You are not logged in.
Pages: 1
Hello. My name is Ivan, from Spain I am not used to pascal scripting and I have a doubt. Let us say I have a folder name subjects. In this folder I have maths, sciences, and so on. In these folders I have files named 001.mp3 002.mp3 and so on. I would need to have only one folder named subjects. In this folder thereshold should be only files. Those files should be names maths001.mp3 matsh002.mp3 and so on, and the same for the rest of folders. I would need therefore to move files and delete emptied folders. I am not sure if I am myself quite explanatory. Thanks in advance for all. Ivan.
Offline
Your problem description is not very clear. Can you explain with an example of the Before and After cases?
For example,
Before
Subjects\Maths\001.mp3
Subjects\Maths\002.mp3
Subjects\Science\001.mp3
Subjects\Science\002.mp3
Subjects\English\001.mp3
Subjects\English\002.mp3
After
Subjects\Maths001.mp3
Subjects\Maths002.mp3
Subjects\Science001.mp3
Subjects\Science002.mp3
Subjects\English001.mp3
Subjects\English002.mp3
Offline
Hello Andrew and thanks for your answer. The structure of folders and files that I have and I need is exactly as you just wrote . Would there be any pascal rule or other mean to achieve this? Thanks again for all. Regards, Ivan.
Offline
Thanks Andrew for clarifying. I had my problem with this description too, but had no time to ask back.
Hi Ivan, welcome.
To add the parent folder name ADD an rule INSERT, chose InsertMetaTag :File_FolderName:
To move an file you can try old DOS syntax. To move one folder up ADD an rule INSERT and type ..\ ( dot dot back slash)
You can also combine this two rules:
- ADD an rule INSERT
- type ..\
- chose > InsertMetaTag > :File_FolderName:
Then PREVIEW, is all O.K.? then RENAME
Then delete the empty folders.
Note: you should test this with some test files first
Last edited by Stefan (2008-12-23 22:34)
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Thanks Stefan for that trick.
But I have a doubt for Denis, on the program after doing that, the "new path"column doesn't show the final result... and after doing the rename also ramain the "..\" on the actual path.
I wanted to know a litle more about it because, for long paths, it might be problematic because renamer gives the warning of max path limit and after that doesn't let you rename.
To explain my point of view, imagine I have this file:
C:\Downloads\ReNamer\renamer.zip
INSERT: ..\..\ReNamer\
Program result:
C:\Downloads\ReNamer\..\..\ReNamer\renamer.zip
Real result:
C:\ReNamer\renamer.zip
You can see some significant diference on the lenght of the path
Is only an example. I'm not complaining about it, just wanted to share this thoughts.
If this software has helped you, consider getting your pro version. :)
Offline
Pages: 1