Windows 10: How to get my desktop dir path programmatically after I moved it

Discus and support How to get my desktop dir path programmatically after I moved it in Windows 10 Gaming to solve the problem; I've redirected the "Desktop" folder to another disk so that I will not lose anything on the desktop after I reset/re-install the OS.And here comes the... Discussion in 'Windows 10 Gaming' started by DevDengChao, Jul 11, 2022.

  1. How to get my desktop dir path programmatically after I moved it


    I've redirected the "Desktop" folder to another disk so that I will not lose anything on the desktop after I reset/re-install the OS.And here comes the problem, a program is trying to export files to the Desktop, and it found the original %USERPROFILE%/Desktop which is C://Users/Admin/Desktop instead of the desired D://Users/Admin/Desktop .Related issue: https://issuetracker.google.com/issues/238222674

    :)
     
    DevDengChao, Jul 11, 2022
    #1

  2. Add a path to $PATH?

    Yeah, I think you're right. I think the purpose of the echo command was to check if ~/bin was in the $PATH file. My problem is that I can't decipher the output and I don't know how to add ~/bin to the $PATH file.

    Just for clarification, the snippet of instructions I gave is just a few steps in the installation process. Nothing is actually supposed to be installed with those steps.

    Thanks for the reply.
     
    angelkiller, Jul 11, 2022
    #2
  3. dir Difficulties

    I am getting the hang of this command set.

    Maybe somebody know a work around that will list the three time stamps at one time.
    Theoretically dir /TC /TA /TW.
    dir will only show one of the three at one time.

    To me it seems that the only way to get all three on a line is to run loop with output to file, then boiling down the three outputs to one line. Clumsy but maybe the only way to get the job done?

    Thanks for any suggestions.
     
    mikeincousa, Jul 11, 2022
    #3
  4. How to get my desktop dir path programmatically after I moved it

    Help renaming or moving files with a unacceptable filename (...) at end of path

    OK.

    I seem to have screwed up a directory.

    the directory has 3 dots (periods) at the end of the file name

    I've tried (in cmd prompt and powershell)

    {path = M:\good-path\badpath...}

    move explicit-pathname... to New (existing) directory

    as well as

    move M:\explicit-pathname...\filename.txt to (new directory)

    as well as

    move "M:\explicit-pathname...\filename.txt" to (new directory)

    hint:

    from the root directory (m:\good-path\)

    I CAN do the following : dir /s /b M:\good-path\ > filename.txt

    and the files in badpath... are shown there.

    I cannot cd , or do attribs, etc on badpath...

    ideas? suggestions? very grateful for the help in advance!!
     
    old_DOS_user, Jul 11, 2022
    #4
Thema:

How to get my desktop dir path programmatically after I moved it

Loading...
  1. How to get my desktop dir path programmatically after I moved it - Similar Threads - desktop dir path

  2. How can I get a make path?

    in Windows 10 Software and Apps
    How can I get a make path?: Hi! I am learning the programming language C.I cannot use "make" on VS code. I keep getting the error message, "make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was...
  3. How can I get a make path?

    in Windows 10 Gaming
    How can I get a make path?: Hi! I am learning the programming language C.I cannot use "make" on VS code. I keep getting the error message, "make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was...
  4. How to get my desktop dir path programmatically after I moved it

    in Windows 10 Network and Sharing
    How to get my desktop dir path programmatically after I moved it: I've redirected the "Desktop" folder to another disk so that I will not lose anything on the desktop after I reset/re-install the OS.And here comes the problem, a program is trying to export files to the Desktop, and it found the original %USERPROFILE%/Desktop which is...
  5. How to get my desktop dir path programmatically after I moved it

    in Windows 10 Software and Apps
    How to get my desktop dir path programmatically after I moved it: I've redirected the "Desktop" folder to another disk so that I will not lose anything on the desktop after I reset/re-install the OS.And here comes the problem, a program is trying to export files to the Desktop, and it found the original %USERPROFILE%/Desktop which is...
  6. My desktop and other dirs are changed as eg; OneDrive/desktop

    in Windows 10 Network and Sharing
    My desktop and other dirs are changed as eg; OneDrive/desktop: FIRST POST IN 2021! If you don't understand its ok, but the issue is that windows 10 for me is thinking that the directory to the desktopalso for documents, pictures...etc. is actually my OneDrive backup and it is hard follow tutorials on different stuff related to folders,...
  7. I accidently moved my desktop to my personal vault how do i get it back?

    in Windows 10 Network and Sharing
    I accidently moved my desktop to my personal vault how do i get it back?: I accidently moved my desktop to my personal vault how do i get it back? https://answers.microsoft.com/en-us/windows/forum/all/i-accidently-moved-my-desktop-to-my-personal-vault/db9ea092-cd02-4b7a-87ae-cd14be307274
  8. Move desktop files path via Terminal((windows10))?

    in Windows 10 Network and Sharing
    Move desktop files path via Terminal((windows10))?: Hello, everyone, I know you can change the file path for the desktop in Windows 10, but I wanted to ask if you can change the desktop file path via terminal command. I want to create a script on both desktops that I can always switch between them and that there are less...
  9. How to programmatically get date modified on file in my OneDrive apps path?

    in Windows 10 Software and Apps
    How to programmatically get date modified on file in my OneDrive apps path?: I am able to see the item using: var onedrive = OneDriveClientExtensions.GetUniversalClientnew[] { "wl.signin", "onedrive.appfolder" }; await onedrive.AuthenticateAsync; var item =...
  10. How to get the Windows display identity number programmatically?

    in Windows 10 Customization
    How to get the Windows display identity number programmatically?: I would like to get the "Monitor identity number" which is on "Windows Display setting -> Rearrange your displays" menu. The numbers as in the picture below. Please refer to this link:...