skhips
11-03-2002, 04:23 AM
Hi, I know this maybe seems a it basic but I am just starting to experiment with batch files.
Problem - 100+ users on NT4 standalones in remote locations, all moving to network NT4 boxes, all using MS Office 97.
On standalones all data is kept in folder called DATA in root of C:
Create batch file that moves all data into correct folders ready for network machines e.g *.doc must be in word folder etc.
I have created a file that will nearly do it, but only if all files are in the folder DATA and not in any subdirectories which most are as the users have created their own subfolders.
How do I make the Copy *.doc command also go into all subdirectories.
I hope someone can help.
As an extra how do I add a Yes / No option for the User to answer for e.g "Have you already backed up your Data, press Y to continue"
I know this isnt proper programmng but i thought this was the closest area.
@echo off
md personal
cd personal
md Word
md Excel
md powerpoint
md Access
md General
cd..
cd Data
copy *.doc c:\personal\word /v
copy *.xls c:\personal\excel /v
copy *.mdb c:\personal\access /v
copy *.ppt c:\personal\powerpoint /v
Many Thanks for any help
Kev
:)
Problem - 100+ users on NT4 standalones in remote locations, all moving to network NT4 boxes, all using MS Office 97.
On standalones all data is kept in folder called DATA in root of C:
Create batch file that moves all data into correct folders ready for network machines e.g *.doc must be in word folder etc.
I have created a file that will nearly do it, but only if all files are in the folder DATA and not in any subdirectories which most are as the users have created their own subfolders.
How do I make the Copy *.doc command also go into all subdirectories.
I hope someone can help.
As an extra how do I add a Yes / No option for the User to answer for e.g "Have you already backed up your Data, press Y to continue"
I know this isnt proper programmng but i thought this was the closest area.
@echo off
md personal
cd personal
md Word
md Excel
md powerpoint
md Access
md General
cd..
cd Data
copy *.doc c:\personal\word /v
copy *.xls c:\personal\excel /v
copy *.mdb c:\personal\access /v
copy *.ppt c:\personal\powerpoint /v
Many Thanks for any help
Kev
:)