Solved

Copy a file and time it.

Posted on 2011-09-21
1
431 Views
Last Modified: 2012-05-12
I am looking for a powershell script that I can run via a scheduled task OR run Manually that will:

Copy a file from a UNC Share to the C:\Test Directory and time how long it takes
Then I want the script to copy that same file from the C:\Test directory to the R:\data directory and time how long it takes.

Then create a report that shows how long each part took and calculate the average transfer rate.
0
Comment
Question by:brittonv
1 Comment
 
LVL 14

Accepted Solution

by:
athomsfere earned 500 total points
Comment Utility
You could use this and modify it

$File1Start = Get-Date
Copy C:\TestDirectory C:\Destination -Recurse
$File1End = Get-Date

$File2Start = Get-Date
Copy C:\Destination C:\Destination2 -Recurse
$File2End = Get-Date

echo $File1Start
echo $File1End

echo $File2Start
echo $File2End
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
This article will help you understand what HashTables are and how to use them in PowerShell.
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now