<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proplem with shell command in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675913#M33589</link>
    <description>Here's a lisp solution that will open a pdf using the autocad browser command, this would eliminate the need to use the shell command.&lt;BR /&gt;
&lt;BR /&gt;
You can adapt it to vba using the sendcommand&lt;BR /&gt;
&lt;BR /&gt;
(defun C:pdffile ()&lt;BR /&gt;
&lt;BR /&gt;
(setq save_cmdecho (getvar "cmdecho"))&lt;BR /&gt;
&lt;BR /&gt;
(setvar "cmdecho" 0)&lt;BR /&gt;
&lt;BR /&gt;
;Change the following file path to match your file location&lt;BR /&gt;
&lt;BR /&gt;
(setq file "C:\\adobe.pdf")&lt;BR /&gt;
&lt;BR /&gt;
(command "BROWSER" file)&lt;BR /&gt;
&lt;BR /&gt;
(setvar "cmdecho" save_cmdecho)&lt;BR /&gt;
&lt;BR /&gt;
;Clean Exit&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
&lt;BR /&gt;
);defun&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
&lt;BR /&gt;
Good Luck</description>
    <pubDate>Thu, 15 Jun 2006 14:34:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-15T14:34:00Z</dc:date>
    <item>
      <title>Proplem with shell command</title>
      <link>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675908#M33584</link>
      <description>Hi&lt;BR /&gt;
    I am using AutoCAD 2007 for customization through VBA.I am using a shell command for opening a pdf document,the code written for Commandbutton click event is like this&lt;BR /&gt;
&lt;BR /&gt;
Shell "AC:\Program files\Adobe\Acrobat 6.0\Reader\AcroRd.exe c:\myfile.pdf"&lt;BR /&gt;
&lt;BR /&gt;
This code was working fine for many days but suddenly i am getting an error message 'Invalid procedure call or Argument'&lt;BR /&gt;
Can any one tell be what would be the problem or any other method to open pdf document through AutoCAD VBA.&lt;BR /&gt;
Thanks.</description>
      <pubDate>Thu, 15 Jun 2006 08:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675908#M33584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T08:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proplem with shell command</title>
      <link>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675909#M33585</link>
      <description>Whats this all about...&lt;BR /&gt;
&lt;BR /&gt;
"Shell "AC:\Program...."  "AC...??"&lt;BR /&gt;
&lt;BR /&gt;
Is that a valid root drive?&lt;BR /&gt;
&lt;BR /&gt;
G'Luck&lt;BR /&gt;
&lt;BR /&gt;
Bob Coward</description>
      <pubDate>Thu, 15 Jun 2006 10:55:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675909#M33585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T10:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proplem with shell command</title>
      <link>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675910#M33586</link>
      <description>I am sorry it is onle"C" not AC</description>
      <pubDate>Thu, 15 Jun 2006 11:18:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675910#M33586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T11:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proplem with shell command</title>
      <link>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675911#M33587</link>
      <description>If it was working but now it's not, I would look at has anything changed &lt;BR /&gt;
about the version of acrobat reader.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
&lt;BENNY&gt; wrote in message news:5207125@discussion.autodesk.com...&lt;BR /&gt;
I am sorry it is onle"C" not AC&lt;/BENNY&gt;</description>
      <pubDate>Thu, 15 Jun 2006 12:44:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675911#M33587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T12:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proplem with shell command</title>
      <link>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675912#M33588</link>
      <description>Benny,&lt;BR /&gt;
&lt;BR /&gt;
Check out this PDF from the Adobe partners area which might assist you with what we can't see.&lt;BR /&gt;
&lt;BR /&gt;
partners.adobe.com/public/developer/ en/acrobat/PDFOpenParameters.pdf &lt;BR /&gt;
&lt;BR /&gt;
G'Luck,&lt;BR /&gt;
&lt;BR /&gt;
Bob Coward</description>
      <pubDate>Thu, 15 Jun 2006 12:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675912#M33588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proplem with shell command</title>
      <link>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675913#M33589</link>
      <description>Here's a lisp solution that will open a pdf using the autocad browser command, this would eliminate the need to use the shell command.&lt;BR /&gt;
&lt;BR /&gt;
You can adapt it to vba using the sendcommand&lt;BR /&gt;
&lt;BR /&gt;
(defun C:pdffile ()&lt;BR /&gt;
&lt;BR /&gt;
(setq save_cmdecho (getvar "cmdecho"))&lt;BR /&gt;
&lt;BR /&gt;
(setvar "cmdecho" 0)&lt;BR /&gt;
&lt;BR /&gt;
;Change the following file path to match your file location&lt;BR /&gt;
&lt;BR /&gt;
(setq file "C:\\adobe.pdf")&lt;BR /&gt;
&lt;BR /&gt;
(command "BROWSER" file)&lt;BR /&gt;
&lt;BR /&gt;
(setvar "cmdecho" save_cmdecho)&lt;BR /&gt;
&lt;BR /&gt;
;Clean Exit&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
&lt;BR /&gt;
);defun&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
&lt;BR /&gt;
Good Luck</description>
      <pubDate>Thu, 15 Jun 2006 14:34:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/proplem-with-shell-command/m-p/1675913#M33589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T14:34:00Z</dc:date>
    </item>
  </channel>
</rss>

