Re: code to copy files

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Charles Kenyon (msnewsgroup_at_remove.no.spam.addbalance.com)
Date: 02/13/04


Date: Thu, 12 Feb 2004 19:34:43 -0600

This is better done in the (Windows?) network login script. That will be
executed before Word is loaded. Put your Add-In in a network folder (not the
Workgroup Templates folder!) to which users have read-only access. The
script should automatically copy it to the local startup folder each time
the user logs into the network - if the network copy is newer than the
stored copy. I don't know how to write these scripts, just know they exist.
In a batch file, the DOS XCOPY or XXCOPY commands can handle this easily.

-- 
Charles Kenyon
See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
 --------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
"zSplash" <zNOSPAMSplash@ gci.net> wrote in message
news:OGVBuonyDHA.2568@TK2MSFTNGP09.phx.gbl...
> MyAddin is stored on a server, but is copied to an Addin directory on each
> PC.  I want to be able to copy MyAddin using VBA code, but when I try to
do
> it using the VB editor, everything I do when I minimize the Word app is
> "ignored".  (I always cheat and use the editor to "get the hang" of what
I'm
> trying to code.)
>
> In olden times, I woulda written a shell script, made it executable, and
> then just executed it.  Can I do something similarly in VBA code?
>
> TIA
>
>


Relevant Pages

  • Re: Shortcut to network folder in Explorer
    ... Thanks for all your help William. ... >>> to the network places folder. ... >> need a script. ...
    (microsoft.public.windowsxp.customize)
  • Re: Shortcut to network folder in Explorer
    ... >>> Hi William, ... >> Explorer with switches to change the default views and folder locations. ... >> to the network places folder. ... You will need to write a script to do this because XP will just tell you the ...
    (microsoft.public.windowsxp.customize)
  • Re: Script to close open files in a folder?
    ... about which machines the script will actually have to run on, ... I am essentially using solution you just suggested; the second folder ... happens to be on my PC (not on the server) and I'm manually overwriting ... the network administrator who in turn uses MMC to determine which IP ...
    (microsoft.public.scripting.vbscript)
  • Re: Script to close open files in a folder?
    ... about which machines the script will actually have to run on, ... I am essentially using solution you just suggested; the second folder ... happens to be on my PC (not on the server) and I'm manually overwriting ... the network administrator who in turn uses MMC to determine which IP ...
    (microsoft.public.scripting.vbscript)
  • re: opening powerpoint and word from excel
    ... do you know how to do this with the vba code thanks ... >>I created a button to open a folder on our network. ... >>open the excel files but the Powerpoint Word and Access ...
    (microsoft.public.office.developer.vba)