.BAT FILE

G

Guest

Hi, in my workplace, we are using a workgroup. the server is running XP and
the majority of the other computers are using windows 98.

before i had started, someone had created a .BAT file which deletes useless
files, directories etc. The server then was on a windows 98 machine.

I have changed it since then, my question is will the .BAT file still work?
(the file is below).

Also, i want to create 2 shortcuts on the desktop, but this .BAT file wont
let me. when the computers restart, they read the .BAT file and always have
the same desktop icons. (it deletes the one's that i had created). How do i
configure the .BAT file, (or is there any other ways), so it will let me have
my own desktop icons. The server's desktop is completely diff to the all the
other computers.

The .BAT file is as follows:

@echo off
cls
echo LIA
deltree /y c:\windows\recent\*.* /y c:\windows\favori~1\*.* /y
c:\windows\temp\*.tmp /y c:\windows\*.tmp /y c:\windows\*.bmp /y
c:\windows\system\3dflow~1.scr /y c:\windows\system\3dflyi~1.scr /y
c:\windows\system\3dmaze~1.scr /y c:\windows\system\3dtext~1.scr /y
c:\windows\system\flying~1.scr /y c:\windows\channe~1.scr
c:\windows\desktop\*.*


cd \
deltree /y c:\windows\startm~1\*.*
cd c:\windows\startm~1\

md Control.{21ec2020-3aea-1069-a2dd-08002b30309d}
cd c:\windows\startm~1\13:10 03/02/03
md Programs
cd c:\windows\startm~1\programs\
md Accessories
md Office
md Startup


cd \
copy \\pc1\look_copy\startup\startm~1\*.* c:\windows\desktop\*.*

cd \
copy \\Pc1\look_copy\startup\startm~1\contro~1.{21 c:\windows\startm~1\*.*

rem access
Cd \
copy \\pc1\look_copy\startup\startm~1\programs\access~1\*.*
c:\windows\startm~1\programs\access~1\*.*

rem office
cd \
copy \\pc1\look_copy\startup\startm~1\programs\office\*.*
c:\windows\startm~1\programs\office\*.*

rem startup
cd \
copy \\pc1\look_copy\startup\startm~1\programs\startup\*.*
c:\windows\startm~1\programs\startup\*.*

attrib +h c:\windows\startm~1\programs\startup

rem start menu
Cd \
copy \\pc1\look_copy\startup\startm~1\*.* c:\windows\startm~1\*.*

cd \
copy \\pc1\look_copy\startup\startm~1\contro~1.{21 c:\windows\startm~1\*.*

rem copy programs
Cd \
copy \\pc1\look_copy\startup\startm~1\programs\*.*
c:\windows\startm~1\programs\*.*

rem examples
Cd \
copy \\pc1\look_copy\startup\startm~1\programs\access~1\*.*
c:\windows\startm~1\programs\access~1\*.*


attrib +h c:\windows +h c:\recycle +h +r c:\progra~1

rem time 14:50
rem date 11-19-2002

deltree /y c:\recycled\*.*

deltree /y c:\windows\*.bmp

cd \
copy \\pc1\Look_Copy\startup\LIASetup.bmp c:\windows\*.*
cd \
copy \\pc1\Look_Copy\startup\windows\*.* c:\windows\*.*


exit
 
D

David H. Lipman

In addition the BAT file will fail because it assumes the Win9x/ME constructs of; profiles,
desktop, favourites, etc., being under the
c:\windows location and not the "C:\Documents and settings\" profile tree.

However, the deltree.exe utility CAN be ported from Win9x/ME and used on WinXP.

Dave



| No. deltree is an Unavailable MS-DOS Command.
|
| Unavailable MS-DOS Commands
| The following MS-DOS commands are not available at the command prompt.
| deltree
| The rmdir /s command deletes directories containing files and
| subdirectories. For more information about the rmdir command, see Rmdir.
|
| Rmdir (rd)
| http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rmdir.mspx
|
|
|
| --
| Hope this helps. Let us know.
| Wes
|
| In | Pinto1uk <[email protected]> hunted and pecked:
| > Hi, in my workplace, we are using a workgroup. the server is running
| > XP and the majority of the other computers are using windows 98.
| >
| > before i had started, someone had created a .BAT file which deletes
| > useless files, directories etc. The server then was on a windows 98
| > machine.
| >
| > I have changed it since then, my question is will the .BAT file still
| > work? (the file is below).
| >
| > Also, i want to create 2 shortcuts on the desktop, but this .BAT file
| > wont let me. when the computers restart, they read the .BAT file and
| > always have the same desktop icons. (it deletes the one's that i had
| > created). How do i configure the .BAT file, (or is there any other
| > ways), so it will let me have my own desktop icons. The server's
| > desktop is completely diff to the all the other computers.
| >
| > The .BAT file is as follows:
| >
| > @echo off
| > cls
| > echo LIA
| > deltree /y c:\windows\recent\*.* /y c:\windows\favori~1\*.* /y
| > c:\windows\temp\*.tmp /y c:\windows\*.tmp /y c:\windows\*.bmp /y
| > c:\windows\system\3dflow~1.scr /y c:\windows\system\3dflyi~1.scr /y
| > c:\windows\system\3dmaze~1.scr /y c:\windows\system\3dtext~1.scr /y
| > c:\windows\system\flying~1.scr /y c:\windows\channe~1.scr
| > c:\windows\desktop\*.*
| >
| >
| > cd \
| > deltree /y c:\windows\startm~1\*.*
| > cd c:\windows\startm~1\
| >
| > md Control.{21ec2020-3aea-1069-a2dd-08002b30309d}
| > cd c:\windows\startm~1\13:10 03/02/03
| > md Programs
| > cd c:\windows\startm~1\programs\
| > md Accessories
| > md Office
| > md Startup
| >
| >
| > cd \
| > copy \\pc1\look_copy\startup\startm~1\*.* c:\windows\desktop\*.*
| >
| > cd \
| > copy \\Pc1\look_copy\startup\startm~1\contro~1.{21
| > c:\windows\startm~1\*.*
| >
| > rem access
| > Cd \
| > copy \\pc1\look_copy\startup\startm~1\programs\access~1\*.*
| > c:\windows\startm~1\programs\access~1\*.*
| >
| > rem office
| > cd \
| > copy \\pc1\look_copy\startup\startm~1\programs\office\*.*
| > c:\windows\startm~1\programs\office\*.*
| >
| > rem startup
| > cd \
| > copy \\pc1\look_copy\startup\startm~1\programs\startup\*.*
| > c:\windows\startm~1\programs\startup\*.*
| >
| > attrib +h c:\windows\startm~1\programs\startup
| >
| > rem start menu
| > Cd \
| > copy \\pc1\look_copy\startup\startm~1\*.* c:\windows\startm~1\*.*
| >
| > cd \
| > copy \\pc1\look_copy\startup\startm~1\contro~1.{21
| > c:\windows\startm~1\*.*
| >
| > rem copy programs
| > Cd \
| > copy \\pc1\look_copy\startup\startm~1\programs\*.*
| > c:\windows\startm~1\programs\*.*
| >
| > rem examples
| > Cd \
| > copy \\pc1\look_copy\startup\startm~1\programs\access~1\*.*
| > c:\windows\startm~1\programs\access~1\*.*
| >
| >
| > attrib +h c:\windows +h c:\recycle +h +r c:\progra~1
| >
| > rem time 14:50
| > rem date 11-19-2002
| >
| > deltree /y c:\recycled\*.*
| >
| > deltree /y c:\windows\*.bmp
| >
| > cd \
| > copy \\pc1\Look_Copy\startup\LIASetup.bmp c:\windows\*.*
| > cd \
| > copy \\pc1\Look_Copy\startup\windows\*.* c:\windows\*.*
| >
| >
| > exit
|
 
R

Ron Sommer

Remove these three lines from the bat file:
c:\windows\desktop\*.*

cd \
copy \\pc1\look_copy\startup\startm~1\*.* c:\windows\desktop\*.*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top