Need Help: AutoLISP Script Fails When Scheduled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I need help with a problem I've encountered while trying to schedule my script.
I have a custom AutoLISP code that needs to run daily. This code launches a couple of batch files through the shell, opens some DWG files, edits them, purges them, and saves them in another format.
Everything works fine when I manually launch the script in AutoCAD. However, when I schedule it as a task on my virtual machine (Windows 10 + AutoCAD 2023), it fails to work correctly.
I've set the permissions for the "Program Files" folder to "Everyone" and have also registered the script in the AUTOLOAD startup suite.
The scheduled task is supposed to launch a batch file every day using the following command:
The task.scr file contains a single line, which is the command to run the application I've registered in the startup suite:
I can't understand why it doesn't work. Any suggestions?