You are not logged in.
Pages: 1
Hi!
I want to move a file to a folder with its name. To do this, I use the "Insert" rule. I insert the Meta Tags ":File_FilePath:\:File_FileName:" and the "Replase current name" function. The Preview shows no errors. But when trying to rename, Renamer throws an error: "Cannot create file or folder. (82)".
What am I doing wrong?
Offline
Let's say you have a file:
C:\Data\File.ext
Your renaming rule will generate a new name like this:
C:\Data\File.ext\File.ext
In order to move the file to this location, the folder "File.ext" must be created first, but this can't be done because there is a file at this path. Hence, you get an error "Cannot create file or folder".
Maybe you can drop the file extension from the folder name, i.e. naming the folder "File" instead of "File.ext", so to avoid the conflict?
In that case you need to use the following meta tags:
:File_FolderPath:\:File_BaseName:\:File_FileName:
This will generate a new name like this:
C:\Data\File\File.ext
Alternatively, you can rename in two steps. First, insert a dummy character in front of all filenames and rename. Then, use your original rule but also strip the dummy character, so to avoid the previously encountered conflict.
Offline
Let's say you have a file:
C:\Data\File.ext
Maybe you can drop the file extension from the folder name, i.e. naming the folder "File" instead of "File.ext", so to avoid the conflict?
In that case you need to use the following meta tags:
:File_FolderPath:\:File_BaseName:\:File_FileName:
This will generate a new name like this:
C:\Data\File\File.ext
Thanks, it works perfectly!
Offline
Pages: 1