Code Red > AutoLISP (Vanilla / Visual)
Executing bat files in current drawing location
dubb:
I noticed when I ran a bat file from autolisp they failed to run when my current drawing is from our server. When I ran a bat file with my current drawing located on my local hard drive it worked. Could this be a trustedlocations issue or a networking issue?
ChrisCarlson:
Does the batch file run independently from AutoCAD?
JohnK:
It's a windows and path issue. Follow the following template for your bat file.
--- Code - Text: ---cls@pushd %~dp0 ::: SCRIPT HERE ::: @popd
dubb:
Thanks! sorry for the late reply. But it seems to work with your code.
@master_shake. I'm not sure what you mean. The bat file is called with (startapp "c:/tools/sync.bat?")
ronjonp:
You could also use something like this to suppress the box from popping up:
Refer to code HERE.
Navigation
[0] Message Index
[#] Next page
Go to full version