Connecting Tech Pros Worldwide Forums | Help | Site Map

windows+batch+script for setting Enterprise Customization file

Newbie
 
Join Date: Aug 2008
Posts: 1
#1: Aug 27 '08
has anyone ever wrote a script for setting the Enterprise Customization file
from either a log on or lof off from windows? I am trying to open Autocad from a *.BAT file.. but I was wondering how to switch from the windows command prompt to the actual programs command prompt?

what I got so far....

I want to Start a separate window to run a specified program or command.

START "Program Files\AutoCAD Architecture 2009\acad.exe"
"S:\ACA 2009 Support\Templates\CA_Model_Template.dwt"



harshadd's Avatar
Familiar Sight
 
Join Date: Dec 2007
Posts: 177
#2: Oct 4 '08

re: windows+batch+script for setting Enterprise Customization file


You are starting a windows based applicaion from DOS command prompt
START "Program Files\AutoCAD Architecture 2009\acad.exe"
"S:\ACA 2009 Support\Templates\CA_Model_Template.dwt"
In fact START is not required when you are calling an EXE file itself
First let me clear you on use of START command.
eg.
Suppose I have a file myfile.xls on "C:\Program files\Some Path\Some Folder\"
like you have "S:\ACA 2009 Support\Templates\CA_Model_Template.dwt"
OK?
Now I will use start like below (try it and you wonder it works)
START C:\Program files\Some Path\Some Folder\myfile.xls"
This will start MS Excel for me because Winodws OS knows files of XLS type must be opend with Excel.
Like wise if yo type
START "S:\ACA 2009 Support\Templates\CA_Model_Template.dwt"
Autocad will start and open the file as OS knows , this file is associated to autocad.
Now only thing left is switching to the AUTOCAD after it has beeen opend with the required file...
just have a last commnd in you batch file
EXIT
That will take the control to Autocad window because that is the last window opend by your OS.
Reply