VirtualBox

Changeset 106833 in vbox for trunk/src/VBox/HostDrivers/win


Ignore:
Timestamp:
Nov 5, 2024 12:28:16 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165744
Message:

HostDrivers/win: Adjusted load.cmd and loadall.cmd to detect network drives and load the drivers off C:\Users\bird\AppData\Local\Temp instead. jiraref:VBP-1253

Location:
trunk/src/VBox/HostDrivers/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/win/load.cmd

    r106061 r106833  
    5252:dir_okay
    5353rem
    54 rem We don't use the driver files directly any more because of win10 keeping the open,
    55 rem so create an alternative directory for the binaries.
     54rem We don't use the driver files directly any more because of win10 keeping them
     55rem open, so create an alternative directory for the binaries.  Another reason is
     56rem loading drivers via network shares, in which case we just use temp.
    5657rem
    5758set MY_ALTDIR=%MY_DIR%\..\LoadedDrivers
     59if not "%MY_ALTDIR:~1:1" == ":" goto alt_dir_remote
     60net use "%MY_ALTDIR:~0:1" > nul 2>nul && goto alt_dir_remote
     61goto alt_dir_done
     62:alt_dir_remote
     63set MY_ALTDIR=%TMP%\VBoxLoadedDrivers
     64:alt_dir_done
    5865if not exist "%MY_ALTDIR%" mkdir "%MY_ALTDIR%"
    5966
  • trunk/src/VBox/HostDrivers/win/loadall.cmd

    r106061 r106833  
    5252:dir_okay
    5353rem
    54 rem We don't use the driver files directly any more because of win10 keeping the open,
    55 rem so create an alternative directory for the binaries.
     54rem We don't use the driver files directly any more because of win10 keeping them
     55rem open, so create an alternative directory for the binaries.  Another reason is
     56rem loading drivers via network shares, in which case we just use temp.
    5657rem
    5758set MY_ALTDIR=%MY_DIR%\..\LoadedDrivers
     59if not "%MY_ALTDIR:~1:1" == ":" goto alt_dir_remote
     60net use "%MY_ALTDIR:~0:1" > nul 2>nul && goto alt_dir_remote
     61goto alt_dir_done
     62:alt_dir_remote
     63set MY_ALTDIR=%TMP%\VBoxLoadedDrivers
     64:alt_dir_done
    5865if not exist "%MY_ALTDIR%" mkdir "%MY_ALTDIR%"
    5966
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette