Search found 918 matches

by jeb
30 Aug 2007 15:13
Forum: DOS Batch Forum
Topic: should be numeric only
Replies: 1
Views: 4368

isNumeric function

Hi Sivaram, this should solve it. @echo off set myNum=%1 call :isNumeric %myNum% result echo %result% goto :eof ::************************ :isnumeric setlocal set rest=_ for /f "delims=0123456789" %%a in ("%~1") do set rest=_%%a set return=false if "%rest%"=="_&quo...
by jeb
30 Aug 2007 14:11
Forum: DOS Batch Forum
Topic: length should be 8 characters
Replies: 2
Views: 4870

Hi,

nice, but where do you have a problem?

Your batch results in

1) set str=12345678
8 character Qmanager Name is 12345678

2) set str=123456789abcd
You have exceeded more than 8 characters

Which results do you want? :?:
by jeb
30 Aug 2007 08:24
Forum: DOS Batch Forum
Topic: Quotes problem
Replies: 2
Views: 4884

Hi,

instead of using
ECHO "define !ville () '%cn%' !enddefine."> cityear_%%Y.sps

try this

ECHO define !ville ^(^) '%cn%' !enddefine.> cityear_%%Y.sps

Hope it helps
jeb