Search found 26 matches
- 01 Mar 2018 12:17
- Forum: DOS Batch Forum
- Topic: List lines from partial match in file
- Replies: 3
- Views: 4243
Re: List lines from partial match in file
Squashman, Thank you for the tip - I have never really understood the FOR /F command, so your suggestion made me pursue it a bit more diligently (thank you). So these are baby steps for me, but when I run it from the command line it performs pretty well FOR /F "tokens=1 delims='" %G IN (errors.txt) ...
- 01 Mar 2018 09:16
- Forum: DOS Batch Forum
- Topic: List lines from partial match in file
- Replies: 3
- Views: 4243
List lines from partial match in file
Hello DOStips, I am looking for some advice on how to manage wget. We are currently downloading with wget from a list of urls, called urls.txt The log shows downloads that succeeded and also failed I made a working batch to list the fails: findstr /i "ERROR:" c:\urlstrip\test.txt >c:\urlstrip\certif...
- 11 Jan 2018 21:23
- Forum: DOS Batch Forum
- Topic: Insert suffix to every line in TXT file
- Replies: 2
- Views: 3013
Re: Insert suffix to every line in TXT file
thank you so much sir!
Aisha
Aisha
- 11 Jan 2018 15:08
- Forum: DOS Batch Forum
- Topic: Insert suffix to every line in TXT file
- Replies: 2
- Views: 3013
Insert suffix to every line in TXT file
Hello DOS Tips, We are trying to insert a suffix to the END of EVERY line in a file. so we are trying to add a quote mark to the end of each line with setLocal EnableDelayedExpansion for /f "tokens=* delims= " %%a in (c:\sandbox\original.txt) do set /a N+=1 echo ^"%%a^" ^>c:\sandbox\new.txt c:\sandb...
- 03 Jan 2018 15:29
- Forum: DOS Batch Forum
- Topic: Create Two New Columns From Data in Single Column
- Replies: 2
- Views: 3337
Re: Create Two New Columns From Data in Single Column
Squashman - thank you
It works beautifully!!!
Aisha
It works beautifully!!!
Aisha
- 03 Jan 2018 14:16
- Forum: DOS Batch Forum
- Topic: Create Two New Columns From Data in Single Column
- Replies: 2
- Views: 3337
Create Two New Columns From Data in Single Column
Hello DOSTips list, We got a request for one that I am really struggling with: We get lots of TXT files with user name and passwords, one account per line and some character (often a colon) separating the username and password, such as jack.thehill@domain.com:jack'spassword jill.thehill@website.com:...
- 20 Dec 2017 08:18
- Forum: DOS Batch Forum
- Topic: Generate XML From a CSV or TXT File
- Replies: 3
- Views: 5768
Re: Generate XML From a CSV or TXT File
Wow! thank you so much - that is perfect I is true that the full output does not produce a fully functional XML file; I am going to be adding a starting part and an ending part to these files and that portion is already functional, so this wonderful assistance brings the requirement to completion now.
- 19 Dec 2017 16:13
- Forum: DOS Batch Forum
- Topic: Generating .pdf files with batch?
- Replies: 42
- Views: 47467
Re: Generating .pdf files with batch?
A few options for you: free or commercial is Coherent PDF http://www.coherentpdf.com/ "Coherent PDF Command Line Tools give you a wide range of professional, robust tools to modify PDF files. All based on our own PDF technology" and they have a 70-page manual http://www.coherentpdf.com/manuals.html ...
- 19 Dec 2017 16:07
- Forum: DOS Batch Forum
- Topic: Generate XML From a CSV or TXT File
- Replies: 3
- Views: 5768
Generate XML From a CSV or TXT File
Hello DOSTips list I have been looking into how to create an XML file from a CSV or TXT (source.csv), and while I can now successfully echo the required syntax to create an XML (output.xml) manually. However, to take it to the next level, we need to be able to read from a CSV or TXT (source.csv) fil...
- 14 Jun 2017 07:11
- Forum: DOS Batch Forum
- Topic: Persistent DOSKEY and logging everything
- Replies: 1
- Views: 2805
Persistent DOSKEY and logging everything
Hello all, This morning I was asked a rather unusual question, "can you in DOS make a command into an alias that runs the actual command typed in, but also echoes exactly what is typed into a log file along with a date/time-stamp? And it needs to be persistent on start up." My first though...
- 18 Apr 2017 14:08
- Forum: DOS Batch Forum
- Topic: Delete blank lines not working
- Replies: 6
- Views: 7666
Re: Delete blank lines not working
thank you re deleting the 2.txt file - that was a mistake on my part
the posted "solution" definitely removes empty lines but still preserves the last line as blank, so I am still trying to research this thing and figure out why
will definitely post the solution if i find it too
Aisha
the posted "solution" definitely removes empty lines but still preserves the last line as blank, so I am still trying to research this thing and figure out why
will definitely post the solution if i find it too
Aisha
- 18 Apr 2017 13:06
- Forum: DOS Batch Forum
- Topic: Delete blank lines not working
- Replies: 6
- Views: 7666
Re: Delete blank lines not working
That's almost there, but we still have a blank line at the end.
Is there a way to remove that?
sorry if i was not clear
Is there a way to remove that?
sorry if i was not clear
- 18 Apr 2017 11:50
- Forum: DOS Batch Forum
- Topic: Delete blank lines not working
- Replies: 6
- Views: 7666
Delete blank lines not working
Hello all, We have the following code for deleting blank lines in a TXT file, but it is failing to remove the blank lines - any advice? findstr /V /R /C:"^$" c:\salad\yarn\buzzard.txt >>c:\salad\yarn\buzzard2.txt del "c:\salad\yarn\buzzard2.txt" rename "c:\salad\yarn\buzzard...
- 11 Apr 2017 16:21
- Forum: DOS Batch Forum
- Topic: findstr for file extension at end of line
- Replies: 2
- Views: 3930
Re: findstr for file extension at end of line
that is perfect - thank you sir
Aisha
Aisha
- 11 Apr 2017 15:07
- Forum: DOS Batch Forum
- Topic: findstr for file extension at end of line
- Replies: 2
- Views: 3930
findstr for file extension at end of line
Hello DOS Tips We have a list of URLs in a txt file "c:\files\list.txt" We are wanting to only keep URLs that end in any of the filetypes we care about. For instance, only keep URLs that end in PDF, DOC, PPT, htm, or html and dump only these into "c:\files\list_scrubbed.txt" What...