Add date/time stamp on the transfered file and param file

Advertisement

Nesingh
Joined:
Posts:
1
Location:
India

Add date/time stamp on the transfered file and param file

Hi,
i have created a powershell script to transfer the file, in that i am transferring multiple files from the destination. so because of the name conflict i want to add datetime stamp on the each transferred file. Please advise how to achieve this ?
and in addition, is it possible to maintain source and destination path in a separate file and pass those in the script ?

Thanks,
Neeraj

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Add date/time stamp on the transfered file and param file

Nesingh wrote:

i have created a powershell script to transfer the file, in that i am transferring multiple files from the destination. so because of the name conflict i want to add datetime stamp on the each transferred file. Please advise how to achieve this ?
Please show us your current code.

and in addition, is it possible to maintain source and destination path in a separate file and pass those in the script ?
Do you want to load source and destination path from text files?

Last edited by martin on 2015-02-09; edited 1 time in total

Reply with quote

cldotson
Guest

Adding file dates

Was this question ever answered. It would be very helpful to see the file date. Are there any instructions?

Reply with quote

Advertisement

You can post new topics in this forum