|
Answer» Here is the script....
Code: [Select]SETLOCAL EnableDelayedExpansion set destfolder=D:\copiedjpegs for /F %%a in ('mountvol ^| find ":\"') do (
for /f "tokens=*" %%P in ('dir %%a*.jp*g /s /b') do copy "%%P" !desktop!
)
The JPEGs get pasted at Desktop one by one all which are found.
Can anyone tell me how to ZIP em all. http://www.winzip.com/index.htm
_______________________________
On the XP Pro OS there is a built in compress ( zip ) procedure:
Start, Help and Support , index[ compress]
To create a zipped compressed folder Open My Computer. Double-click a drive or folder. On the File menu, POINT to New, and then click Compressed (zipped) Folder. Type a name for the new folder, and then press ENTER. Notes
To open My Computer, click Start, and then click My Computer. You can also create a zipped compressed folder by right-clicking the desktop, pointing to New, and then clicking Compressed (zipped) Folder. You can identify compressed folders by the zipper on the folder icon. If you share compressed folders with users on other computer systems, you may want to limit the compressed folder names to eight characters with a .zip file name extension. Related Topics
To add files to a zipped compressed folder Open My Computer, and then locate the compressed folder. Drag files to the compressed folder to compress them. Notes
To open My Computer, click Start, and then click My Computer. Double-click programs and files in compressed folders to open them. You can identify compressed folders by the zipper on the folder icon. If a program requires dynamic-link library files or data files to run, those files must first be extracted. For more INFORMATION, click Related Topics. Related Topics this is a continuation of your previous post. you should continue from that post. Also, i have told you to download and use zip in that post, so if you are not that lazy, do that. Otherwise, if you have tools like winzip or winrar already installed, there are command line options you can also use. Check their documentation.
Quote from: billrich on December 17, 2009, 07:53:51 PM http://www.winzip.com/index.htm
_______________________________
On the XP Pro OS there is a built in compress ( zip ) procedure:
Start, Help and Support , index[ compress]
To create a zipped compressed folder Open My Computer. Double-click a drive or folder. On the File menu, point to New, and then click Compressed (zipped) Folder. Type a name for the new folder, and then press ENTER. Notes
To open My Computer, click Start, and then click My Computer. You can also create a zipped compressed folder by right-clicking the desktop, pointing to New, and then clicking Compressed (zipped) Folder. You can identify compressed folders by the zipper on the folder icon. If you share compressed folders with users on other computer systems, you may want to limit the compressed folder names to eight characters with a .zip file name extension. Related Topics
To add files to a zipped compressed folder Open My Computer, and then locate the compressed folder. Drag files to the compressed folder to compress them. Notes
To open My Computer, click Start, and then click My Computer. Double-click programs and files in compressed folders to open them. You can identify compressed folders by the zipper on the folder icon. If a program requires dynamic-link library files or data files to run, those files must first be extracted. For more information, click Related Topics. Related Topics
Dear Billrich,
I know the procedure how to zip manually.
I clearly MENTIONED that I need the JPEgs to be zipped through Batch File automatically.
Please help me with what code should I use in batch file??
Quote from: ghostdog74 on December 17, 2009, 07:54:16 PM Also, i have told you to download and use zip in that post, so if you are not that lazy, do that.
Dear Ghostdog74,
I am not lazy, I am posting this thread continously because, I don't no the procedure how to add in my batch file.
That's why I mentioned the code in my thread, to teach me where and what code should to be use in batch script.
I would really appreciate, if you add the zip command in my batch script and EXPLAIN me how it will work, so that I can learn something from you.
Thanks.
Quote from: akki15623 on December 17, 2009, 10:21:22 PMI am not lazy,
then tell us which zip utility have you decided to use and whether you have tried anything after reading their docs.
Quote from: ghostdog74 on December 17, 2009, 11:34:33 PMthen tell us which zip utility have you decided to use and whether you have tried anything after reading their docs.
I have winzip, I installed that many months ago, I am trying to learn batch scripting since 2 days, I don't no how to use the command
Quote from: ghostdog74 on December 17, 2009, 11:34:33 PMwhether you have tried anything after reading their docs.
I din't look at the docs, as I don't no what batch script is, so I din't took so care at it. I am now interested in batch script and need help in understanding.
Can you please explain me the zip command and tell me how to use that, when I need something to zip through batch script.
Quote from: akki15623 on December 17, 2009, 07:42:51 PM Can anyone tell me how to zip em all.
Download the Command-Line version of 7-Zip (http://www.7-zip.org/download.html)
Use the following command:
7za.exe -a -tzip bigfile.zip D:\copiedjpegs\*.jp*g
Explanation: 7za.exe = executable -a = command to add files -tzip =use the zip format bigfile.zip = to this file (can exist, or it creates a new file D:\copiedjpegs\*.jp*g = files to be zipped
and you don't need to copy them to the desktop first...
|