Autodesk Technology Managers Forum
Share your knowledge, ask questions, and engage with fellow CAD/BIM Managers.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Scripting to run Automatically

4 REPLIES 4
Reply
Message 1 of 5
GegH1
169 Views, 4 Replies

Scripting to run Automatically

we're using 2005LT on windows 2000. to get the right search file paths to load for each new user i want to use a sript run from the desktop shortcut, however, i don't know how to get the script switch to be entered into the shortcut target automatically for each new user. Does anyone have any ideas.

We have a hotdesk situation so new users may be added to any machine on a daily basis.
Creative Intentions
AutoCAD Certified Professional
Win 10 Pro 64bit, HP ZBook 17
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: GegH1

You can use the /b switch. It also sounds like the /s (support folder) and
the /c (configuration folder) switch might be of use.

Allen

wrote in message news:5103726@discussion.autodesk.com...
we're using 2005LT on windows 2000. to get the right search file paths to
load for each new user i want to use a sript run from the desktop shortcut,
however, i don't know how to get the script switch to be entered into the
shortcut target automatically for each new user. Does anyone have any ideas.

We have a hotdesk situation so new users may be added to any machine on a
daily basis.
Message 3 of 5
Anonymous
in reply to: GegH1

VBScript could be used to create and update a shotcut when a user logs in.

Here is a code snippet just to give you an idea.

Set link = WshShell.CreateShortcut(DesktopPath & "\ADT 2006.lnk")
link.Arguments = " /p ADT2006"
link.Description = "Launch Autodesk Architectural Desktop 2006"
link.IconLocation =
"%SystemRoot%\Installer\{5783F2D7-4004-0409-0002-0060B0CE6BBA}\adtr.ico,0"
link.TargetPath = """C:\Program Files\Autodesk Architectural Desktop
2006\acad.exe"""
link.WindowStyle = 1
link.WorkingDirectory = "C:\Program Files\Autodesk Architectural Desktop
2006\UserDataCache\"
link.Save

--
Best Regards, Jimmy Bergmark
CAD and Database Developer Manager at www.pharmadule-emtunga.com
Blog: http://jtbworld.blogspot.com
JTB FlexReport (FLEXnet / FLEXlm report tool) -
http://www.jtbworld.com/jtbflexreport
SmartPurger (Purges automatically) - http://www.jtbworld.com/smartpurger.htm
or download some freeware at http://www.jtbworld.com
More on AutoCAD 2006 and 2007
http://www.jtbworld.com/autocad2006.htm
http://www.jtbworld.com/autocad2007.htm


wrote in message news:5103726@discussion.autodesk.com...
we're using 2005LT on windows 2000. to get the right search file paths to
load for each new user i want to use a sript run from the desktop shortcut,
however, i don't know how to get the script switch to be entered into the
shortcut target automatically for each new user. Does anyone have any ideas.

We have a hotdesk situation so new users may be added to any machine on a
daily basis.
Message 4 of 5
Anonymous
in reply to: GegH1

Jimmy,
In the line: link.Arguments = " /p ADT2006"
How would I get a path specified?
For instance, /P "C:\ADT06.arg"
Notice the quotes.
I've tried a varity of methods to get it to add the quotes in, but none of them were accepted.
The closest I was able to get was:
link.Arguments = "/P " & "'" & "C:\ADT06.arg" & "'"
Which returned in the target path /P 'C:\ADT06.arg'
Close, but not quite there.
Message 5 of 5
GegH1
in reply to: GegH1

Try it without the quotes. quotes are used primarily when there are spaces within your filepath. C:\ADT06.arg has no spaces. Also make sure there is a space between the standard taget location (ending with acad.exe) and the switch /p
Creative Intentions
AutoCAD Certified Professional
Win 10 Pro 64bit, HP ZBook 17

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report