| |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
![]() |
| | LinkBack | Thread Tools |
| |||
| Copy MS Access shortcut to desktop with a batch file Hi, I have a batch file that copies files from our server onto all users computers, these files are the front end for an access database and it's related files. The problem I have is I also want the batch file to copy the shortcut for the database onto the users desktop. The shortcut has the following target: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" Any help with this is greatly appreciated. Thanx in advance. Lee |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > Hi, > > I have a batch file that copies files from our server onto all users > computers, these files are the front end for an access database and > it's related files. The problem I have is I also want the batch file to > copy the shortcut for the database onto the users desktop. > > The shortcut has the following target: > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > Any help with this is greatly appreciated. Thanx in advance. > > Lee > Create one such shortcut (it will be a .lnk file), then get the batch file to copy it to the users' desktops. |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > Hi, > > I have a batch file that copies files from our server onto all users > computers, these files are the front end for an access database and > it's related files. The problem I have is I also want the batch file to > copy the shortcut for the database onto the users desktop. > > The shortcut has the following target: > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > Any help with this is greatly appreciated. Thanx in advance. > > Lee > Create one such shortcut (it will be a .lnk file), then get the batch file to copy it to the users' desktops. |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file Thanx for your speedy response. Please can you give me the correct syntax for doing so. Lee Pegasus (MVP) wrote: > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > Hi, > > > > I have a batch file that copies files from our server onto all users > > computers, these files are the front end for an access database and > > it's related files. The problem I have is I also want the batch file to > > copy the shortcut for the database onto the users desktop. > > > > The shortcut has the following target: > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > Lee > > > > Create one such shortcut (it will be a .lnk file), then get the > batch file to copy it to the users' desktops. |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file Thanx for your speedy response. Please can you give me the correct syntax for doing so. Lee Pegasus (MVP) wrote: > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > Hi, > > > > I have a batch file that copies files from our server onto all users > > computers, these files are the front end for an access database and > > it's related files. The problem I have is I also want the batch file to > > copy the shortcut for the database onto the users desktop. > > > > The shortcut has the following target: > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > Lee > > > > Create one such shortcut (it will be a .lnk file), then get the > batch file to copy it to the users' desktops. |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file Forgot to add that I have already created the shortcut. Thanx Pegasus (MVP) wrote: > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > Hi, > > > > I have a batch file that copies files from our server onto all users > > computers, these files are the front end for an access database and > > it's related files. The problem I have is I also want the batch file to > > copy the shortcut for the database onto the users desktop. > > > > The shortcut has the following target: > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > Lee > > > > Create one such shortcut (it will be a .lnk file), then get the > batch file to copy it to the users' desktops. |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file Forgot to add that I have already created the shortcut. Thanx Pegasus (MVP) wrote: > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > Hi, > > > > I have a batch file that copies files from our server onto all users > > computers, these files are the front end for an access database and > > it's related files. The problem I have is I also want the batch file to > > copy the shortcut for the database onto the users desktop. > > > > The shortcut has the following target: > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > Lee > > > > Create one such shortcut (it will be a .lnk file), then get the > batch file to copy it to the users' desktops. |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file Syntax for what? The copy command? Type copy /? at the Command Prompt to see the various options. "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message news:1163502962.237440.267910@h48g2000cwc.googlegr oups.com... > Thanx for your speedy response. Please can you give me the correct > syntax for doing so. > > Lee > > Pegasus (MVP) wrote: > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > > Hi, > > > > > > I have a batch file that copies files from our server onto all users > > > computers, these files are the front end for an access database and > > > it's related files. The problem I have is I also want the batch file to > > > copy the shortcut for the database onto the users desktop. > > > > > > The shortcut has the following target: > > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > > > Lee > > > > > > > Create one such shortcut (it will be a .lnk file), then get the > > batch file to copy it to the users' desktops. > |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file Syntax for what? The copy command? Type copy /? at the Command Prompt to see the various options. "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message news:1163502962.237440.267910@h48g2000cwc.googlegr oups.com... > Thanx for your speedy response. Please can you give me the correct > syntax for doing so. > > Lee > > Pegasus (MVP) wrote: > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > > Hi, > > > > > > I have a batch file that copies files from our server onto all users > > > computers, these files are the front end for an access database and > > > it's related files. The problem I have is I also want the batch file to > > > copy the shortcut for the database onto the users desktop. > > > > > > The shortcut has the following target: > > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > > > Lee > > > > > > > Create one such shortcut (it will be a .lnk file), then get the > > batch file to copy it to the users' desktops. > |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file To copy to the desktop. I have tried the following previously, but it does not work - none of the users have admin rights: copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop Pegasus (MVP) wrote: > Syntax for what? The copy command? Type > > copy /? > > at the Command Prompt to see the various options. > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > news:1163502962.237440.267910@h48g2000cwc.googlegr oups.com... > > Thanx for your speedy response. Please can you give me the correct > > syntax for doing so. > > > > Lee > > > > Pegasus (MVP) wrote: > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > > > Hi, > > > > > > > > I have a batch file that copies files from our server onto all users > > > > computers, these files are the front end for an access database and > > > > it's related files. The problem I have is I also want the batch file > to > > > > copy the shortcut for the database onto the users desktop. > > > > > > > > The shortcut has the following target: > > > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > > > > > Lee > > > > > > > > > > Create one such shortcut (it will be a .lnk file), then get the > > > batch file to copy it to the users' desktops. > > |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file To copy to the desktop. I have tried the following previously, but it does not work - none of the users have admin rights: copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop Pegasus (MVP) wrote: > Syntax for what? The copy command? Type > > copy /? > > at the Command Prompt to see the various options. > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > news:1163502962.237440.267910@h48g2000cwc.googlegr oups.com... > > Thanx for your speedy response. Please can you give me the correct > > syntax for doing so. > > > > Lee > > > > Pegasus (MVP) wrote: > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > > > Hi, > > > > > > > > I have a batch file that copies files from our server onto all users > > > > computers, these files are the front end for an access database and > > > > it's related files. The problem I have is I also want the batch file > to > > > > copy the shortcut for the database onto the users desktop. > > > > > > > > The shortcut has the following target: > > > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > > > > > Lee > > > > > > > > > > Create one such shortcut (it will be a .lnk file), then get the > > > batch file to copy it to the users' desktops. > > |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file The command copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop won't work - the copy command thinks that "C:\Documents" is he destination, and it gets confused by the rest. Add double quotes to make your intentions clear: copy N:\ResXP\Res "C:\Documents and Settings\All Users\Desktop" If you want the users' logon scripts to perform the copy command then you must give them write-access to the "All Users\Desktop" folder. It would also be a good idea to add the /y switch to prevent the command from asking irritating questions. "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message news:1163504682.443589.135380@i42g2000cwa.googlegr oups.com... > To copy to the desktop. > > I have tried the following previously, but it does not work - none of > the users have admin rights: > copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop > > Pegasus (MVP) wrote: > > Syntax for what? The copy command? Type > > > > copy /? > > > > at the Command Prompt to see the various options. > > > > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > news:1163502962.237440.267910@h48g2000cwc.googlegr oups.com... > > > Thanx for your speedy response. Please can you give me the correct > > > syntax for doing so. > > > > > > Lee > > > > > > Pegasus (MVP) wrote: > > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > > > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > > > > Hi, > > > > > > > > > > I have a batch file that copies files from our server onto all users > > > > > computers, these files are the front end for an access database and > > > > > it's related files. The problem I have is I also want the batch file > > to > > > > > copy the shortcut for the database onto the users desktop. > > > > > > > > > > The shortcut has the following target: > > > > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > > > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > > > > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > > > > > > > Lee > > > > > > > > > > > > > Create one such shortcut (it will be a .lnk file), then get the > > > > batch file to copy it to the users' desktops. > > > > |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file The command copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop won't work - the copy command thinks that "C:\Documents" is he destination, and it gets confused by the rest. Add double quotes to make your intentions clear: copy N:\ResXP\Res "C:\Documents and Settings\All Users\Desktop" If you want the users' logon scripts to perform the copy command then you must give them write-access to the "All Users\Desktop" folder. It would also be a good idea to add the /y switch to prevent the command from asking irritating questions. "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message news:1163504682.443589.135380@i42g2000cwa.googlegr oups.com... > To copy to the desktop. > > I have tried the following previously, but it does not work - none of > the users have admin rights: > copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop > > Pegasus (MVP) wrote: > > Syntax for what? The copy command? Type > > > > copy /? > > > > at the Command Prompt to see the various options. > > > > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > news:1163502962.237440.267910@h48g2000cwc.googlegr oups.com... > > > Thanx for your speedy response. Please can you give me the correct > > > syntax for doing so. > > > > > > Lee > > > > > > Pegasus (MVP) wrote: > > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > > > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > > > > Hi, > > > > > > > > > > I have a batch file that copies files from our server onto all users > > > > > computers, these files are the front end for an access database and > > > > > it's related files. The problem I have is I also want the batch file > > to > > > > > copy the shortcut for the database onto the users desktop. > > > > > > > > > > The shortcut has the following target: > > > > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > > > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > > > > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > > > > > > > Lee > > > > > > > > > > > > > Create one such shortcut (it will be a .lnk file), then get the > > > > batch file to copy it to the users' desktops. > > > > |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file Hi, In the batch file I did have the quotes round the text (I had typed the line in my post and missed them out for some weird reason - must be having one of those days). But, thanks to your post I have realised where I was going wrong. I had forgotton that the users will not be able to access the "All Users" directory, so I have now amended the line in my batch file to: copy N:\ResXP\Res "C:\Documents and Settings\%username%\Desktop" This works a treat. Many thanks. Lee Pegasus (MVP) wrote: > The command > > copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop > > won't work - the copy command thinks that "C:\Documents" > is he destination, and it gets confused by the rest. Add double > quotes to make your intentions clear: > > copy N:\ResXP\Res "C:\Documents and Settings\All Users\Desktop" > > If you want the users' logon scripts to perform the copy command > then you must give them write-access to the "All Users\Desktop" folder. > > It would also be a good idea to add the /y switch to prevent the > command from asking irritating questions. > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > news:1163504682.443589.135380@i42g2000cwa.googlegr oups.com... > > To copy to the desktop. > > > > I have tried the following previously, but it does not work - none of > > the users have admin rights: > > copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop > > > > Pegasus (MVP) wrote: > > > Syntax for what? The copy command? Type > > > > > > copy /? > > > > > > at the Command Prompt to see the various options. > > > > > > > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > > news:1163502962.237440.267910@h48g2000cwc.googlegr oups.com... > > > > Thanx for your speedy response. Please can you give me the correct > > > > syntax for doing so. > > > > > > > > Lee > > > > > > > > Pegasus (MVP) wrote: > > > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > > > > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > > > > > Hi, > > > > > > > > > > > > I have a batch file that copies files from our server onto all > users > > > > > > computers, these files are the front end for an access database > and > > > > > > it's related files. The problem I have is I also want the batch > file > > > to > > > > > > copy the shortcut for the database onto the users desktop. > > > > > > > > > > > > The shortcut has the following target: > > > > > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > > > > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > > > > > > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > > > > > > > > > Lee > > > > > > > > > > > > > > > > Create one such shortcut (it will be a .lnk file), then get the > > > > > batch file to copy it to the users' desktops. > > > > > > |
| |||
| Re: Copy MS Access shortcut to desktop with a batch file Hi, In the batch file I did have the quotes round the text (I had typed the line in my post and missed them out for some weird reason - must be having one of those days). But, thanks to your post I have realised where I was going wrong. I had forgotton that the users will not be able to access the "All Users" directory, so I have now amended the line in my batch file to: copy N:\ResXP\Res "C:\Documents and Settings\%username%\Desktop" This works a treat. Many thanks. Lee Pegasus (MVP) wrote: > The command > > copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop > > won't work - the copy command thinks that "C:\Documents" > is he destination, and it gets confused by the rest. Add double > quotes to make your intentions clear: > > copy N:\ResXP\Res "C:\Documents and Settings\All Users\Desktop" > > If you want the users' logon scripts to perform the copy command > then you must give them write-access to the "All Users\Desktop" folder. > > It would also be a good idea to add the /y switch to prevent the > command from asking irritating questions. > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > news:1163504682.443589.135380@i42g2000cwa.googlegr oups.com... > > To copy to the desktop. > > > > I have tried the following previously, but it does not work - none of > > the users have admin rights: > > copy N:\ResXP\Res C:\Documents and Settings\All Users\Desktop > > > > Pegasus (MVP) wrote: > > > Syntax for what? The copy command? Type > > > > > > copy /? > > > > > > at the Command Prompt to see the various options. > > > > > > > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > > news:1163502962.237440.267910@h48g2000cwc.googlegr oups.com... > > > > Thanx for your speedy response. Please can you give me the correct > > > > syntax for doing so. > > > > > > > > Lee > > > > > > > > Pegasus (MVP) wrote: > > > > > "Lee" <Lianne@PlatinumBaseSolutions.com> wrote in message > > > > > news:1163501836.636145.62430@m73g2000cwd.googlegro ups.com... > > > > > > Hi, > > > > > > > > > > > > I have a batch file that copies files from our server onto all > users > > > > > > computers, these files are the front end for an access database > and > > > > > > it's related files. The problem I have is I also want the batch > file > > > to > > > > > > copy the shortcut for the database onto the users desktop. > > > > > > > > > > > > The shortcut has the following target: > > > > > > "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" > > > > > > "N:\ResXP\ResXP.mde" /wrkgrp "M:\Res\RES.mdw" > > > > > > > > > > > > Any help with this is greatly appreciated. Thanx in advance. > > > > > > > > > > > > Lee > > > > > > > > > > > > > > > > Create one such shortcut (it will be a .lnk file), then get the > > > > > batch file to copy it to the users' desktops. > > > > > > |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| batch copying files pointed to by shortcut | edself | Windows XP | 12 | 01-04-2007 04:04 AM |
| how to execute batch file automatically when file is added in folder | SANDY | Windows XP | 4 | 01-04-2007 03:48 AM |
| Creating batch file for backup | Anthony | Windows XP | 0 | 01-04-2007 02:58 AM |
| COPY command in a batch file | Ken W | Windows XP | 16 | 01-04-2007 02:40 AM |