Help With File Paths


  1. Posts : 9
    Windows 7 Ultimate x64
       #1

    Help With File Paths


    Hello, I know (am pretty sure >.<) that there is a way to do this.

    I am trying to set a file path for a folder, but I need the folder to go to the current username, instead of my username. For example..

    C:\Users\Matt\Documents\ - Is my current path

    I want it to be C:\Users\*THEIR USER NAME*\Documents\
      My Computer


  2. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Anyok,

    You can use the path below for a universal profile path instead.

    %USERPROFILE%\My Documents

    Hope this helps,
    Shawn
      My Computer


  3. Posts : 9
    Windows 7 Ultimate x64
    Thread Starter
       #3

    Found the answer to my own question

    C:\Users\%username%\Documents\

    Thanks anyways! =-]
      My Computer


  4. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #4

    No problem mate.

    There's no need to have C:\Users\%username% in the path though. Doing so will limit it.
    %USERPROFILE% will be the same as that, but will open it no matter where the user profile is located.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:18.
Find Us