CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2000
    Posts
    58

    How to use .bat file to unzip files from floppy disks

    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


  2. #2
    Join Date
    Oct 2001
    Location
    Phoenix, AZ
    Posts
    54

    Re: How to use .bat file to unzip files from floppy disks

    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/downlo...S/scripten.exe
    for 98, ME, NT 4.0:http://download.microsoft.com/downlo...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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured