Compatible Support Forums: Parameter Stuff.....

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Parameter Stuff.....

#1 User is offline   CrazyKillerMan 

  • old hand
  • Group: Members
  • Posts: 761
  • Joined: 14-October 00

Posted 04 July 2001 - 12:56 AM

I need command line that will show all of my .class files in seperate sub dirs.
IE:

dir /s *.class

Basiclly, this is what i need, but I need to pass them as a parameter to zip.

In unix I would do something like:
find -type f -name "*.class" | xargs zip blah.zip

But I don't know how to do that in windows 2000.
0

#2 User is offline   AndyFair 

  • old hand
  • Group: Members
  • Posts: 748
  • Joined: 21-May 01

Posted 04 July 2001 - 12:05 PM

You might be able to do this in two lines:

1. Pipe the output of dir into a file (use the /b switch to get just the filenames - it also lists the full path as well)
2. Pipe this file into zip

i.e.

dir /b/s *.class > file
zip < file

Just a thought...


AndyF
0

#3 User is offline   Uykucu 

  • addict
  • Group: Members
  • Posts: 540
  • Joined: 28-February 01

Posted 05 July 2001 - 03:40 AM

Or instead of a file you can define the files as public global value and write another function to dump them in to zip. Although I do not know which zip you are using and you actually might have to modify it as well in order to read values from memory.

All above applies if you are in to programming obviously. Which I presume you are since you do know some Unix :))
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users