diff --git a/scripts/wpkg.cmd b/scripts/wpkg.cmd
index 335163e714929f8d23c8f950e7a458e6eceb431f..846efa2c1bf9c029f476e07b267af1e45f3ce39b 100755
--- a/scripts/wpkg.cmd
+++ b/scripts/wpkg.cmd
@@ -18,6 +18,8 @@ if /i "%WPKGLOGDIR%"=="" echo.The value of %%WPKGLOGDIR%% is blank, not allowed&
 if NOT exist %WPKGLOGDIR% mkdir %WPKGLOGDIR%
 
 net use * %WPKGSHAREBASE% /user:%WPKGSOFTWAREUSER% %WPKGSOFTWAREPASSWORD% >nul 2>&1
+dir "%WPKGSHAREBASE%" >nul 2>&1
+if ERRORLEVEL 1 echo.Failed to see IFS files, not allowed&exit /b
 
 if exist "%programfiles(x86)%" (goto 64bit) else (goto 32bit)