ScottL Posted December 19, 2006 Share Posted December 19, 2006 Hi- I'm wondering if there is a function that will review a directory and give (more or less) a Yes/No response to whether that directory is currently in use by the user (i.e. they are running a program off the directory, or have a file open from the directory, etc.)? Or is this a function I would have to script out manually? Thanks Link to comment Share on other sites More sharing options...
Xenobiologist Posted December 19, 2006 Share Posted December 19, 2006 HI, yes I think so, but for what reason? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
ScottL Posted December 19, 2006 Author Share Posted December 19, 2006 yes I think so, but for what reason?I'm in a retail organization supporting the merchandise planning system. Because we have multiple companies under the parent, we have multiple planning environments. There is a need among the users to be able to switch easily and effortlessly between these environments. However, when using the evironments, they must be mapped to a specific drive letter (M:\ in this case). I have written the script that allows them to switch back and forth between environments. But before they actually make the choice, I want to be able to scan there local machine and determine if they are using any files or programs on the drive first. If they are using somethng, I want to prompt them with a warning indicating that they are about to switch drives and anything they are currently doing on that drive will be lost in the switchover.Where I'm stuck is whether I can have the script they execute read their system and determine if that drive is already in use.Does this make sense? Link to comment Share on other sites More sharing options...
ScottL Posted January 4, 2007 Author Share Posted January 4, 2007 Mega- Any further thoughts on this one? Thanks Link to comment Share on other sites More sharing options...
/dev/null Posted January 4, 2007 Share Posted January 4, 2007 Mega-Any further thoughts on this one?Thankssysinternals.com Tools: Handle, PsFile and Process Explorer. They all show open file handles for various situations.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Eliah Posted January 4, 2007 Share Posted January 4, 2007 Mega-Any further thoughts on this one?ThanksIf this is a controlled environment (you know what the users are likely to be doing) you can check to see if the programs are still open with the WinActivate and WinWaitActive sort of commands. If these are artists, you can thereby force them to close out Photoshop for instance.If the program is really huge though they wont be happy being forced to close and reopen it though. Link to comment Share on other sites More sharing options...
BALA Posted January 4, 2007 Share Posted January 4, 2007 AutoIt may be a bit to simple of a language for what you're planning. You might want to consider a different language. [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now