#26628 - 2002-08-07 05:09 PM
Using DIR
|
Anonymous
Anonymous
Unregistered
|
I trying to develope a script that will scan a specified folder and all of its sub folders for a file (portal.lnk) and if found del that file. Does any one have any ideas on how to do this.
|
|
Top
|
|
|
|
#26630 - 2002-08-07 05:41 PM
Re: Using DIR
|
Anonymous
Anonymous
Unregistered
|
That will work on nt and w2k only, I still have over 1000 98 machines, some with profiles and some without.
|
|
Top
|
|
|
|
#26631 - 2002-08-07 05:44 PM
Re: Using DIR
|
Anonymous
Anonymous
Unregistered
|
oh yeah I also forgot It might not be called portal.lnk but contain portal somwhere.
I was going to use INSTR("$FILENAME","PORTALG") <> 0 to search for the name.
|
|
Top
|
|
|
|
#26634 - 2002-08-07 07:28 PM
Re: Using DIR
|
Anonymous
Anonymous
Unregistered
|
YOU WILL ALSO HAVE PROBLEMS USING | IN ALL THE OS'S winnt will do strange things.
I am really looking for a a good recursion script or a way that is done that will open a folder search within if it finds a file delete it if not go to next folder and so on and so on.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1045 anonymous users online.
|
|
|