Have about 170 files to remove spaces from. Possible with scripts?
Also haven't tried any scripts yet, do you just paste in the try script panel?
Thanks
Remove Spaces from File Names
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Remove Spaces from File Names
Hi and Welcome!visualplastik wrote:Have about 170 files to remove spaces from. Possible with scripts?
Also haven't tried any scripts yet, do you just paste in the try script panel?
Thanks
Try the below command from address bar or try script panel:
Code: Select all
::rename s, " >";http://www.xyplorer.com/tour/index.php?page=scripting
http://88.191.26.34/XYwiki/index.php/Scripting
-
visualplastik
- Posts: 2
- Joined: 16 Nov 2009 03:30
Re: Remove Spaces from File Names
Ah man thats like magic, thx!
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Remove Spaces from File Names
Yup, scripting can make life so much easier.visualplastik wrote:Ah man thats like magic, thx!
Just so that you know what that script means, here is the explanation:
Code: Select all
::rename s, " >";rename = XY command for renaming
s = abbr for for "search and replace"
" >" = Replace all instances of space [ ] with nothing []
another example:
"A>B" = replace all As with Bs
-
admin
- Site Admin
- Posts: 66075
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Remove Spaces from File Names
I would have suggested this script:serendipity wrote:Yup, scripting can make life so much easier.visualplastik wrote:Ah man thats like magic, thx!
Just so that you know what that script means, here is the explanation::: = Its for XY to recognize that a script is startingCode: Select all
::rename s, " >";
rename = XY command for renaming
s = abbr for for "search and replace"
" >" = Replace all instances of space [ ] with nothing []
another example:
"A>B" = replace all As with Bs
Code: Select all
rename s, " ", p;FAQ | XY News RSS | XY X
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Remove Spaces from File Names
Yup my bad, "rename s, " ", p;" is much simpler.admin wrote:I would have suggested this script:serendipity wrote:Yup, scripting can make life so much easier.visualplastik wrote:Ah man thats like magic, thx!
Just so that you know what that script means, here is the explanation::: = Its for XY to recognize that a script is startingCode: Select all
::rename s, " >";
rename = XY command for renaming
s = abbr for for "search and replace"
" >" = Replace all instances of space [ ] with nothing []
another example:
"A>B" = replace all As with BsThe "a>b" syntax works as well, but rather as a special case. In general form it means: replace all single characters listed left of ">" with the string right of ">".Code: Select all
rename s, " ", p;
-
admin
- Site Admin
- Posts: 66075
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Remove Spaces from File Names
But would not work from address bar because I forgot the "::".serendipity wrote:Yup my bad, "rename s, " ", p;" is much simpler.
Better:
Code: Select all
::rename s, " ", p;FAQ | XY News RSS | XY X
XYplorer Beta Club