Jump to content

[How to] 7zip virtualdub or virtualdubmode?


kurt476

Recommended Posts


To uncompress a file to a folder and create a shortcut all you need is a simple batch file. Here is the batch file I use to install Unknown Devices. I have the batch file and the zip file in the same folder. Also I have added unzip.exe and shortcut.exe to my system32 folder. You could also place them in the folder with the other files. In that case unzip would be replaced with "%~dp0unzip.exe" and shortcut.exe would be replaced by "%~dp0shortcut.exe" including the quotes.

The only commands you need are unzip.exe and shortcut.exe.

unzip.exe http://www.info-zip.org/UnZip.html

shortcut.exe http://www.optimumx.com

@echo off

setlocal

set dest=%~1

if "%dest%"=="" set dest=%ProgramFiles%\Admin\Unknown Devices

if not exist "%dest%" md "%dest%"

unzip -o "%~dp0UnknownDevices.zip" -d "%dest%"

if not exist "%ALLUSERSPROFILE%\Start Menu\Programs\Admin" md "%ALLUSERSPROFILE%\Start Menu\Programs\Admin"

shortcut.exe /F:"%ALLUSERSPROFILE%\Start Menu\Programs\Admin\Unknown Devices.lnk" /A:C /T:"%dest%\UnknownDevices.exe" /W:"%dest%"

endlocal

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...