Author Topic: How can I open AutoCAD 2020 Vanilla Profile from a bat file  (Read 1152 times)

0 Members and 1 Guest are viewing this topic.

cura66

  • Mosquito
  • Posts: 2
How can I open AutoCAD 2020 Vanilla Profile from a bat file
« on: October 25, 2021, 04:01:12 PM »
Hello.

I'm trying to launch AutoCAD 2020 English Vanilla profile from a bat file.
I tried adding this, what is in AutoCAD English shortcut into a bat file but it won't launch:

"C:\Program Files\Autodesk\AutoCAD 2020\acad.exe"  /p <<VANILLA>> /product ACADM /language "en-US"

When I add just this it will launch AutoCAD from a bat file :

"C:\Program Files\Autodesk\AutoCAD 2018\acad.exe"

Is it possible to launch Vanilla from a bat file?
Thank you.


« Last Edit: October 25, 2021, 05:00:25 PM by cura66 »

mhupp

  • Bull Frog
  • Posts: 250
Re: How to open AutoCAD 2020 Vanilla Profile from a bat file
« Reply #1 on: October 25, 2021, 04:13:01 PM »
Just make a shortcut on your desktop. you can even give it a short cut key i use F5 -  F12
https://www.how2shout.com/wp-content/uploads/2020/06/Shortcut-key-on-Windows-programs-30.jpg

cura66

  • Mosquito
  • Posts: 2
Re: How to open AutoCAD 2020 Vanilla Profile from a bat file
« Reply #2 on: October 25, 2021, 04:19:31 PM »
So I have much more within the bat file and the final item I'd like to do is launch AutoCAD Vanilla Profile.
Thank You.

mhupp

  • Bull Frog
  • Posts: 250
Re: How can I open AutoCAD 2020 Vanilla Profile from a bat file
« Reply #3 on: October 25, 2021, 05:22:09 PM »
Look into doslib wont need bat file then.

dos_command
Runs an internal command. Internal commands are those commands native to the operating system's command interpreter (e.g. COMMAND.COM or CMD.EXE).
--------------------------------------------------------------------------------
Syntax
(dos_command command [show])

Parameters
command

The command to run, including arguments.

show

How the newly opened window is to be shown. The default value is Normal (0).
0 Normal. Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
 
1 Not Active. Displays a window in its most recent size and position. This value is similar option 0, except the window is not active.
 
2 Minimized. Activates the window and displays it as a minimized window.
 
3 Minimized Not Active. Displays the window as a minimized window. This value is similar to option 2, except the window is not activated.
 
4 Maximized. Activates the window and displays it as a maximized window.
 
Returns
Returns command if successful.

nil on error.

Example
Command: (dos_command "copy *.dwg c:\temp")
"CMD.EXE /C copy *.dwg c:\temp"

« Last Edit: October 26, 2021, 01:42:13 AM by mhupp »

BIGAL

  • Swamp Rat
  • Posts: 1396
  • 40 + years of using Autocad
Re: How can I open AutoCAD 2020 Vanilla Profile from a bat file
« Reply #4 on: October 27, 2021, 12:35:29 AM »
Just copy then paste the autocad icon on the desktop, right click go to Properties, General change description say "ACAD", in Target change the /p switch

I am pretty sure your profile is wrong, /p "Bigal"
A man who never made a mistake never made anything