Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lauch notepad from autocad

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
588 Views, 3 Replies

lauch notepad from autocad

Any ideas how I can get a toolbar button to launch notepad and open a
specific file? I currently have a button with the following macro:

notepad log.txt (with one space at the end)

This almost works - after issuing the notepad command, in the command window
it says:

File to edit: "log.txt"

If I push Enter it works. How can I get it work without pushing Enter, or
is it not possible? I've tried adding additional spaces at the end of the
line, but they do not register as enters.

Thanks,

Aaron Barnhart, EIT
Marshall Engineering and Surveying, Inc.
www.marshalleng.com
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

(startapp "notepad" (strcat "\"" your_file "\""))

where your_file is a string of the file path.
--

Regards,
Eric S.
eschneider@jensenprecast.com
Message 3 of 4
Anonymous
in reply to: Anonymous

try a semi-colon instead of a space


"Aaron Barnhart" wrote in message
news:7A6B2AA9057BD9E0652981F22D90C432@in.WebX.maYIadrTaRb...
> Any ideas how I can get a toolbar button to launch notepad and open a
> specific file? I currently have a button with the following macro:
>
> notepad log.txt (with one space at the end)
>
> This almost works - after issuing the notepad command, in the command
window
> it says:
>
> File to edit: "log.txt"
>
> If I push Enter it works. How can I get it work without pushing Enter, or
> is it not possible? I've tried adding additional spaces at the end of the
> line, but they do not register as enters.
>
> Thanks,
>
> Aaron Barnhart, EIT
> Marshall Engineering and Surveying, Inc.
> www.marshalleng.com
>
>
>
Message 4 of 4
Anonymous
in reply to: Anonymous

"Rob Tomson" wrote in message
news:F9679F3E0BA369E9442EC4DEE928113F@in.WebX.maYIadrTaRb...
> try a semi-colon instead of a space

That's exactly what I needed.

Thanks,
--
Aaron Barnhart, EIT
Marshall Engineering and Surveying, Inc.
www.marshalleng.com

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

Post to forums  

Autodesk Design & Make Report

”Boost