Search found 12 matches

by sivasriram
25 Sep 2014 15:43
Forum: DOS Batch Forum
Topic: Unable to get no.of lines in a txt file- batch file
Replies: 7
Views: 6289

Re: Unable to get no.of lines in a txt file- batch file

i NEED OUTPUT LIKE


MESHANA-5269
VARACHA-2452
SURAT-5626
UMIYA-45

BUT THE MENTIONED CODE IS WRITING ONLY FIRST TWO RECORDS AND NOT FETCHNING RECORDS FROM 3RD ONE.
by sivasriram
25 Sep 2014 15:33
Forum: DOS Batch Forum
Topic: Unable to get no.of lines in a txt file- batch file
Replies: 7
Views: 6289

Re: Unable to get no.of lines in a txt file- batch file

hello, here is my code cd desktop e: cd E:\CTS\Data\Mumbai\CORE\MEHSANA\OutBox\Extracts\IW ( set /p="Meshana - "<nul findstr /rn "^" "*25092014*.txt"| find /c ":" )>"E:\counts\extract-count.xls" cd ../../../../ cd E:\CTS\Data\Mumbai\CORE\Varachha Ban...
by sivasriram
03 Sep 2014 11:06
Forum: DOS Batch Forum
Topic: how to calculate count of no.of pages in pdf file-batch file
Replies: 38
Views: 38720

Re: how to calculate count of no.of pages in pdf file-batch

no output nothing this time , even txt file not created in this case Try this. If the path has spaces in it, the whole thing needs to be surrounded by double quotes. @echo off cls set file_name="C:\Documents and Settings\Prudhvi\Desktop\12\22.pdf" echo|set /p=%file_name%,>>pdf_num.txt fin...
by sivasriram
03 Sep 2014 10:51
Forum: DOS Batch Forum
Topic: how to calculate count of no.of pages in pdf file-batch file
Replies: 38
Views: 38720

Re: how to calculate count of no.of pages in pdf file-batch

You will have to put the full path of the file if the batch file and the pdf aren't in the same folder. hey shadow see man my folder 12 containsa pdf file named 22.pdf(which is in desktop) i m running code through command prompt if it worked i would do a batch file, but the output is printing 0 eve...
by sivasriram
03 Sep 2014 10:40
Forum: DOS Batch Forum
Topic: how to calculate count of no.of pages in pdf file-batch file
Replies: 38
Views: 38720

Re: how to calculate count of no.of pages in pdf file-batch

You will have to put the full path of the file if the batch file and the pdf aren't in the same folder. hey shadow see man my folder 12 containsa pdf file named 22.pdf(which is in desktop) i m running code through command prompt if it worked i would do a batch file, but the output is printing 0 eve...
by sivasriram
03 Sep 2014 10:20
Forum: DOS Batch Forum
Topic: how to calculate count of no.of pages in pdf file-batch file
Replies: 38
Views: 38720

Re: how to calculate count of no.of pages in pdf file-batch

You just went through the code and replaced every instance of the string "file name" or "file_name" with 22.pdf, of course it's not going to work; you broke the code! What the original code did was ask the user to type in the name of the file to get the page numbers for. You wou...
by sivasriram
03 Sep 2014 09:15
Forum: DOS Batch Forum
Topic: how to calculate count of no.of pages in pdf file-batch file
Replies: 38
Views: 38720

Re: how to calculate count of no.of pages in pdf file-batch

@echo off cls set /p "file_name=File name: " findstr /R /C:"/Type\s*/Page[^s]" "%file_name%"|find /c /v "" the code was not working here it is running fine, but output is not at all appearing... Oh yeah, you wanted it output to a file, didn't you? Sorry about...
by sivasriram
03 Sep 2014 03:13
Forum: DOS Batch Forum
Topic: how to calculate count of no.of pages in pdf file-batch file
Replies: 38
Views: 38720

Re: how to calculate count of no.of pages in pdf file-batch

ShadowThief wrote:

Code: Select all

@echo off
cls

set /p "file_name=File name: "
findstr /R /C:"/Type\s*/Page[^s]" "%file_name%"|find /c /v ""


the code was not working here :(

it is running fine, but output is not at all appearing...
by sivasriram
02 Sep 2014 10:43
Forum: DOS Batch Forum
Topic: how to calculate count of no.of pages in pdf file-batch file
Replies: 38
Views: 38720

how to calculate count of no.of pages in pdf file-batch file

hello,

I just want to know, how to write a simple code to count no.of pages in pdf file and to notedown count in a seprate excel sheet

Thanks in advance guys :)
by sivasriram
31 Aug 2014 11:42
Forum: DOS Batch Forum
Topic: Suggest a User Friendly IDE & Book for Batch File Programmin
Replies: 6
Views: 5631

hello every one ! new bie here

Hi i m pretty new to write codes for batch files, can anyone guide me the sources to learn more coding for batch files.


any sites , links , videos and pdf material sharing is highly thankful :)
by sivasriram
30 Aug 2014 11:04
Forum: DOS Batch Forum
Topic: Unable to get no.of lines in a txt file- batch file
Replies: 7
Views: 6289

Unable to get no.of lines in a txt file- batch file

hello guys

given below is my dos command

echo on
cd filelocation
echo umiya >umiya.xls
findstr /R /N "^" file.txt | find /C ":" >>umiya.xls



the execution is correct but the output is something like
umiya
10


i just need it in side by side like

umiya-10