Apparently microsoft made it impossible to use command line to do this. Bottom line I still need a way, without software installation to locate files of a particular extension, compile them in a single file for emailing. What about using makecab.exe for the compiling??
Usage:
MAKECAB [/V[n]] [/D var=value ...] [/L dir] source [destination]
MAKECAB [/V[n]] [/D var=value ...] /F directive_file [...]
source File to compress.
destination File name to give compressed file. If omitted, the last character of the source file name is replaced with an underscore (_) and used as the destination.
/F directives A file with MakeCAB directives (may be repeated). Refer to Microsoft Cabinet SDK for information on directive_file.
/D var=value Defines variable with specified value.
/L dir Location to place destination (default is current directory).
/V[n] Verbosity level (1..3).
Let me clarify:
1) I need to go to a specific hard drive (EXAMPLE: D:\)
CD D:\
2) From there I need to locate all files, including those in any sub-directories with a particular file extension(EXAMPLE: *.mp3)
If exists *.mp3
3) Copy them to a folder called (EXAMPLE: MYMP3Z)
echo | Y copy file to MYMP3Z
4) Convert the folder or all files in the folder into a single file either .zip, .cab....whatever(EXAMPLE: MYMP3Z.CAB)
pkzip D:\MP3Z\*.* C:\Documents and Settings\John Doe\Desktop\MP3Z.zip
5) Place that file on the windows desktop(EXAMPLE: C:\Documents and Settings\John Doe\Desktop)
6) Delete the folder MYMP3Z
ECHO | Y DEL D:\MP3Z\*.*
RD D:\MP3Z
I don't think PKZIP for DOS can do all of that.
I may also need to a DOS zip executable to the Windows\System32 Directiry prior to running.