Parameter Stuff.....

This is a discussion about Parameter Stuff..... in the Customization Tweaking category; 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 *.

Customization Tweaking 1789 This topic was started by ,


data/avatar/default/avatar17.webp

757 Posts
Location -
Joined 2000-10-14
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.

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Jul 4
Created
Jul 5
Last Response
0
Likes
1 minute
Read Time
User User User
Users

Responses to this topic


data/avatar/default/avatar05.webp

748 Posts
Location -
Joined 2001-05-21
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

data/avatar/default/avatar40.webp

540 Posts
Location -
Joined 2001-02-28
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 )