Click to See Complete Forum and Search --> : How to use .bat file to unzip files from floppy disks


GeorgeT
October 19th, 2001, 08:26 AM
Could anybody tell me how to use .bat file to unzip zipped files from floppy disks and install it to C: drive and put a shortcut icon to the desktop pointing to one of the files. Is it possible? Thanks

JHamilton
October 19th, 2001, 05:08 PM
Unzipping and copying files is very possible with a batch file. Creating a shortcut on the desktop would probably not be possible with just a batch file. You ought to consider using Windows Scripting Host(WSH). With WSH, you can use VBScript or JScript to access the shell to create a link.
for Win2K:http://download.microsoft.com/download/winscript56/Install/5.6/NT5/EN-US/scripten.exe
for 98, ME, NT 4.0:http://download.microsoft.com/download/winscript56/Install/5.6/W9XNT4Me/EN-US/scr56en.exe

Check out MSDN for further details. http://msdn.microsoft.com

I'm not sure you can invoke a WSH script from a batch file, tho.

Read your zip/unzip documentation for commandline usage.

winzip32.exe -e -o a:\*.zip c:\unzipped

That is a typical extract commandline for Winzip.

Software is like sex, it's better when it's free - Linus Torvalds
Software is like sex, it's better when I get paid for it. - me