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: Mass file copy adding hour of day to the destination filename
Topic Summary:
Created On: 03/29/2018 07:50 AM
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.
 03/29/2018 07:50 AM
User is offline View Users Profile Print this message

Author Icon
flowers
Artisan (200-499)

Posts: 259
Joined: 01/08/2009

Hi,

Ideally, I want to use one line of code to copy all files from one directory to another destination but need to preface the hour of the day to the destination filename.

Example: filename.txt becomes 10-filename.txt if done between 10am and 11am

Can I do this in one "file system" copy statement or do I have to loop thru contents of a folder doing it one file at a time?

Thanks,
Rich

 Category Survey
AutoMate 10 version:
Windows version:
 04/02/2018 08:48 AM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hi Rich,

You will need to loop through the files in order to go ahead and add the preface to the filename.

I apologize for the inconvenience.

 Category Survey


-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
Statistics
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 516 guests browsing this forum, which makes a total of 516 users using this forum.

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

Sitemap Network Automation Software Blog