Not really an Access question, but ...

G

Guest

I'm trying to come up with an automated way to install my Access application.
I want a batch file to copy the application from its saved location to each
users shared network drive. This works fine using the xcopy command. Now,
however, I want to expand the batch file to copy a shortcut to the user's
desktop as well. This is where I'm stymied. The file path contains the users
windows logon id and I don't know how to get this in a batch file. Does
anyone know?
 
J

John W. Vinson

I'm trying to come up with an automated way to install my Access application.
I want a batch file to copy the application from its saved location to each
users shared network drive. This works fine using the xcopy command. Now,
however, I want to expand the batch file to copy a shortcut to the user's
desktop as well. This is where I'm stymied. The file path contains the users
windows logon id and I don't know how to get this in a batch file. Does
anyone know?

Take a look at Tony Toews' excellent download software:

http://www.granite.ab.ca/access/autofe.htm

John W. Vinson [MVP]
 
K

Keith Wilby

mscertified said:
I'm trying to come up with an automated way to install my Access
application.
I want a batch file to copy the application from its saved location to
each
users shared network drive. This works fine using the xcopy command. Now,
however, I want to expand the batch file to copy a shortcut to the user's
desktop as well. This is where I'm stymied. The file path contains the
users
windows logon id and I don't know how to get this in a batch file. Does
anyone know?

XCOPY "X:\MyPath\MyShortcut.lnk" "%userprofile%\desktop"

Keith.
www.keithwilby.com
 
G

Guest

Unfortunately, we are prohibited from downloading any software to our
machines, so this has to be a home-grown solution.

Thanks anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top