Batch file wont open AutoCAD 2019 in windows task scheduler

Batch file wont open AutoCAD 2019 in windows task scheduler

Anonymous
Not applicable
1,707 Views
9 Replies
Message 1 of 10

Batch file wont open AutoCAD 2019 in windows task scheduler

Anonymous
Not applicable

I have a simple .scr script that opens autoCAD then converts some DWGs (extent and direction...) then saves the new DWGS and closes autoCAD. Everything works great when I run the batch file by right clicking on the file and hitting 'run as administrator' where things don't work is when i try to have windows task scheduler run the batch file nothing happens. I've tried different variations of the opening line such as:

 

"C:\Program Files\Autodesk\AutoCAD 2019\acad.exe"  /product MAP /language "en-US" /b %GCI_HOME%\GIS-Exports.scr

 

or

 

"C:\Program Files\Autodesk\AutoCAD 2019\acad.exe"   /b %GCI_HOME%\GIS-Exports.scr

 

and AutoCAD will not open up when using windows task scheduler - I can see that AutoCAD is running but nothing happens. It's running on Windows 10, AutoCAD version 2019.

0 Likes
1,708 Views
9 Replies
Replies (9)
Message 2 of 10

ronjonp
Advisor
Advisor

What privileges do you have set in the security options?

image.png

 

0 Likes
Message 3 of 10

Anonymous
Not applicable

Here is how our admin set it up-

Picture1.png

0 Likes
Message 4 of 10

ronjonp
Advisor
Advisor

Must be a permissions thing. I just tested here running a task and a simple .bat file to open AutoCAD and it worked fine. Where is the batch file located on your computer?

0 Likes
Message 5 of 10

Anonymous
Not applicable

The batch file is located on a separate drive (D:\) than the AutoCAD exe application which is on the C:\

0 Likes
Message 6 of 10

ronjonp
Advisor
Advisor

Maybe try running it from a trusted location on your local drive?

0 Likes
Message 7 of 10

Anonymous
Not applicable

Just tried that and still nothing happens? The only thing that is confusing me is when I run it with the task scheduler it sends the AutoCAD application to background processing- compared to when I run it by right clicking on the batch file it opens up the AutoCAD application under Apps in the Task Manager screen. Has that have anything to do with it?

0 Likes
Message 8 of 10

Anonymous
Not applicable

Well...I tried as my own account and it worked. So there's something with the permissions with how our admin set it up.

0 Likes
Message 9 of 10

ronjonp
Advisor
Advisor

Glad you got it sorted (Y).

0 Likes
Message 10 of 10

s.hotte
Participant
Participant

Did you found how to make it run as admin (option = Run whether user is logged on or not)?

It runs fine with my account but don't with admin account.

 

SH

0 Likes