You are not logged in.
Pages: 1
Hi,
I have a huge directory of files that I am trying to rename. Some, not all, of the files have a space at the beginning of the file name. I'd like to remove just those spaces. Spaces anywhere else in the file name is ok.
Thanks in advance
-Raj
Offline
That's easy...
A) Use RegEx rule:
Expression: \A(\s*)(.*)
Replace: $2
B) Use PascalScript:
begin
FileName := WideTrim(FileName);
end.
Note: the second one will remove spaces from both sides of the full filename.
Offline
Thanks!
Offline
Pages: 1