![]() ![]() I was just trying to do it today, and I think I got it, this is what I think works well įirst, some doskey macros DOSKEY cd=cdtilde. (see above, I finally got it all working the way I wanted it to.) ![]() More information on these can be had at the Technet. You can customize the Profile for some situations. Relocate the User Folders to the external if you want to save some space. Best to leave the profiles in their default. It’s probably the best practice to make sure the files stay safe in case of system crash. Changing the User Profile location is not recommended. Will post again if I can improve my answer. Windows 10 allows you to change the default location. I think there must be a way to solve that. > cd "c:\Program Files"įiles""]= was unexpected at this time. In case anyone else tried my approach, my original answer below didn't handle spaces, eg, the following failed. Which means just an initial quote also works, or completely without quotes also works.Īll other stuff below may be ignored now, it is left for historical reasons - so I dont make the same mistakes again Oh, also it allows lazy quoting, which I found useful, even when spaces are in the folder path names, since it wraps all of the arguments as if it was one long string. config folder under my home folder)Ĭd /Program Files (eg, "C:\Program Files")Ĭd C:/Program Files (eg, "C:\Program Files")Ĭd \Program Files (eg, "C:\Program Files")Ĭd C:\Program Files (eg, "C:\Program Files")Ĭd "C:\Program Files (eg, "C:\Program Files")Ĭd "C:\Program Files" (eg, "C:\Program Files") Tested fine with cd ~ (traditional habit)Ĭd ~/.config (eg, the. :: replace forward-slashes with back-slashes :: if starts with ~, then replace ~ with userprofile path If defined dirname if NOT "%dirname:~3%"="" ( :: strip trailing slash, if longer than 3 If "%dirname%"="" set dirname=%orig_dirname:"=% :: restore dirnames that contained only "/" However, something tells me the Users folder might look different in Win10 and Ill end with a corrupted system after the suggested solution. Move everything folders from D:OldUsers to D:Users. delete the default user folder on C: and make a symbolic link to the new location. reboot with win DVD and using cmd move the user folder to another patition. Create the cdtilde.bat file and put it somewhere in your PATH off Install Win10 and shift C:Users to D:Users as per your guide. some time ago I used this method to move user folder to another partition in win 8.1: 1. Create these doskey macros, somewhere they get picked up every time cmd starts up. In addition, this one now is also able to use ~ as a prefix for other home sub-folders too, and it swaps forward-slashes to back-slashes as well. This one finally works with spaces as well, where my previous answer would fail. Final summary, even though I've moved on to powershell for most windows console work anyway, but I decided to wrap this old cmd issue up, I had to get on a cmd console today, and the lack of this feature really struck me. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |