Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,070 of 68,980    |
|    Todd Vargo to dr.j.r.stockton@gmail.com    |
|    Re: ZIP a folder using a Batch File    |
|    02 Nov 17 04:51:02    |
      From: tlvargo@sbcglobal.netz              On 11/1/2017 7:00 PM, dr.j.r.stockton@gmail.com wrote:       > I have a Batch file, for Win XP and hopefully higher, which creates, on a       USB memory stick, a single folder FRED containing a selection of data files       from the originating Windows C drive.       >       > I can see, but not remember, how to copy the folder FRED and all of its       contents into a compressed folder PETE, by poking Windows with the mouse in       suitable places.       >       > So I want a batch file WILL.BAT which, called with arguments FRED and PETE,       with FRED already created, will give me a corresponding compressed folder       PETE, whether or not PETE already exists. I can then, I suppose, E-mail PETE       as a single attachment.        The delivered PETE must, with simple mouse-poking of the recipient Windows,       produce a folder matching the original FRED.       >       > I'm thinking of ZIP compression, but the type and efficiency are not       important; but both packing and unpacking must use native windows features.       >       > I know not where to start ...       >              LOL, you've become too lazy to start.              With a little research, and effort, you could author a batch utilizing       WSH/VBScript to perform the actions noted above on Windows XP and       hopefully higher.              OTOH, you can see FRED which contains the files that you want to email.       By simply right clicking on FRED and selecting "SendTo" from the list       and then "Compressed (zipped) folder" from the next list, you can easily       create a ZIP of FRED as you once-upon-a-time remembered.              Since unpacking is built into Windows XP and hopefully higher, email       recipients wont need a batch.              Good luck and happy batching.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca