Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an alias for the home folder in Windows 10?

Tags:

windows

I need an alias like ~ in Unix to make a program use files from different accounts. Does something like that exist in Windows 10?

like image 985
neolith Avatar asked Dec 24 '22 00:12

neolith


1 Answers

I would consider %USERPROFILE% to be the equivalent to $HOME

Other options - depending on how you want to use that in your program - might be %APPDATA% or %LOCALAPPDATA%

An annotated list of variables can be found here

like image 136
a_horse_with_no_name Avatar answered Dec 25 '22 14:12

a_horse_with_no_name