# Specify path to home directory in Windows

Is there any way to define a path relative to home in windows ?

Like it's done here for linux

• `~` should work – David Carlisle Jun 1 '17 at 18:55
• @Moriambar the link in the question is "how to input file in home directly into latex" so it is a tex question (just obscured) – David Carlisle Jun 1 '17 at 18:56

``````\input{\string~/abc}
``````

for example.

The documentation of the comments (for example in

``````/usr/local/texlive/2017/texmf-dist/web2c/texmf.cnf
``````

or equivalent on your system) say

.... ~ expands to %USERPROFILE% on Windows, \$HOME otherwise.

• Right. Thanks! I had an error on my first try of this solution and thought it was platform specific. – cladelpino Jun 1 '17 at 19:03