Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy all office files

Status
Not open for further replies.

mbarrett

IS-IT--Management
Jan 4, 2001
14
0
0
US
We're going to be using drive image pro to roll out windows 2K pro, but before we hose everyone's hard drive we would like to copy all *.doc, *.xls, *.pst and *.ppt files on to our file server. does anyone know of a script or program that can help us do this?

thanks in advance,
Matthew Barrett
 
I wonder if this is possible through a script because you will find the same filenames located in different directories. If you check the HD using "dir c:\*.doc /s" you will see a list of files, seperated by the directories where they are located. Supposing you take this list and use it to attempt to move these files to the server, you must recreate this structure because a command that does something like this (and this command does NOT work) "copy 'dir c:\*.doc /s' to 'x:\*.doc' /y" would result in a series of overwrites, as install.doc from the c:\adobe directory is replaced by the one from c:\windows.
I believe that you could script to the find files on the HD, and then present this info to the user. How about this for your script:

echo "These files will be deleted on Monday unless you move them to the x:\yourusername folder:"

dir c:\*.doc /s |more

dir c:\*.xls /s |more

dir c:\*.ppt /s |more


Alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top