Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2647
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2013-04-04 19:31 -0700 |
| References | <73c0a1b4-b8b2-4e10-9cfa-bc6118f5c633@googlegroups.com> |
| Message-ID | <07fe89c4-4245-47b8-8324-774494bb8044@googlegroups.com> (permalink) |
| Subject | Re: from cmd to Java |
| From | J Lee Hughes <kc0hwa@gmail.com> |
how to code this in java not script but compiling
this is in cmd
::set var
set home=%~dp0
set file_to_find=A_job-2-do_
set when_done=B_Job-done
::the dir will go to the filesystem and get from were app is file is sup dirtory that meet A_job-2-do_*.txt
:: the A_job-2-do_*.txt con contank a "input file address","output file address"
:: the for will run tell the end of file
for /f "delims=" %%A in ('dir /s/b/o:n/d:-a ^"%home%%file_to_find%^"') do (
:: this for look call a script that will replace the file address from what in var file_to_find to var When_done :like substition
for /f "delims=" %%z in ('call rename.cmd ^"%%~A^" ^"\%file_to_find%^" "\%when_done%"') do (
::this for loop that the line and put input in input %%B and output %%C for output
for /f "tokon=1,2 delims=" %%B in (%%~A) do (
::this call the 7z app and conpress the input file to output file command line
"7za.exe" a -t7z -m0=LZMA -mmt=on -mx9 -md=128m -mfb=273 -ms=e -sccUTF-8 -w"%%~dpA" "%%~B" "%%~A"
)
:: this rename when done with file to done
rename "%%~A" "%%~nx.z"
)
:tell when done lets you know
echo done
pause
sorry I did not comment this
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
from cmd to Java kc0hwa@gmail.com - 2013-04-04 17:42 -0700
Re: from cmd to Java Joerg Meier <joergmmeier@arcor.de> - 2013-04-05 02:47 +0200
Re: from cmd to Java J Lee Hughes <kc0hwa@gmail.com> - 2013-04-04 19:47 -0700
Re: from cmd to Java Lew <lewbloch@gmail.com> - 2013-04-04 18:13 -0700
Re: from cmd to Java J Lee Hughes <kc0hwa@gmail.com> - 2013-04-04 19:31 -0700
Re: from cmd to Java J Lee Hughes <kc0hwa@gmail.com> - 2013-04-04 19:42 -0700
Re: from cmd to Java Lew <lewbloch@gmail.com> - 2013-04-04 22:30 -0700
Re: from cmd to Java J Lee Hughes <kc0hwa@gmail.com> - 2013-04-05 03:39 -0700
Re: from cmd to Java 1connu <1connu999@gmail.com> - 2013-04-05 13:16 +0200
Re: from cmd to Java J Lee Hughes <kc0hwa@gmail.com> - 2013-04-05 04:27 -0700
Re: from cmd to Java paul.cager@gmail.com - 2013-04-05 04:27 -0700
Re: from cmd to Java J Lee Hughes <kc0hwa@gmail.com> - 2013-04-05 06:55 -0700
Re: from cmd to Java Lew <lewbloch@gmail.com> - 2013-04-05 13:35 -0700
Re: from cmd to Java Roedy Green <see_website@mindprod.com.invalid> - 2013-04-04 22:44 -0700
csiph-web