on the if statment

December 19, 2010 at 17:43:07
Specs: Windows XP
on the if statement how do you do the <= and >=

if %_number_file_%>=1 ( goto :top)

See More: on the if statment

Report •

December 19, 2010 at 17:54:08
IF /?

    EQU - equal
    NEQ - not equal
    LSS - less than
    LEQ - less than or equal
    GTR - greater than
    GEQ - greater than or equal

Can I put a question here?

Report •

December 20, 2010 at 05:08:44
I can not get
[echo set _answer_=0>>%_file%]
to work to echo to the file
I do not have the [] just to mark

set "_1_=%1"
for /f %%A in ('dir /b/o:n %~dp0\zone5\#%_1_%*.%_1_%#') do (set _folder_=%%A)
for /f %%A in ('dir /b/o:n %~dp0\zone5\#%_1_%*.cmd') do (set _doc_=%%A)
for /f %%A in ('dir /b/o:n %~dp0\zone5\#%_1_%*.%_1_%#') do (set _x_=%%~xA)

set _x_=%_x_:~1,1%

set _file=%~dp0\zone5\t%_doc_%

echo ^@echo off>%_file%
echo ::Writen by: J Lee Hughes>>%_file%
echo ::file: %_doc_%>>%_file%
echo ::===echo-doc-var======================================>>%_file%

echo ::===echo-doc-var======================================>>%_file%

echo set _b_p_=%%~0>>%_file%
echo set _f_p_=%_folder_%>>%_file%
echo set _x_p_=%_x_%>>%_file%
echo ::===echo-doc-var======================================>>%_file%
[echo set _answer_=0>>%_file%]
echo ::===body==============================================>>%_file%
echo for /f ^%%^%%a in ('dir /s/b "%%_b_p_%%%%_f_p_%%\*.%%_x_p_%%" ^| find /v /c "::"') do (set _answer_=^%%^%%a)>>%_file%
echo if "%%_answer_%%==0" ^( goto :zzz ^)>>%_file%
echo set "_answer_=1">>%_file%
echo for /f ^%%^%%^%%A in('dir /s/b "%%_b_p_%%%%_f_p_%%\*.%%_x_p_%%"') do (>>%_file%
echo call %%_b_p_%%%_x_%-run.cmd ^%%^%%^%%A>>%_file%
echo goto :zzz>>%_file%
echo ^)>>%_file%
echo :zzz>>%_file%
echo ::===exit==============================================>>%_file%
echo echo %%_answer_%%>>%_file%
echo pause>>%_file%

Report •
Related Solutions

Ask Question