Move file action, can't use %FileTime%

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
oryagel
Posts: 92
Joined: Wed Jul 28, 2010 10:23 am

Move file action, can't use %FileTime%

Post by oryagel »

Hi,

I created a "File Availability" test.
I want to create an archive of the files, so when a new file created it will be moved to a new folder.
The problem is that the file have the same name each time.
I tried to use the %FileTime% variable in order to give a unique name.
I tried to use CMD with the move command, but when I add the %FileTime% variable I get: "The system cannot find the drive specified"
Without this variable the action succeed.

Any help would be appreciated.
Thanks
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You forgot to tell us how your command line looks like.

Regards
Alex
oryagel
Posts: 92
Joined: Wed Jul 28, 2010 10:23 am

Post by oryagel »

The command is:

Code: Select all

cmd /c move /Y  \\10.36.198.88\folder\%FileName% \\10.36.198.88\folder-old\%FileTime%_%FileName%
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

It will not work because date&time usually contains characters like ":" and "/'" that cannot be used for filename

Regards
Alex
Post Reply