|
|
|||||||
Unfortunately I'm less than well versed in Kix Scripting, but here's what I'm trying to accomplish: I need to delete specific INI files for all users of a workstation in both "Documents and Settings" as well as 95/98 "Windows\Profiles" directories. There is also a copy of the source INI file in "Program files\XYZ". The Problem I'm running into is that most of the file deletion scripts I've found require you to name the directories your looking in instead of including all subdirectories... Any ideas or help would be very much appreciated... Thx, Me |
||||||||
|
|
|||||||
What if you 'RD /s' in WinNT and 'Deltree' in Win9x? Are you talking about deleting the directory or just the ini file? [ 26. September 2002, 19:45: Message edited by: Chris S. ] |
||||||||
|
|
|||||||
I have no wintendo to get the parameters of DEL there, however, see the /s switch: code:Microsoft Windows 2000 [Version 5.00.2195] |
||||||||
|
|
|||||||
What are you saying... that you don't know in what directory the INI is in? It is possible to recurse the subdirs but there has to be a better way. Have you checked in the registry to see if the INI file location is pointed to there? |
||||||||
|
|
|||||||
it is a sad day when lazy admins are too lazy to script.... |
||||||||
|
|
|||||||
Just remember... "laziness is the mother of invention" It's human nature to be lazy. That's why we invent things... to make life easier. |
||||||||
|
|
|||||||
I have a working NT Shell script that deletes the INI files with a "%UserProfile% variable, unfortunately 95/98 doesn't support any Profile or Username variable. I need to delete the specific INI files and not the entire profile directory, the INI file is not referenced in the Registry. |
||||||||
|
|
|||||||
Profiles on Wintendos are not available from the logon script due to load order. If you want to effect them from a logon script then you need to push a link (to another script) to the RunOnce key in the registry. |
||||||||
|
|
|||||||
well, don't know for del... but couldn't you go with deltree? with it masked you can take care of those. also some for looping with dir could do that...   |
||||||||
|
|
|||||||
BTW, Don't confuse Laziness with applying One's time wisely. |
||||||||
|
|
|||||||
Dear, FYI about W9x environment. The beste way of deleting an INI file in a W9x environment is by using deltree. It is fast and search through all directories. Possible share-violations errors are skipped. INI files are always available and are always reachable. Only the registry in- formation HKCU isn't available during logging on. Not available registry means that your changes made by a logging on kixtart script will be gone, when logging on process has been completed. Very important to known about deltree command is: a file with same filemask specification must be available in starting directory. So when you are trying to delete f.e. kixtart.ini which is located somewhere in the c:\windows directory you had to entry following commands in your BATch file code:Of course it can be implemented also as a kixtart script.@echo off By using roaming profiles we advice you to run the command also on your server(s) during a lazy moment in the night, when this INI file exists in some of them. greetings. |