Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: How to remove "%20" from all file names in a given folder.
Topic Summary: Renaming files.
Created On: 01/27/2014 08:47 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 01/27/2014 08:47 PM
User is offline View Users Profile Print this message

Author Icon
n00b (>6 posts)

Posts: 1
Joined: 01/27/2014

Evening - I am new to Automate.

I need to write a process to remove "%20" from all of the file names in a given folder.

I am hoping someone can let me know if Automate can be used to accomplish this task.  If so, what Automate Tasks should I use?


 01/28/2014 01:19 AM
User is offline View Users Profile Print this message

Author Icon
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Hi Donald,
I don't know on which AutoMate version you are working.
But the flavor of a solution could be :
loop the folder to get each filename in turn into a variable (fn)
then inside the loop rename the file fn into %Replace(fn,"%%20","")%

That should do it. The %% in the expression is there to escape the %. Otherwise the expression should fail.

Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 918 guests browsing this forum, which makes a total of 918 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog