Foxhound 5.0 FAQ
search engine by freefind advanced
Foxhound 5.0 FAQ Home      Foxhound Home      RisingRoad           Breck.Carter@gmail.com     


Message: Access is denied.
Message: ERROR The $post_setup.bat file could not MOVE the new foxhound5.db file to the FOXHOUND5 folder
Message: File access denied.
Message: The $post_setup.bat file could not MOVE the new foxhound5.db file to the FOXHOUND5 folder

Explanation: You may receive an "access is denied" error during the post-setup stage of a Foxhound installation.

Here's what it might look like at first:

C:\Windows\SysWOW64>ECHO OFF
Post-Setup Process for Foxhound Version 5.0
...
*** Checking for an old Foxhound5 database...
*** Moving the new Foxhound database file...
******************************************************************
*** ERROR ********************************************************
*** The $post_setup.bat file could not MOVE the new
*** foxhound5.db file to the FOXHOUND5 folder.
*** See...
***  C:\ProgramData\RisingRoad\Foxhound5\\setup\post_setup_trace.txt
*** Contact Breck.Carter@gmail.com
******************************************************************
Press any key to continue . . .

If you look inside C:\ProgramData\RisingRoad\Foxhound5\setup\post_setup_trace.txt you might see this:

Mon 08/22/2016  6:28:11.27 Foxhound 5.0.xxxx *** Moving the new Foxhound5 database file... 
Access is denied.
        0 file(s) moved.


Solution 1: Try using "Run as administrator" to reinstall Foxhound.

  1. Run the Foxhound "unsetup" process...
    start - All Programs - Foxhound5 - Tools - Unsetup Foxhound 
    

  2. Delete the Foxhound folder...
    C:\ProgramData\RisingRoad\Foxhound5
    

  3. Use right mouse - Run as administrator to run the Foxhound setup...
    Foxhound-Version-4-0-xxxx-setup.exe
    


Solution 2: Try switching to the hidden "Administrator" account to reinstall Foxhound.

  1. Run the Foxhound "unsetup" process...
    start - All Programs - Foxhound5 - Tools - Unsetup Foxhound 
    

  2. Delete the Foxhound folder...
    C:\ProgramData\RisingRoad\Foxhound5
    

  3. Open a "command prompt" window in "Administrator" mode...
    start - All Programs - Accessories - right mouse Command prompt - Run as Administrator 
    

  4. Make the magic hidden Administrator account visible in Windows 10 by typing this command and pressing Enter...
    net user administrator /active:yes
    

  5. Log off your normal account, and login as Administrator.

  6. Run the Foxhound installation again.
  7. You probably should set a password for the Administrator account, or hide it again...
    net user administrator /active:no
    

  8. If you started the Foxhound database while logged in as Administrator, shut it down.
  9. While still logged on Administrator, grant "Full Control" on the C:\ProgramData\RisingRoad folder to all "Users"...
    Windows Explorer 
      - click right mouse Properties on C:\ProgramData\RisingRoad
      - click Security
      - click Edit...
      - select "Users (..."
      - check Full Control - Allow
      - click Apply
      - click OK
    


Solution 3: The "Access is denied" message may appear during a Foxhound installation or upgrade on Windows 10:

C:\Windows\SysWOW64>ECHO OFF
Post-Setup Process for Foxhound Version 5.0
*** Checking for a post-setup path parameter...
Access is denied.
Access is denied.
*** A post-setup path parameter was provided...
C:\ProgramData\RisingRoad\Foxhound5\
Access is denied.
Access is denied.
Access is denied.
Access is denied.
Access is denied.
Access is denied.
Access is denied.
Access is denied.
Access is denied.
*******************************************************************
***                   Foxhound 5.0.xxxx
***
*** Here's where Foxhound is being installed:
*** C:\ProgramData\RisingRoad\Foxhound5\
***
Access is denied.
*** Starting the Foxhound 5.0.xxxx post-setup process...
Access is denied.
Access is denied.
Access is denied.
*** Creating foxhound5.db.5.0.xxxx.ORIGINAL_COPY...
Access is denied.

C:\Windows\SysWOW64

Try installing Foxhound 5 again:

  1. Run the Foxhound "unsetup" process...
    All Apps - Foxhound5 - Unsetup Foxhound
    

  2. Use right mouse - Run as Administrator to run the Foxhound 5 setup exe.


Solution 4: The "Access is denied" message may also mean the Foxhound engine is already running as a service and it cannot be stopped by the post setup process. As a result, the Foxhound upgrade will not work properly:


Solution 5: If the shortcut Foxhound5 - Tools - Stop Foxhound Engine doesn't finish

   C:\ProgramData\RisingRoad\Foxhound5>ECHO OFF
   Stop Foxhound Engine
   SQL Anywhere Stop Server Utility Version 16.0.0.1324

and both Task Manager and the taskkill command display "Access is denied." when you try to stop the Foxhound dbsrv17.exe process

   C:\Users\Breck>taskkill /pid 8140
   ERROR: The process with PID 8140 could not be terminated.
   Reason: Access is denied.

then check to see if there is a dbclient.exe process still running that was previously being used by Foxhound to connect to a SQL Anywhere 5.5 database. If so, shut down that dbclient.exe process and the Foxhound engine should stop.

See also...
How do I install a new version of Foxhound?


This page was last updated on April 6, 2019.      Foxhound 5.0 FAQ Home      Foxhound Home      RisingRoad      Breck.Carter@gmail.com