and
Autocad is waiting for the completion of the program (notepad.exe)
;;Variant 1
;;Autocad is waiting for the completion of the program (notepad.exe)
(setq file-name "C:\\TEST.TXT")
(vl-load-com)
(vlax-invoke-method
(setq ws (vlax-get-or-create-object "wscript.shell"))
"run"
(strcat "notepad.exe\ " file-name)
1
[color=red]:vlax-true[/color]
) ;_ end of vlax-invoke-method
(vlax-release-object ws)
;;Variant 2
;;Autocad isn't waiting for the completion of the program (notepad.exe)
(setq file-name "C:\\TEST.TXT")
(vl-load-com)
(vlax-invoke-method
(setq ws (vlax-get-or-create-object "wscript.shell"))
"run"
(strcat "notepad.exe\ " file-name)
1
[color=red] :vlax-false[/color]
) ;_ end of vlax-invoke-method
(vlax-release-object ws)