deadbug Posted November 29, 2007 Share Posted November 29, 2007 While working on my AIO-DVD, I've found that some installs seem a little "temperamental". For example, WinRAR will sometimes leave a WinRAR folder in the Start -> Programs menu even though I've written a cmd to shift it. I've experimented with adding a "sleep" after the WinRAR install and that helps, so it looks like I just need to find a way of being sure that the install has completed.I've decided to achieve this by watching until the WinRAR folder appears and then waiting a further 10s or so (while the install finishes up). Alternatively, I might just wait until the install process has vanished from the system (once I figure out which process it is ...). Either way, I don't want to wait forever, just in case something goes wrong: I'd much rather have an unattended install that finishes even though it might not have completely swept up after itself rather than have an install that hangs!I can achieve this by cobbling together a js function, but I cannot find a way of invoking it from a cmdN[pn] statement.So if I have a function called like this:LimitedWaitForFile("C:\x.txt", 122)how can I invoke it from cmd1[pn]? Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now