Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD shortcut on desktop - copy files first / run script first

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
hence_the_name
860 Views, 2 Replies

AutoCAD shortcut on desktop - copy files first / run script first

Hi,

 

I would like to have two icons on my desktop - both should fire up AutoCAD. But before AutoCAD starts up a file needs to be copied into a folder (depending which icon I click a different file gets copied).

 

I'm just wondering how I could get that done - can somehone point me in the right direction?

 

I could create two scripts (and desktop shortcuts)- each script copies a specific file first before executing AC exe.

But the standard Windows shortcut contains a "start in" property I'm not sure how to deal with. In my AC map shortcut it points to:

 

"C:\Program Files\Autodesk\AutoCAD Map 3D 2013\UserDataCache\"

 

 Do I need to take it into account? If so - how?

 

Or are there any other approaches?

 

Many thank, Rob

http://raumpatrouille3d.blogspot.ch/
2 REPLIES 2
Message 2 of 3

Hi,

 

yep, script would be what you are looking for.

 

And to start AutoCAD from a specific folder use that lines in your script:

 

rem your copy action
copy <from_file> <to_file>

rem change active drive to drive C
C:

rem change the working folder
CD "\Program Files\Autodesk\AutoCAD Map 3D 2013\UserDataCache\"

rem start acad.exe with profile, workspace, other parameter
"C:\Program Files\Autodesk\AutoCAD Map 3D 2013\acad.exe" /product MAP /language "en-US"

 

 

HTH, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 3

Hi Alfred,

 

many thanks!

 

Robert

http://raumpatrouille3d.blogspot.ch/

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost