
August 4th, 2005, 10:32 AM
|
 |
gears always turning....
|
|
Join Date: Dec 2004
Location: St. Louis, MO, USA
|
|
BAT file - DOS commands help needed
i use .bat files to distribute access apps i develop across several departments in my company. one thing i have wanted to do in this process, but haven't been successful at, is to copy a shortcut to the desktop. my 6.22 dos reference manual makes no reference to the desktop. does anyone know how to reference the desktop from dos commands to make this possible?
an example of my current code, copying to directories:
Code:
set SRVRDIR="\\server\dir1\dir2\etc"
set LOCDIR="C:\locdirname"
set PRGM="programname.mdb"
if not exist %LOCDIR% mkdir %LOCDIR%
if not exist %LOCDIR%\%PRGM% copy %SRVRDIR%\%PRGM% %LOCDIR%\%PRGM%
i would like to use something similar to copy a file name assigned to a variable SHRTCT from the SRVRDIR to the desktop.
thanks in advance for any help!
john
__________________
Was I able to help you? Please show your appreciation by clicking on the 'scales' icon in the upper right corner of the post...
"I know a lot of things, but I don't know a lot of other things..."
"If my answers frighten you then you should cease asking scary questions"
|