Page 1 of 1

Spaces in folder file name

PostPosted: Mon Feb 19, 2024 9:58 am
by Prostoy86
No renaming if the file or folder name contains a space. :( Please tell me what needs to be done to solve the problem?

Example:
"C:\Path\BRC.exe" /Dir:"C:\Users\User\Desktop" /Pattern:"Dir 1" /NoFiles /FIXEDNAME:"Name" /NODUP /Execute

Spaces in name

PostPosted: Mon Feb 19, 2024 1:58 pm
by Luuk
/Pattern wont accept spaces as name-characters, so /Pattern:"Dir 1" only matches Dir or 1.
Could try using /Pattern:"Dir?1" but remember this can also match names like Dir21 or Dir-1.
If spaces must be matched, can use /RegExp without rename-parameters like /FixedName...

"C:\Path\BRC.exe" /Dir:"C:\Users\User\Desktop" /Pattern:"Dir?1" /NoFiles /RegExp:"^Dir 1$:Name" /NoDup /Execute

Re: Spaces in name

PostPosted: Mon Feb 19, 2024 2:49 pm
by Prostoy86
[quote="Luuk"]

Thank you Brother! May God grant you long life!
From Russia with Love!