Re: Script to close open files in a folder?
- From: "Slim" <me@xxxxxxxx>
- Date: Mon, 11 Dec 2006 21:10:40 +0900
here you go
http://dev.thatsit.net.au/Samples/WSH/thatsIT/miso/remote.asp
"Raul" <raul@xxxxxxxxxxx> wrote in message
news:07DE0665-A662-4E40-837E-E16EC94A363C@xxxxxxxxxxxxxxxx
I don't know how to run the script on all the machines on the network, or
any
remote machine on the network, so I'll take you up on your offer.
I'm holding on to the hope that I can use a WQL query to be more selective
about which machines the script will actually have to run on, but we'll
take
this one step at a time.
Thanks again for your help,
Raul
"Slim" wrote:
You need to run this script locally on all machines.
http://dev.thatsit.net.au/Samples/WSH/thatsIT/office/closeWordDocs.asp
If you not sure how to do that give us a yell?
"Raul" <raul@xxxxxxxxxxx> wrote in message
news:25E8D399-2913-459A-BB95-5F01D894ED00@xxxxxxxxxxxxxxxx
The files that people are looking at are "read only" so there isn't
much
risk
of anyone losing any work. I have read and write access to that folder
and
everyone else has read access.
I am essentially using solution you just suggested; the second folder
just
happens to be on my PC (not on the server) and I'm manually overwriting
the
files on the server because my VBA crashes if someone has a file open
on
the
server.
The issue is having to determine who has a file open and then closing
the
file if someone does have a file open. This entails getting in touch
with
the network administrator who in turn uses MMC to determine which IP
address
is using the file and closing the file. I don't know the specifics,
but
the
whole process can take several hours when you factor in getting in
touch
with
someone and then that person getting around to doing it.
I'd like to be able to use "Scheduled Tasks" on the server to run a
script
once a day (at 07:00 when most people are not on the network) to close
any
open files in a particular folder. After any open files are "closed" I
can
then use VBA or "Scheduled Tasks" with an appropriate script on my PC
to
overwrite the existing files on the server.
If I can't close an open file, is there a way to use script to
determine
which IP address is using the file?
Thanks,
Raul
"Slim" wrote:
"Raul" <raul@xxxxxxxxxxx> wrote in message
news:A999E0FB-6931-445A-B7D7-1BCDB510216B@xxxxxxxxxxxxxxxx
We have a folder on a server that contains a number of excel files
and
word
files that users can access from their computers. The files on the
server
are updated fairly regularly by pasteing new files to replace the
old
ones.
We run into trouble when a user has one of the old files open when
we're
trying to paste the replacement file into the folder.
Is there a way to close any open files in a folder using vbscript?
Thanks,
Raul
I don't think doing so would be easy, you would have to run a script
on
every computer and you may cause someone to lose some work.
Why don't you drop them into a second folder, then activate a script
from
scheduled tasks at a interval to check that the same version file is
in
both
folders. If the version is older the script should copy the new file
across,
if it can not because a user has it open, then it will do so again
next
time
the script runs
.
- Follow-Ups:
- Re: Script to close open files in a folder?
- From: Raul
- Re: Script to close open files in a folder?
- References:
- Re: Script to close open files in a folder?
- From: Slim
- Re: Script to close open files in a folder?
- From: Slim
- Re: Script to close open files in a folder?
- From: Raul
- Re: Script to close open files in a folder?
- Prev by Date: create user account in windows
- Next by Date: help with combining two scripts
- Previous by thread: Re: Script to close open files in a folder?
- Next by thread: Re: Script to close open files in a folder?
- Index(es):
Relevant Pages
|