thought it might help...:
Run program as admin user:
cmd comand line would be:
(
http://stackoverflow.com/questions/12903629/how-do-i-run-a-program-from-command-prompt-as-a-different-user-and-as-an-admin )
batch script---
@echooff
cd \
cd webroot
runas /noprofile /user:Administrator hfs.exe
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.rejetto.com/forum/hfs-~-http-file-server/automatic-refresh-of-the-content-of-the-virtual-folder/msg1059069/#msg1059069Restart program/service:
if that is the case you can have hfs save on exit and make a scheduled task every hor to close and reopen hfs:
----batch to close and then open the program-------
@echo off
:: clears the screen
cls
:: Enter your process name below
tskill HFS
:: Enter the service name here (can be found in services.msc)
::net stop "your service name here"
:: pauses for 5 seconds
echo waiting 5 seconds before restart
PING 192.168.1.1 -n 1 -w 5000 >NUL
:: starts the service you just stopped or any other service you type the name of
::net start "your service name here"
:: starts the program without opening a new command window
start C:\WEBroot\HFS.exe
:: pauses for 5 seconds
echo waiting 5 seconds before restart
PING 192.168.1.1 -n 1 -w 5000 >NUL
:: clears the screen again
cls
:: echos the following
::echo The requested program and service has been restarted. Press any key to exit.
echo DONE
:: tells them to press any key to close the prompt
:: you can remove this and the previous line if you just want the window to close
:: personally, I like this so the person who ran it knows it was run successfully
::pause
exit
-----------------------