Hi Keith,
Success running the .bat file, but, there's always a 'but.'
The command prompt window doesn't disappear. And that is due, I believe,
due to the fact that I am trying to use UNC's to path to the proper folders.
I can't get around not using UNC's because everyones mapped directories will
be different. I get this message:
[my folder UNC]
"CMD.EXE was started with the above path as the current directory. UNC
Paths are not supported. Defaulting to Windows directory."
Is there a way of using the UNC to path to the folders
Here is the script I used:
ECHO OFF
DEL "%temp%\DSC_Folder\*.*" /Q
RD "%temp%\DSC_Folder"
MD "%temp%\DSC_Folder"
DEL "%userprofile%\desktop\Data Set Catalog1.lnk"
XCOPY "\\146.243.80.211\shared\Data_Access\Dataset_Catalog\DPH_USER\Data Set
Catalog1.lnk" "%userprofile%\desktop"
XCOPY
"\\146.243.80.211\shared\Data_Access\Dataset_Catalog\DPH_USER\DSC_fe.mde"
"%temp%\DSC_Folder" /I
START "DSC_FE" /MAX "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE"
"%temp%\DSC_Folder\DSC_FE.mde"
Thank you for your time & assistance.
Bill
"Keith Wilby" wrote:
> "BillA" <(E-Mail Removed)> wrote in message
> news:105AEBFC-9171-45E1-9F97-(E-Mail Removed)...
> > Keith,
> >
> > BRILLIANT!
> > I must say I would not have thought of this tactic. Now to sell it to our
> > dogmatic IT department.
> >
> > One question; if I want the user to open the application from a shortcut
> > placed on their desktop, would I need to delete and reinsert a shortcut;
> >
> > DEL "%userprofile%\desktop\MyShortcut.lnk"
> > XCOPY "X:\MyPath\MyShortcut.lnk" "%userprofile%\desktop"
> >
> > Maybe you could tell me the intent of this section of this script?
> >
> > Your suggestion has given me so many ideas.
> >
> > I’ll write back and let you know how ‘IT’ goes.
> >
> > Thank you!
> > Bill
> >
> >
> >
>
> Hi Bill. It might be that your users' Temp folders are wide open as are
> mine, so you might not need IT's intervention at all. Just see if you can
> save a large file to your own and see if it counts towards your profile size
> (mine doesn't).
>
> The purpose of the code is to wipe out pre-existing copies of the FE folder
> and the desktop shortcut (if they exist) and copy across replacements. That
> way your users always get the latest copies on demand. If they don't exist
> then the "delete" parts will fail silently.
>
> The lines of code you've singled out delete the desktop shortcut and copy
> across its replacement.
>
> You can roll out the shortcut to your users by e-mailing them a hyperlink to
> the batch file. Of course, the public folder you use should be readable
> (and read-only) to all of your users
>
> Regards,
> Keith.
> www.keithwilby.co.uk
>
> .
>