#30645 - 2002-10-14 07:57 PM
Search entire HD?
|
JTT
Fresh Scripter
Registered: 2002-10-14
Posts: 32
Loc: Utah
|
What's the best way to search an entire drive for a specific file? I have used the "exist" function in the past when I've known where the file would be located by default. Now I need to seach the entire hard drive and delete a file specified by users input. The file could be located in more than one location on the same drive, adn I need to remove all instances of the file.
Anyone have a good suggestion?
Thanks
JTT
|
|
Top
|
|
|
|
#30646 - 2002-10-14 08:18 PM
Re: Search entire HD?
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
dir file.ext /s /b [ 14. October 2002, 20:23: Message edited by: Radimus ]
|
|
Top
|
|
|
|
#30647 - 2002-10-14 08:19 PM
Re: Search entire HD?
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
I believe the DIRPLUS UDF has some of this functionality too..
Kent
|
|
Top
|
|
|
|
#30650 - 2002-10-14 09:09 PM
Re: Search entire HD?
|
JTT
Fresh Scripter
Registered: 2002-10-14
Posts: 32
Loc: Utah
|
We have an Access front end to a SQL Databse that is constantly being updated. The front end is place on users desktops, either locally or on one of three Terminal Servers. We have recently been relying on the end user to remove the old version when the new version exists, but as I'm sure you are aware is not the best or most reliable solution.
I've done several "log-in" scripts that in the past and was hoping to use Kixtart to write a script that would allow me to enter in the file name and perform a search and delete of all existences of the file on the terminal servers from the console itself.
I know I could edit the logon scripts to get this to work, but it's not desired because of the need to remove the files before the update because of diminishing disk space. I am hoping to perform the updates and removal before the next business day, preferrably at night.
|
|
Top
|
|
|
|
#30652 - 2002-10-15 10:05 PM
Re: Search entire HD?
|
JTT
Fresh Scripter
Registered: 2002-10-14
Posts: 32
Loc: Utah
|
Thanks for all the great suggestions. I think I'm going to sit down with the programmer and force some standardization in where and how we do the updates. That will allow me to write a script that will work for every user.
Thanks again.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2375 anonymous users online.
|
|
|