On another note I really need to do this to our network so when I get a chance I will start playing with the code you guys have already posted . Thanks for it!
I believe cscript is the correct way to call vb scripts.
You might also want to take a look at another very similar post. The tidy up script is a lot more fleshed out than the one above I wrote quickly at home the other day, but it does look rather similar ;)
And by any chance is the full filename over 250 chars long? If so you'd need to force it to be a shortpath.
One thing I noticed aswell, if you're only having problems on a few files
Is going to fail on read-only files, You'll need to do a force delete akaCode:
Might be worth trying that.Code:
Other options although I haven't checked all of it yet, is your script is modifying/opening a file when it's running. Thus locking it. If the above doesn't work, shout and I'll check rest.
That did the trick.Quote:
For network applications where do you put the shortcuts? If i put them in a redirected folder on the C Drive, when a laptop is taken home the start menu will freeze because the shortcuts lead to a path that the machine can't contact.
How would you deal with it?
We sync (one way sync) our P drive to all staff laptops so that these network apps are available at home. (P drive is the mapped drive to the network apps share)