Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Edit filepath with regedit

Posted on 2009-02-20
5
Medium Priority
?
582 Views
Last Modified: 2013-12-04
We need to change a folder name on our network (don't ask why, it upsets me), but Autocad LT references the location in a section called support paths.
Rather than going around each computer in 2 offices to repath all the copies of autocad i can use a regedit, however this tweak is in the Userprofile and needs to be run for each user after the software has been run for the first time to install the software.

Is there a way that the same regedit file can be run on all the machines, adding in the new paths and leaving out the user specific ones or add in the userprofile that is logged on at the time.

For example, the following regedit if i were to run it would enter the paths to the network but also tell AutoCAD to look in the user profile for JBloggs, however i am GJones and so cad would start having problems.
[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD LT\R14\ACADLT-7001:409\Profiles\<<Unnamed Profile>>\General]
"Support"="F:\\Vault\\Acad\\05_SCRIPT;C:\\Documents and Settings\\JBloggs\\Application Data\\Autodesk\\AutoCAD LT 2009\\R14\\enu\\support;C:\\Program Files\\AutoCAD LT 2009\\support;C:\\Program Files\\AutoCAD LT 2009\\fonts;C:\\Program Files\\AutoCAD LT 2009\\help;C:\\Program Files\\AutoCAD LT 2009\\support\\color;F:\\Vault\\Acad\\12_CAD-Utils;F:\\Vault\\Acad\\10_CUSTOM-HATCHES;"

Open in new window

0
Comment
Question by:GegH
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:darrenmcwi
ID: 23697145
%USERPROFILE% = C:\Documents and Settings\<current user>\application data\autodesk\...

Use %USERPROFILE% in place of the C:\Docs & Settings\<user> portion of those strings.
0
 

Author Comment

by:GegH
ID: 23709404
This seems to add a user called %USERPROFILE% into the filepath rather than the current users name.
0
 
LVL 11

Accepted Solution

by:
darrenmcwi earned 2000 total points
ID: 23718149
See the the attached screen capture of the options dialog. Because you are using LT, you won't see the "Working Support File Search Path" but what it does is show you what's resolved with the specified "Support File Search Path" settings. So if a path specified in the "Support file search path" was missing, it wouldn't be listed in the "Working Support File Searh Path" section. Likewise, the "%USERPROFILE% environment variable is specified, but resolves for whichever user is logged in which is why "%USERPROFILE% in the screen capture resolves to "DYOUNG". If someone else was logged in, it would resolve to their name and not mine.

The Support paths are one of the very few locations these environment variables work.

You can easily test this. Just place a DWG in the specified user folder and use the insert command from the command line and try inserting the DWG without specifiying a path. It should fine it.
userprofile.jpg
0
 

Author Comment

by:GegH
ID: 23719978
Darrenmcwi,
This works for the support file search path thankyou, but other paths such as customisation files and DGN map themselves to the user folder, whereas other files such as external ref temp folder follow the support file searchg path.
I seem to have got around this problem by creating a generic folder which is placed on the machine (Called CADGen) and copied all the files from Local settings and application data. the regedit then essentially replaces all user defined mappings with the location C:\CADGen appart from the one support file search path which is %USERPROFILE%. This way anyone logging on to the machine runs the software once, closes down, runs the regedit file which remaps cad then restarts cad and like magic it runs like every other machine in the office.
Thanks for your help, the userprofile bit allows me to edit the setup, tweak a single regedit file and send it out.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question