Search found 39 matches

by xhai
27 Mar 2017 20:30
Forum: DOS Batch Forum
Topic: help! how to compress file
Replies: 4
Views: 2327

Re: help! how to compress file

got problem b.bin doesn't add to ex.hellow.zip
by xhai
27 Mar 2017 01:21
Forum: DOS Batch Forum
Topic: help! how to compress file
Replies: 4
Views: 2327

help! how to compress file

hello, I want to compress a specific folder and togerther with a file.. let's say I'm gonna zip a file ex. in my desktop i have this structure inside my compress folder I have this Fruits - Folder A - a.txt - b.txt - Folder B - a.txt -b.txt a.bin b.bin c.bin I want to zip Fruits folder + b.bin into ...
by xhai
28 Jun 2015 06:39
Forum: DOS Batch Forum
Topic: help cbm calculator
Replies: 10
Views: 3304

Re: help cbm calculator

small problem.. it accept strings how to i change it so it can only accept integers only..
by xhai
27 Jun 2015 22:26
Forum: DOS Batch Forum
Topic: help cbm calculator
Replies: 10
Views: 3304

Re: help cbm calculator

thank you very much Antonio ,
it's a very helpful tool in my work
by xhai
27 Jun 2015 09:44
Forum: DOS Batch Forum
Topic: help cbm calculator
Replies: 10
Views: 3304

Re: help cbm calculator

here's some sample input and output

ex. H =1280 W =223 L =134
l x w x h / 1000000 = 38.24 cbm

ex l = 90 x w = 110 h = 36
l x w x h / 1000000 = 0.85
H =1280 W =223 L =134
l x w x h / 1000000 = 38.24 cbm

0.85 + 38.24 = 39.09
by xhai
25 Jun 2015 06:39
Forum: DOS Batch Forum
Topic: help cbm calculator
Replies: 10
Views: 3304

help cbm calculator

hi guys, I have a little problem. how do I create a simple script like a calculator. The formula was L x W x H in cm / 1000000 = value.cbm

to do
-two decimal place
- ability to add 2 or more entries and add the total cbm.
-convert meter to centimeter to compute the cbm
by xhai
03 Sep 2014 13:50
Forum: DOS Batch Forum
Topic: code help!
Replies: 8
Views: 2700

Re: code help!

Thanks foxi I love those codes..
by xhai
03 Sep 2014 05:38
Forum: DOS Batch Forum
Topic: code help!
Replies: 8
Views: 2700

Re: code help!

Xhai, is the patching done in 5 separate commands, so that you can display your messages before each one? before patching i need to check this following.. 1. detect if file already exist 2. verify the size 3. check crc 4. if all are correct then it will go to patching if you remember my previous po...
by xhai
03 Sep 2014 00:30
Forum: DOS Batch Forum
Topic: code help!
Replies: 8
Views: 2700

code help!

@ECHO OFF :start echo "Please do not touch anything during patching process!" echo "Stage 1 of 5 (will take about 15 minutes depending on CPU speed)" echo checking goto :a :a cls echo "Stage 2 of 5 (will take about 5 minutes depending on CPU speed)" rem commands goto :...
by xhai
03 Sep 2014 00:12
Forum: DOS Batch Forum
Topic: I can't solved my problem
Replies: 5
Views: 2882

Re: I can't solved my problem

thanks you foxidrive and ShadowThief for finding my mistake..
by xhai
02 Sep 2014 08:59
Forum: DOS Batch Forum
Topic: I can't solved my problem
Replies: 5
Views: 2882

Re: I can't solved my problem

Give this a try: if "%skip%"=="Disable" ( echo Skip CRC check and ISO verification : %skip% ) else ( echo Skip CRC check and ISO verification : Enable ) echo Do you want to process with this setting? Y(es) N(o) echo ===============================================================...
by xhai
02 Sep 2014 07:48
Forum: DOS Batch Forum
Topic: I can't solved my problem
Replies: 5
Views: 2882

I can't solved my problem

Hi dear sir help fix my code! if "%skip%"=="Disable" ( echo Skip CRC check and ISO verification : %skip% ) else ( echo Skip CRC check and ISO verification : Enable ) echo Do you want to process with this setting? Y(es) N(o) echo ===================================================...
by xhai
30 Aug 2014 21:49
Forum: DOS Batch Forum
Topic: Recursive copy files from folders Part 2
Replies: 2
Views: 1249

Re: Recursive copy files from folders Part 2

Maybe that would do the job. @echo off &setlocal pushd "catb" for /f "delims=" %%i in ('dir /a-d /b /s *.bmp *.png *.gif') do copy "%%i" "..\cata\" popd Regards aGerman Thanks aGerman got it work, I've been using CD but I can't make it work on for loop
by xhai
30 Aug 2014 02:21
Forum: DOS Batch Forum
Topic: Recursive copy files from folders Part 2
Replies: 2
Views: 1249

Recursive copy files from folders Part 2

Hi guys, a little bit modification of grab2.bat @Echo Off & SetLocal EnableExtensions DisableDelayedExpansion Set _ext=.pdf PushD %~dp0 For /D %%a In (*) Do If Exist "%%a\*%_ext%" Call :Sub "%%a" Exit/B :Sub Set _cnt=0 For %%a In ("%~1\*%_ext%") Do Set/A _cnt+=1 If ...
by xhai
22 Aug 2014 20:46
Forum: DOS Batch Forum
Topic: Drag and Drop Function
Replies: 3
Views: 1645

Re: Drag and Drop Function

@echo off IF ["%1"] EQU [""] GOTO :eof CD "%~dp0" script.py -e %~nx1 This will take H:\folder\wherever\data.txt as input and run script.py -e data.txt Thanks ShadowThief " %~nx1 " removes the path while " %* " display the path I just check my code a...