Search found 116 matches

by renzlo
15 Jun 2011 04:01
Forum: DOS Batch Forum
Topic: newbie question
Replies: 17
Views: 13103

Re: newbie question

thanks nitt for the reply, i appreciate it. By the way, i can easily write a batch script that will get the byte size just by adding, ~z, but there's a huge difference between them. Like, what if i just want to count characters excluding spaces, i am just wondering if this could be done.
by renzlo
14 Jun 2011 19:48
Forum: DOS Batch Forum
Topic: newbie question
Replies: 17
Views: 13103

newbie question

how do you code in pure batch, a counter that will count characters in a text file?

is it using findstr through regular expressions?

kindly enlighten me.
by renzlo
10 Jun 2011 20:25
Forum: DOS Batch Forum
Topic: If not exist *
Replies: 8
Views: 9198

Re: If not exist *

Hi aleypuppy,

Try this:

Code: Select all

if not exist * (echo Folder is not empty!) else (echo Folder is empty!)


-renzlo
by renzlo
10 Jun 2011 20:13
Forum: DOS Batch Forum
Topic: For loop question
Replies: 7
Views: 6498

Re: For loop question

as always, perfect aGerman.

Thanks a bunch.
by renzlo
09 Jun 2011 01:47
Forum: DOS Batch Forum
Topic: [Share] Might come in handy
Replies: 0
Views: 4893

[Share] Might come in handy

Hi everyone, while crawling the net, I have found this program that might be helpful for Batch Programmes, specially a beginner like me. Here it is: m Information: Application Name: Nezeda BatchAssist 1.0 Application Version: 1.0 Price: Free WHAT IS IT? Well, it's a Batch File Writer. It helps batch...
by renzlo
09 Jun 2011 00:54
Forum: DOS Batch Forum
Topic: For loop question
Replies: 7
Views: 6498

Re: For loop question

I just don't get it, it always output double sequence.xml First Line of XML Second line of XML 3rd line of XML img.txt First Line of IMG.tif SEcond line of IMG.tif 3rd line of IMG.tif my code: @echo off echo Number Image for /f "tokens=1 delims=" %%a in (sequence.xml) do ( for /f "tok...
by renzlo
08 Jun 2011 23:05
Forum: DOS Batch Forum
Topic: For loop question
Replies: 7
Views: 6498

Re: For loop question

Thank you very much Dave.
by renzlo
08 Jun 2011 18:10
Forum: DOS Batch Forum
Topic: For loop question
Replies: 7
Views: 6498

Re: For loop question

Thanks Dave but what if im not doing with associated file? I just want to echo them in column?
by renzlo
08 Jun 2011 17:29
Forum: DOS Batch Forum
Topic: For loop question
Replies: 7
Views: 6498

For loop question

Hi guys, i have 2 files: sequence.xml with these contents: random1 random2 img.txt with these contents: random1.jpg random2.jpg here's my script: echo Number Image for /f "tokens=1 delims=" %%a in (sequence.xml) do (for /f "tokens=1 delims=" %%b in (img.txt) do ( echo %%a %%b ) )...
by renzlo
08 Jun 2011 11:06
Forum: DOS Batch Forum
Topic: If Exist in Windows 7
Replies: 7
Views: 8001

Re: If Exist in Windows 7

try this:

Code: Select all

IF EXIST c:\nightact\archive\%1.zip del
c:\daily\*.prt
by renzlo
08 Jun 2011 05:28
Forum: DOS Batch Forum
Topic: Question about if statement
Replies: 11
Views: 8499

Re: Question about if statement

What are you trying to do? Maybe we can help.
by renzlo
08 Jun 2011 01:02
Forum: DOS Batch Forum
Topic: Why does this not work
Replies: 7
Views: 6367

Re: Why does this not work

Try this:

setlocal enabledelayedexpansion
set str=operation
if '!str!'=='str' echo. %str%

im no pro on this
by renzlo
07 Jun 2011 18:59
Forum: DOS Batch Forum
Topic: [Solved] Is this doable?
Replies: 6
Views: 5720

Re: Is this doable?

Perfect aGerman. Thank you always.
by renzlo
07 Jun 2011 18:38
Forum: DOS Batch Forum
Topic: [Solved] Is this doable?
Replies: 6
Views: 5720

Re: Is this doable?

Yes,i hope that is doable.
by renzlo
07 Jun 2011 18:03
Forum: DOS Batch Forum
Topic: [Solved] Is this doable?
Replies: 6
Views: 5720

Re: Is this doable?

clep it is not just echoing the line, you have meet the conditions on page range.