<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>CAD Forum discussion (EN) : Initialize Script Using Batch File</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Initialize Script Using Batch File]]></description>
  <pubDate>Mon, 01 Jun 2026 00:16:52 +0000</pubDate>
  <lastBuildDate>Fri, 11 Dec 2015 18:17:04 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum_en/RSS_post_feed.asp?TID=10467</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD Forum discussion (EN)]]></title>
   <url>https://www.cadforum.cz/forum_en/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum_en/</link>
  </image>
  <item>
   <title><![CDATA[Initialize Script Using Batch File : @CAD DSF. Glad that this was of...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=30964&amp;title=initialize-script-using-batch-file#30964</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=532287">harrissjt</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 11.Dec.2015 at 18:17<br /><br />@CAD DSF. &nbsp;Glad that this was of help. &nbsp;All the best with your future endeavours.]]>
   </description>
   <pubDate>Fri, 11 Dec 2015 18:17:04 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=30964&amp;title=initialize-script-using-batch-file#30964</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File : Thank you so much for bat file....]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=30963&amp;title=initialize-script-using-batch-file#30963</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=606616">CAD DSF</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 11.Dec.2015 at 16:10<br /><br />Thank you so much for bat file. I updated the script to work with the 2015 version of AutoCAD. I had 500+ drawing to modify and this worked perfectly!<div><div><br></div><div><u><b>First Step:</b></u></div><div><span style="line-height: 1.4;">Open AutoCAD and set NEWTABMODE system variable to 0. This will stop the new tab screen from appearing</span><font face="FrutigerNext, Arial, ăˇă‚¤ăŞă‚Ş, Meiryo, sans-serif" style="line-height: 1.4;"><span style="font-size: 16px; line-height: 20px;">.</span></font></div><div><br></div><div><b><u>Second Step:</u></b></div><div><b><u><br></u></b></div><div>FOR %%f in ("c:\Location of drawings\*.dwg") do start /wait c:\"Program Files"\Autodesk\"AutoCAD 2015"\acad.exe "%%f" /b "c:\Location of script\Name of script.scr"</div><div><br></div><div><b>You much change the location of script, location of drawings and name of script!</b></div></div>]]>
   </description>
   <pubDate>Fri, 11 Dec 2015 16:10:41 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=30963&amp;title=initialize-script-using-batch-file#30963</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File : I finally cracked it.After much...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=28955&amp;title=initialize-script-using-batch-file#28955</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=532287">harrissjt</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 29.Jan.2015 at 16:06<br /><br /><span style="font-size: small; line-height: 18px; : rgb247, 247, 249;">I finally cracked it.</span><br><div><span style="font-size: small; line-height: 18px; : rgb247, 247, 249;"><br></span></div><div><span style="font-size: small; line-height: 18px; : rgb247, 247, 249;">After much messing around trying different things, I moved the quotation marks on the script file reference, and hey presto!</span></div><div><br></div><div><span style="color: rgb54, 69, 90; font-size: small; line-height: 18px; : rgb247, 247, 249;">FOR %%f in (c:\"ACAD Batch"\Drgs\*.dwg) do start /wait c:\"Program Files"\Autodesk\"AutoCAD 2012 - English"\acad.exe "%%f" /b </span><span style="font-size: small; line-height: 18px; : rgb247, 247, 249;"><font color="#ff0000">"c:\ACAD Batch\Scripts\Change_Project_Title.scr"</font></span></div><div><span style="font-size: small; line-height: 18px; : rgb247, 247, 249;"><font color="#ff0000"><br></font></span></div><div><span style="font-size: small; line-height: 18px; : rgb247, 247, 249;">It now works a treat now.</span></div>]]>
   </description>
   <pubDate>Thu, 29 Jan 2015 16:06:25 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=28955&amp;title=initialize-script-using-batch-file#28955</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File : Maybe it has to do with the direction...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=28953&amp;title=initialize-script-using-batch-file#28953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=165260">John Connor</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 28.Jan.2015 at 15:53<br /><br />Maybe it has to do with the direction of the slash(es) after C:?<br>]]>
   </description>
   <pubDate>Wed, 28 Jan 2015 15:53:11 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=28953&amp;title=initialize-script-using-batch-file#28953</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File :  I have hundreds of Autocad 2012...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=28951&amp;title=initialize-script-using-batch-file#28951</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=532287">harrissjt</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 28.Jan.2015 at 12:08<br /><br />I have hundreds of Autocad 2012 drawings that I have to modify, each with the same minor changes.<div></div>The intention is to create Script files to automate each task, and a .BAT file to run the Scripts across multiple files in a given folder.<div></div>I&nbsp;created a Script file to ZOOM E, and then modify certain attributes within&nbsp;the drawing title&nbsp;block, which appears to work fine when&nbsp;run from&nbsp;within an open Autocad file at the command line.&nbsp; However when trying to run it on multiple files using the .BAT file, it hangs with the following error;<div>"c."ACAD" Invalid file name.</div><div>&nbsp;</div><div>Given that the Script runs fine, I assume that&nbsp;there must be an error in my .BAT file.</div><div>&nbsp;</div><div>Please see both .BAT file and SCR below;</div><div>.BAT</div><div>FOR %%f in (c:\"ACAD Batch"\Drgs\*.dwg) do start /wait c:\"Program Files"\Autodesk\"AutoCAD 2012 - English"\acad.exe "%%f" /b c:\"ACAD Batch"\Scripts\"Change_Project_Title.scr"</div><div>&nbsp;</div><div>Script</div><div>ZOOM E<br>;EDIT PROJECT REVISION<br>-ATTEDIT<br>N<br>N<br>A*-TITLE<br>REV_NO<br>*<br>A<br>0<br>;<br>;EDIT PROJECT TITLE-E<br>-ATTEDIT<br>N<br>N<br>A*-TITLE<br>TITLE1<br>*<br>TA2015 GC-201.1/2/3 CCC POWER SUPPLIES<br>TA2015 GC-201 CCC CONTROLLER UPGRADE<br>;<br>;EDIT PROJECT TITLE-R<br>-ATTEDIT<br>N<br>N<br>A*-TITLE<br>TITLE4<br>*<br>Đ­Đ›Đ•ĐšĐ˘Đ ĐžĐźĐĐ˘ĐĐťĐĐ• ĐťĐ GC201.1/2/3 CCC ĐšĐ 2015<br>ĐšĐ 2015 GC-201 ĐśĐžĐ”Đ•Đ Đť-Đ¦ĐĐŻ ĐšĐžĐťĐ˘Đ ĐžĐ›Đ›Đ•Đ Đ ĐˇĐˇĐˇ<br>QSAVE<br>QUIT<br>Y</div><div>&nbsp;</div><div>I hope that someone out there can help, this&nbsp;has been&nbsp;driving me nuts all day!</div><div>&nbsp;</div><div>Cheers,</div><div>Steve</div>]]>
   </description>
   <pubDate>Wed, 28 Jan 2015 12:08:51 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=28951&amp;title=initialize-script-using-batch-file#28951</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File : The way I have it setup now is...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27647&amp;title=initialize-script-using-batch-file#27647</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 18.Jul.2014 at 19:58<br /><br /><font size="2">The way I have it setup now is that my batch file (.bat) temporarily creates a script file in the same directory as the batch file. Then once AutoCAD is done using it, the script gets deleted. The problem I have is, how can I open a drawing without starting a new instance of ACAD.EXE? As you can imagine, the time it takes to open AutoCAD can be extensive and doing it twice in a row is completely pointless; especially if these tasks can be done with one instance of AutoCAD. Any suggestions?</font>]]>
   </description>
   <pubDate>Fri, 18 Jul 2014 19:58:44 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27647&amp;title=initialize-script-using-batch-file#27647</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File : Yes, but I want the script to...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27645&amp;title=initialize-script-using-batch-file#27645</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 18.Jul.2014 at 19:20<br /><br /><font size="2">Yes, but I want the script to run automatically, i.e. no user input. I need Windows to tell AutoCAD to open the .dwg file then run the script. Then open another file and run another script, all within one instance of AutoCAD. All I want the user is to double click the batch file and everything will happen automatically from there. Is this making sense or am I not clear in my explanation? Below is a representation:<br><br>1. User clicks the batch file.<br>2. AutoCAD opens.<br>3. 1st .DWG file is opened and script runs.<br>4. File closes.<br>5. 2nd .DWG file opens with a different script.<br>6. File closes.<br>7. AutoCAD closes.<br><br>Thanks again!<br></font>]]>
   </description>
   <pubDate>Fri, 18 Jul 2014 19:20:41 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27645&amp;title=initialize-script-using-batch-file#27645</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File : Why is it a Windows problem? You...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27643&amp;title=initialize-script-using-batch-file#27643</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=165260">John Connor</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 18.Jul.2014 at 18:27<br /><br />Why is it a Windows problem?&nbsp; You open AutoCAD first then you run the script not the other way around.<br>]]>
   </description>
   <pubDate>Fri, 18 Jul 2014 18:27:20 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27643&amp;title=initialize-script-using-batch-file#27643</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File : I am aware of this variable. I...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27642&amp;title=initialize-script-using-batch-file#27642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 18.Jul.2014 at 18:01<br /><br /><font size="2">I am aware of this variable. I have it set to 0. The problem is not with AutoCAD, but Windows. I need a way to tell Windows to open the .dwg file with the script, but without having to specify the line below.<br><br>START /WAIT C:\"Program Files"\Autodesk\"AutoCAD 2014"\ACAD.EXE<br><br>Even if the variable SDI is set to 0, AutoCAD will open as many instances as Windows tells it to. So what I want to do is write the code above and then continue adding drawings into that instance of AutoCAD. The real trick is how do I tell it to run a specific script as each drawing is opened? And more importantly, how do I tell the batch file to wait until that script is finished? Thanks for your support.</font><br>]]>
   </description>
   <pubDate>Fri, 18 Jul 2014 18:01:55 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27642&amp;title=initialize-script-using-batch-file#27642</guid>
  </item> 
  <item>
   <title><![CDATA[Initialize Script Using Batch File : You must have a system variable...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27640&amp;title=initialize-script-using-batch-file#27640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=165260">John Connor</a><br /><strong>Subject:</strong> 10467<br /><strong>Posted:</strong> 18.Jul.2014 at 17:40<br /><br />You must have a system variable that is set wrong if multiple sessions are being opened.<br><br>Educate thyself.&nbsp; Read this...<br><br>http://forums.autodesk.com/t5/AutoCAD-Electrical-General/sdi-mode/td-p/2705113<br><span style="font-size:10px"><br /><br />Edited by John Connor - 18.Jul.2014 at 17:43</span>]]>
   </description>
   <pubDate>Fri, 18 Jul 2014 17:40:35 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10467&amp;PID=27640&amp;title=initialize-script-using-batch-file#27640</guid>
  </item> 
 </channel>
</rss>