# rejetto forum

## Software => HFS ~ HTTP File Server => Topic started by: pc-coholic on April 25, 2010, 10:53:36 AM

Title: Add "Real Folder" by Commandline
Post by: pc-coholic on April 25, 2010, 10:53:36 AM
Hi everyone!

I spent looking for a solution for about an hour now - perhaps I'm just missing the obvious...

I'm launching hfs with
Code: [Select]
hfs.exe "C:\some\folder\to\add\"
Now HFS adds the folder to list of served folders - but there is just one thing: The popup asking me, if this is a real or a virtual folder.

How can I provide HFS directly from the command line with the information, to add this directory as a real folder?

(The problem is, that I can't juse a VFS-File, as the path changes every time I start HFS...)

Thanks a lot for your help!

Martin
Title: Re: Add "Real Folder" by Commandline
Post by: pc-coholic on April 25, 2010, 11:12:49 AM

Code: [Select]
add-folder-default=real
into the hfs.ini-File :)
Title: Re: Add "Real Folder" by Commandline
Post by: rejetto on April 26, 2010, 03:11:47 PM
that was easier to do by

;)
Title: Re: Add "Real Folder" by Commandline
Post by: roborob301 on January 05, 2022, 10:17:07 PM
Want to bring this topic back up. I have installed HFS on server core. For some reason when I try to add a real folder it only lets me add C:\ and I cannot add any subdirectories. I think this is a limitation of how the Windows Explorer works in Server core, because I can add files in other directories with no problems.

Is there an actual command or .ini parameter to add real folder E:\add\this\folder
Title: Re: Add "Real Folder" by Commandline
Post by: LeoNeeson on January 06, 2022, 05:26:46 AM
Hi, welcome to the forum...

For some reason when I try to add a real folder it only lets me add C:\ and I cannot add any subdirectories.
Be sure to run HFS with admin rights, and better install HFS directly it on a folder on C:\ (not inside 'Program Files', 'Documents and Settings', 'Windows', or any other protected/restricted folder). Perhaps that fixes your issue.

Is there an actual command or .ini parameter to add real folder E:\add\this\folder
As far I know, it's not possible. It doesn't exists a .ini parameter to directly share folders.
Title: Re: Add "Real Folder" by Commandline
Post by: rejetto on January 06, 2022, 11:16:46 AM
you didn't specify HOW you tried to add the real folder.
there are 3-4 methods, i think, but they are mostly equivalent.
did you try to drag&drop the folder from windows explorer to HFS window ?