Edit filepath with regedit

Posted on 2009-02-20
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

Question by:GegH
    LVL 11

    Expert Comment

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

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

    Author Comment

    This seems to add a user called %USERPROFILE% into the filepath rather than the current users name.
    LVL 11

    Accepted Solution

    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.

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
    A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
    The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now