aker wrote:I'm a little confused, as the cmd always changes to VirtualBox's install path.
Yes, that confused me, too.
Please open regedit and check if one of those keys exist. If yes, please post its content:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor->AutoRun
HKEY_CURRENT_USER\Software\Microsoft\Command Processor->AutoRun
Interesting. Didn't know about those.
ElAlamein wrote:Can do it any problems ?
Yes, apparently. Rename the AutoRun value (or delete it) and then you should be able to use WSUS Offline.
Just to elaborate why your registry modification results in this issue. CMD always runs the command(s) in the AutoRun value when started. Since (one of) these commands changes the path and drive to your VirtualBox directory, WSUS Offline's Update.cmd script can't find DoUpdate.cmd, because it expects it in the current (working) directory.
---
However, there's room for improvement in Update.cmd. Changing the last line to
- Code: Select all
start "" "%~dp0cmd\DoUpdate.cmd" %*
- Code: Select all
cd /D "%~dp0"
Regards
Dalai