Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: Copy a file from C: to %userprofile%?

Reply
 
Old 03-18-2009   #1 (permalink)
Pegasus [MVP]


 
 

Re: Copy a file from C: to %userprofile%?


<nickaclark@xxxxxx> wrote in message
news:7a8005d8-5bcb-4569-a7bb-35fd51944615@xxxxxx
Quote:

> Does anyone have a script for this? I have done research all morning
> long to find this and cannot a simple vbs script to just copy a file
> from one location to %userprofile%
>
> Can anyone help?!
Here are a couple of options:
a) Use a simple batch file:
@echo off
xcopy /d /y "d:\xxx.txt" "%UserProfile%\Desktop"
b) Use the CopyFile method of the File System Object.
You'll find a fully explained example in the downloadable
file script56.chm (with lots of other useful stuff too!).



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
explorer.exe /root,%userprofile% doesn't work Vista General
vista can't copy large files? another XP file-copy bug? Vista General
explorer /root,%userprofile% Vista General
safe userprofile on another partition Vista General
Server based Userprofile Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46