Computing.Net > Forums > Programming > batch: files in subdirs as argument

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch: files in subdirs as argument

Reply to Message Icon

Name: deschman
Date: July 17, 2008 at 05:59:43 Pacific
OS: WinXP
CPU/Ram: intel, MB
Product: ...
Comment:

I want to compress all dll and exe files in all subdirectories using UPX.

I used the code presented here:
http://www.computing.net/answers/pr...
... but it seems to do nothing...

::==========================================
@echo off
setLocal EnableDelayedExpansion

for /f "tokens=* delims= " %%a in ('dir/b /s *.dll *.exe') do (
set /a n+=1
set v=!v! %%a
)
set v

upx --no-backup --best --compress-icons=0 --nrv2d --crp-ms=999999 -k %v%
pause

exit

::===========================================

What am I doing wrong?

Many thanks in advance!

The truth is out there...



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: July 21, 2008 at 17:35:31 Pacific
Reply:

Well, tell us what the UPX command should look like, and we'll help you build a FOR command to do it.


0

Response Number 2
Name: Mechanix2Go
Date: July 22, 2008 at 01:31:02 Pacific
Reply:

Didn't we just go through this a couple days ago?


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 3
Name: Razor2.3
Date: July 22, 2008 at 02:01:13 Pacific
Reply:

Donno, I've been gone.


0

Response Number 4
Name: deschman
Date: July 22, 2008 at 02:53:11 Pacific
Reply:

Dear all,

Thanks for your answers. I already get help hier: http://www.computing.net/answers/pr...

I was a little to fast with posting a new question? Sorry for this. (Especially @ M2)

The truth is out there...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch: files in subdirs as argument

Batch file in perl www.computing.net/answers/programming/batch-file-in-perl/13783.html

help me i want hidden batch file in running www.computing.net/answers/programming/help-me-i-want-hidden-batch-file-in-running/19793.html

Batch File: Open HTM in current dir www.computing.net/answers/programming/batch-file-open-htm-in-current-dir/16423.html