Been working with cab files at work to extract and expand them to a desktop folder for the end user.
I have tried and tried to expand the cab folder to the desktop but always get the "Destination is not a directory"
error message,(Is the Desktop not considered a directory?) so I just made the below working batch to expand
to the system root drive first then copy over to desktop.However, I would like to streamline the code to just go
straight to the Desktop like my orginal plan.Again I can Copy,Remove and Delete from desktop from standard
commands but just can't get the Expand command to recognize the desktop..
If Anyone could use my exsisting code to get it to work to the Desktop would be greatly appreciated!
Thanks ...SuzyQ


[/code]@Echo Off
color 02
@echo =============================================================================
@echo Make directories, Copy/Expand Cab file, Then copy extracted files to desktop.
@echo =============================================================================
echo.
echo.
::
md "%systemdrive%\Software"
md "%Homepath%\Desktop\Software"
::
expand %windir%\system32\Cabs\software.cab %systemdrive%\software\ -f:*
::
xcopy "%systemdrive%\Software\*.*" "%Homepath%\Desktop\Software"/s /q /v /y
::
rd "%systemdrive%\software"/s /q
echo.
echo.
::
@echo Operation Completed Successfully!
@echo +++++++++++++++++++++++++++++++++
echo.
echo.
pause
Exit
::rev.03.02.10[/code]