Hello
I have managed to network a Win 7 PC and an XP PC (both wireless and using the same home router).
I aim to copy and paste all those files I have worked on over the last 24 hours from my Win 7 PC to my XP PC and this is the script I have to do it:
dir c:\data -r | ? {!($_.psiscontainer) -AND $_.lastwritetime -gt (get-date).date} |
% {Copy-Item -path $_.fullname -destination \\hyperv1\shared\backup}
I presume that I type that in in Command Prompt on a daily basis, but how would I best customise the script, please?
Let's say, for example, I have a file called WebSite10 (created in Visual Studio) that resides here:
C:\Users\Steve\Documents\Visual Studio\Website10
on my Win 7 PC and I wish to copy and paste it to the Shared Documents folder on my XP PC.
Thanks for any advice.
Bluenose