Search found 21 matches

by Rajnishjc_27
31 Oct 2019 03:12
Forum: DOS Batch Forum
Topic: help for command
Replies: 5
Views: 8768

Re: help for command

Thanks aGerman The way I understand the pattern is quite similar to the findstr syntax. -v reverse the meaning of the pattern (like /v for findstr) ^ match the beginning of the line .. wildcards for two characters ,00 literally matched So I guess in Batch it would be findstr /v "^..,00 ^..,12" "test...
by Rajnishjc_27
30 Oct 2019 08:32
Forum: DOS Batch Forum
Topic: help for command
Replies: 5
Views: 8768

Re: help for command

please write batch script....
by Rajnishjc_27
30 Oct 2019 02:44
Forum: DOS Batch Forum
Topic: help for command
Replies: 5
Views: 8768

Re: help for command

to more understand

i have file test.txt , and data as below in file.

id,pin,call
1,2,1212
2,3,12121

now i have unix command as below, which i want to convert into batch script

egrep -v '^..,00|^..,12' test.txt
by Rajnishjc_27
30 Oct 2019 00:28
Forum: DOS Batch Forum
Topic: help for command
Replies: 5
Views: 8768

help for command

Hi friends

i have unix shell command as below

egrep -v '^..,00|^..,69'

i need to convert into win batch script.

please help.
by Rajnishjc_27
19 Sep 2019 05:19
Forum: DOS Batch Forum
Topic: how to check file exists or not : batch script
Replies: 2
Views: 10733

how to check file exists or not : batch script

hi all,

how to check file exists or not in folder with IF...Else condition.
please help
by Rajnishjc_27
19 Sep 2019 04:26
Forum: DOS Batch Forum
Topic: get File Size batch script.
Replies: 4
Views: 24106

get File Size batch script.

HI

Which command to get or read size of the file from particular folder.
like its kb or mb.
by Rajnishjc_27
12 Sep 2019 00:58
Forum: DOS Batch Forum
Topic: Sorting text file content with batch script,.
Replies: 5
Views: 9150

Re: Sorting text file content with batch script,.

Thank you so much PenPen for your kind help.
by Rajnishjc_27
10 Sep 2019 04:10
Forum: DOS Batch Forum
Topic: Sorting text file content with batch script,.
Replies: 5
Views: 9150

Re: Sorting text file content with batch script,.

Thank you Penpen,

one more need help , not i need only first record return ?

"201804211030-ScottsDDSupplier.csv"
"201804180930-ScottsDDSupplier.csv"
"201804170930-ScottsDDSupplier.csv"
by Rajnishjc_27
10 Sep 2019 03:08
Forum: DOS Batch Forum
Topic: Sorting text file content with batch script,.
Replies: 5
Views: 9150

Sorting text file content with batch script,.

Hi I have data in filelist.TXT file as below. "201804170930-ScottsDDSupplier.csv" "201804180930-ScottsDDSupplier.csv" "201804211030-ScottsDDSupplier.csv" i need to sorting in Descending order when i read file as below.. @echo off setlocal enableExtensions disableDelayedExpansion set file=D:\filelist...
by Rajnishjc_27
27 Aug 2019 03:23
Forum: DOS Batch Forum
Topic: SCRIPT help. for syntex problem
Replies: 4
Views: 7425

Re: SCRIPT help. for syntex problem

ShadowThief wrote:
27 Aug 2019 03:08
Without seeing the context that this snippet is in, it's impossible to say. Please post all of the code.
code as below

@echo off
set rc=1

if !rc! equ 1 goto error

:error
echo Failed with validation #%1%.
SET %~2=!rc!
exit /b

am getting blank in arguments 2 , instead of 1
by Rajnishjc_27
27 Aug 2019 01:02
Forum: DOS Batch Forum
Topic: SCRIPT help. for syntex problem
Replies: 4
Views: 7425

SCRIPT help. for syntex problem

Hi.

if !rc! equ 1 goto error

:error
echo Failed with validation #%1%.
SET %~2=!rc!
exit /b

but my SET "%~2=!rc!" output parameter not return anything, it should return 1

help...
by Rajnishjc_27
26 Aug 2019 21:46
Forum: DOS Batch Forum
Topic: string not working
Replies: 3
Views: 5902

Re: string not working

Hi Steffen

Then how it should be ?
by Rajnishjc_27
26 Aug 2019 08:30
Forum: DOS Batch Forum
Topic: string not working
Replies: 3
Views: 5902

string not working

hi

i am using below script which is not working

set res1='YES'

echo !res1!
if "!res1!" EQU "YES" echo "HI"

its not displaying HI , please help
by Rajnishjc_27
23 Aug 2019 07:14
Forum: DOS Batch Forum
Topic: mutiple validation in same do not working
Replies: 2
Views: 5801

mutiple validation in same do not working

Hi Frinds i have script like below for /F " skip=1 tokens=3,7 delims=;" %%a in (%file% ) do ( set token7=%%b set token3=%%a echo !token7! !token3!  it is displaing both the value if !TOKEN7! equ 0 echo(field "DIS_TYPE" = " " is Blank) if !token3! equ 0 echo(field "Reason" = " " is Blank)  but it n...