sending commands to the system...

sending commands to the system...

Anonymous
Not applicable
288 Views
2 Replies
Message 1 of 3

sending commands to the system...

Anonymous
Not applicable
I need to access the equivalant of typing "SHELL" @ the AutoCAD command
prompt... From within my VBA app...

I was using SendCommand to do this...
SendCommand "Shell write.exe /p c:\tmp.txt"

but I'll bet that some of you are thinking...
WHAT IN THE WORLD IS HE THINKING!

Is there an easy way to send commands to the system like...

write.exe /p c:\tmp.txt

I'm still pretty new to VB / VBA, so I would appreciate any help.

TIA

Thomas Smith
0 Likes
289 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
> Is there an easy way to send commands to the system
like...
>
> write.exe /p c:\tmp.txt

Use the VBA Shell command

--
http://www.acadx.com
0 Likes
Message 3 of 3

Anonymous
Not applicable
AWESOME!
That's what I needed!!


"Frank Oquendo" wrote in message
news:6848BC6BA296DD53B521DFD8E5CC8ECA@in.WebX.maYIadrTaRb...
> > Is there an easy way to send commands to the system
> like...
> >
> > write.exe /p c:\tmp.txt
>
> Use the VBA Shell command
>
> --
> http://www.acadx.com
>
>
0 Likes