View Full Version : using a .bat file to start Autocad up with parameters on windows 2K
blackpikex
08-05-2004, 06:44 AM
Does anybody know how to run autocad from a batchfile and pass the /p
profile parameter so autocad starts up with a profile. I have been
trying to get this to work for about a day and it seams that my 7
years of experience in batch file writing under MS-DOS isn't worth
shit under 2K. Funny how all the knowledge of writing shell batch
files hasn't changed under unix for the last 15 years, that learning
curve was worth going up. Oh and one note to Autodesk, for F??k sake
make AutoCAD run on an operating system that has been developed by
engineers to solve engineering problems, not the crap operating system
that is window(anyversion) which is only written to meet the financial
demands of Microsoft Share holders.
Autocad will always suck aslong as it runs on windows.
Autocad 11 on a Sun IPX workstation running Solaris ROCKED.
Paul Turvill
08-05-2004, 07:01 AM
Is there a reason you don't want to simply modify the startup call of the
ACAD icon in windows? Maybe if you took a little time to learn some of the
neat little tricks modern Windows has available, you wouldn't be so
critical.
___
"blackpikex" <blackpikex@yahoo.co.uk> wrote in message
news:f46cd410.0408050644.60755806@posting.google.com... Does anybody know how to run autocad from a batchfile and pass the /p profile parameter so autocad starts up with a profile.
blackpikex
08-05-2004, 12:34 PM
"Paul Turvill" <nospam@turvill.com> wrote in message news:<rdqdnVYaKPh91o_cRVn-uw@whidbeytel.com>... Is there a reason you don't want to simply modify the startup call of the ACAD icon in windows? Maybe if you took a little time to learn some of the neat little tricks modern Windows has available, you wouldn't be so critical. ___ "blackpikex" <blackpikex@yahoo.co.uk> wrote in message news:f46cd410.0408050644.60755806@posting.google.com... Does anybody know how to run autocad from a batchfile and pass the /p profile parameter so autocad starts up with a profile.
I have tried that already and I cant get it to work, basically I have
several project, each project has its own directory on the server. I
would like to start autocad to run in the directory that the project
is in, and also pass a /s support path and also a /p profile augument.
The Target in the shortcut properties has to stay as :-
"C:\Program Files\ACAD2000\acad.exe"
The start in properties of the short cut icon has to be
P:\projecta\ to tell it to start in the right project directory.
So where do I add the /s and /p parameters and do they have to be
enclosed inside the quotation marks?
And to be totaly honest the amount of power filling in the fields of a
shortcut icon is pathetic.
what if I wanted run a batch file that did several things before
starting up Autocad, like run a time logging program or backup a file.
Windows is naff because it only caters to 2 types of people.
button peckers. Who can not be bothered to learn how to get the most
out of a computer and will quite happily press the same buttons over
and over again in the same sequence all day long with a slight bit of
variation. I don't want to have to remember 100's of Neat Little
Tricks when half of them will be usless the next time I have to
upgrade my operating sytem. I would much rather write powerfull
programs that save me hours of button pushing, that will still work in
5 or 10 years time.
or
Full qualified programmers who can recite to you every Method and
Propertie of the microsoft foundation class C++ libaries.
The other thing I hate about microsoft is they constantly bring out Oh
so cool new techologies, that are usualy badly thoughtout or badly
implemented, and by the time you have leart the new technology and
learnt its weeknesses.They bring out another Oh so cool technology
that supercied the one you just spent many hours getting compitent at.
This is why I am glad I learnt Autolisp about 8 years ago, It has
maintained backward compatibility, what I learn't 8 years ago is still
applicable and usable today.
That probably can't be said for Microsofts development environments, I
doubt a profficent programmer of Visual Basic 3 would be any use at
programing Visual Basic 6 when you consider all the revisions to the
development framework that have been added on. ie com com+ .Net This
is why I doubt I'll be bothered to learning how to use Autocad VBA
addon.
Paul Turvill
08-05-2004, 01:11 PM
If you were to look in Windows HELP, you would find most of your answers.
For example, to add the /s and /p switches to the command line, just add
them in the 'target' field. And, no, unless the switches include spaces, you
don't need to enclose them in quotes (but doing so doesn't normally hurt).
You can also simply create a different icon for each project you're working
on, and put that path in the 'start in' field.
You can run DOS style batch files, if you wish. I do it all the time. Simply
create the batch (*.bat) file to do what you want it to do, then run it
using either START / Run ... or create an icon to run it. The batch syntax
is similar to the old DOS syntax, but a number of enhancements have been
added. Again, you should try looking in HELP; you may be surprised what you
can learn to do.
By not bothering to exploit the power of modern versions of Windows, you're
only shortchanging yourself.
___
"blackpikex" <blackpikex@yahoo.co.uk> wrote in message
news:f46cd410.0408051234.c4c8cfe@posting.google.com... I have tried that already and I cant get it to work, basically I have several project, each project has its own directory on the server. I would like to start autocad to run in the directory that the project is in, and also pass a /s support path and also a /p profile augument. The Target in the shortcut properties has to stay as :- "C:\Program Files\ACAD2000\acad.exe" The start in properties of the short cut icon has to be P:\projecta\ to tell it to start in the right project directory. So where do I add the /s and /p parameters and do they have to be enclosed inside the quotation marks?
<<snip>>
Bob Morrison
08-05-2004, 03:31 PM
In a previous post Paul Turvill says... By not bothering to exploit the power of modern versions of Windows, you're only shortchanging yourself.
Paul:
Well said!
--
Bob Morrison
R L Morrison Engineering Co
Structural & Civil Engineering
Poulsbo WA
Brian Naught
08-05-2004, 03:40 PM
"Paul Turvill" <nospam@turvill.com> wrote in message news:<rdqdnVYaKPh91o_cRVn-uw@whidbeytel.com>... Is there a reason you don't want to simply modify the startup call of the ACAD icon in windows? Maybe if you took a little time to learn some of the neat little tricks modern Windows has available, you wouldn't be so critical. ___ "blackpikex" <blackpikex@yahoo.co.uk> wrote in message news:f46cd410.0408050644.60755806@posting.google.com... Does anybody know how to run autocad from a batchfile and pass the /p profile parameter so autocad starts up with a profile.
here here, paul
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.