INTERACT FORUM
More => Old Versions => JRiver Media Center 20 for Windows => Topic started by: Vincent Kars on April 14, 2015, 02:17:27 pm
-
Rename, Move and Copy files
A very powerful tool I use often.
Also very useful to screw up the file system.
You want to remove something from a long path/file name but you leave a space at the end of a path or a file name.
This is something Windows can’t stand.
It faithfully displays it in Explorer but you can’t access the files anymore.
Likewise, JRiver can’t roll back.
Hence a feature request: check that path/filename is valid (including no trailing spaces) before executing the operation.
-
I just tried this on Win7 and changed the directory to:
D:\test\bit\ adding a space and then the filename.
No problem. It worked.
Are the files on a local drive? Or on a NAS?
A specific example might help.
-
In our code, we do this:
// fix the filename
JRFileSystem::FixFilename(strNewFilename, true, _T('_'), false);
Inside of that it calls:
// get rid of leading and trailing white space
strFilename.Trim();
So there shouldn't be trailing spaces before the name or after the extension.
We don't trim in between the name and extension (so blah .blah) would pass through. Is that the issue?
Thanks.
-
I renamed a file to [Name] .ape and it worked fine.
-
Sorry, it is not in the file name but in the Path
C:\Users\Vincent\Music\Work\Onslow - Copy\Onslow-Quatuor-RuggieriV2\01-02-George_Onslow-II_adagio-SMR.flac
Use the Rename/Move etc but leave a space in the path
C:\Users\Vincent\Music\Work\Onslow - \Onslow-Quatuor-RuggieriV2\01-02-George_Onslow-II_adagio-SMR.flac
Now in Win (8.1) explorer you can't delete the folder because of the space
Likewise JRiver can delete the track but not the folder.
-
Sorry, it is not in the file name but in the Path
C:\Users\Vincent\Music\Work\Onslow - Copy\Onslow-Quatuor-RuggieriV2\01-02-George_Onslow-II_adagio-SMR.flac
Use the Rename/Move etc but leave a space in the path
C:\Users\Vincent\Music\Work\Onslow - \Onslow-Quatuor-RuggieriV2\01-02-George_Onslow-II_adagio-SMR.flac
Now in Win (8.1) explorer you can't delete the folder because of the space
Likewise JRiver can delete the track but not the folder.
But we already handle those spaces:
// get rid of any mixture of periods and white space preceding or following directory separators
And when I test and put " [Artist] " in the rule dialog, it trims the spaces off.
-
I use the Find&Replace
-
Ah, I see.
Next build:
Fixed: Using Find and Replace in the Rename, Move & Copy Files dialog would incorrectly allow putting a space at the end of a folder name.
-
This looks related
http://yabb.jriver.com/interact/index.php?topic=80520.msg548092#msg548092 (http://yabb.jriver.com/interact/index.php?topic=80520.msg548092#msg548092)
Next build:
Fixed: Using Find and Replace in the Rename, Move & Copy Files dialog would incorrectly allow putting a space at the end of a folder name.
Awesome
I never could delete the folders that I was having issues with.
I believe I copied all files to a new drive then formatted to get rid of them.
-
Fixed: Using Find and Replace in the Rename, Move & Copy Files dialog would incorrectly allow putting a space at the end of a folder name.
:)
-
I never could delete the folders that I was having issues with.
You can but it is a bit tedious
Start CMD.exe
CD to the parent directory
DIR/X for 8.3 file name
RMDIR 8.3 fiename/s
Have a happy DOS