5 replies
by elmagoal
Try modifying this bat file we use at one point.
rem hload1 username
net use y: \\server\folder
IF EXIST c:\winnt goto winnt
IF NOT EXIST C:\winnt goto windows
:winnt
path=c:\;c:\winnt;c:\winnt\system32
IF EXIST y:\%1 goto excel
md y:\%1
goto network
:windows
path c:\windows;c:\;c:\windows\command
IF EXIST y:\%1 goto excel
md y:\%1
goto network
:network
net use >y:\%1\drives.txt
hostname >y:\%1\hostname.txt
goto excel
:excel
IF EXIST y:\%1\excel goto excel1
mdy:\%1\excel
goto excel1
:excel1
xcopy c:\*.xl* /s y:\%1\excel /i /D:3-5-99
goto word
:word
IF EXIST y:\%1\word goto word1
md y:\%1\word
goto word1
:word1
xcopy c:\*.doc /s y:\%1\word /i /D:3-5-99
goto wordper
:wordper
IF EXIST y:\%1\wordper goto wordper1
md y:\%1\wordper
goto wordper1
:wordper1
xcopy c:\*.wpd /s y:\%1\wordper /i /D:3-5-99
goto ppoint
:ppoint
IF EXIST y:\%1\ppoint goto ppoint1
md y:\%1\ppoint
goto ppoint1
:ppoint1
xcopy c:\*.ppt /s y:\%1\ppoint /i /D:3-5-99
goto adobe
:adobe
IF EXIST y:\%1\adobe goto adobe1
md y:\%1\adobe
goto adobe1
:adobe1
xcopy c:\*.pdf /s y:\%1\adobe /i /D:3-5-99
goto lotus
:lotus
IF EXIST y:\%1\lotus goto lotus1
md y:\%1\lotus
goto lotus1
:lotus1
xcopy c:\*.wk* /s y:\%1\lotus /i /D:3-5-99
goto exchng
:exchng
IF EXIST y:\%1\exchng goto exchng1
md y:\%1\exchng
goto exchng1
:exchng1
xcopy c:\*.ost /s y:\%1\exchng /i /d:3-5-99
xcopy c:\*.pst /s y:\%1\exchng /i /d:3-5-99
xcopy c:\*.arc /s y:\%1\exchng /i /d:3-5-99
xcopy c:\*.pab /s y:\%1\exchng /i /d:3-5-99
goto scuts
:scuts
IF EXIST y:\mbeaury\scuts goto scuts1
md y:\mbeaury\scuts
goto scuts1
:scuts1
xcopy c:\windows\profiles\*.lnk /s y:\%1\scuts /i /d:3-5-99
goto access
:ACCESS
IF EXIST y:\%1\access goto access1
md y:\%1\access
goto access1
:access1
xcopy c:\*.md? /s y:\%1\access /i /d:3-5-99
goto end
rem IF EXIST C:\NOTES got
by lkoller
I tried to respond without rating this and it wouldn't let me. I tried it and I couldn't get it to work. Probably because I have a ton of questions. My email is Lkoller@bigfoot.com.
Does the batch file start at the words "net use y:\\" after the rem statement? Is Word, Excel, etc on your network or local hard drive? Is there any additional comments/documentation? Thanks.
by lkoller
by lkoller
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending