Search found 6 matches
- 21 Jun 2018 10:39
- Forum: DOS Batch Forum
- Topic: Need help deleting the second line in all csvs in a folder
- Replies: 7
- Views: 5429
Re: Need help deleting the second line in all csvs in a folder
Okay, looking at SS64.com's FINDSTR page I put the following together: @echo off set _outputfolder="D:\A Folder\A Subfolder\Test Folder" echo. echo %_outputfolder% @findstr /r /b /c:"-*|" %_outputfolder%\*.csv echo. echo errorlevel: %errorlevel% @pause And when I run that my output is this: "D:\A Fo...
- 21 Jun 2018 10:04
- Forum: DOS Batch Forum
- Topic: Need help deleting the second line in all csvs in a folder
- Replies: 7
- Views: 5429
Re: Need help deleting the second line in all csvs in a folder
That's correct.
- 21 Jun 2018 09:52
- Forum: DOS Batch Forum
- Topic: Need help deleting the second line in all csvs in a folder
- Replies: 7
- Views: 5429
Re: Need help deleting the second line in all csvs in a folder
Thanks, penpen. Apparently, I should have been more specific about what's in my file! The text in the files will look very much like the following: Name|Address1|Address2|City|State|Zip|ID ----|--------|--------|----|-----|---|-------- John Smith|10 Fourth Avenue SE||Some City|MN|12345|82X9Z43 Mary ...
- 21 Jun 2018 09:29
- Forum: DOS Batch Forum
- Topic: DOS Batch script - Variable for current system time plus 2 minutes?
- Replies: 4
- Views: 5139
Re: DOS Batch script - Variable for current system time plus 2 minutes?
Thank you for the clarification, Squashman. I admit I'm terribly new to batch scripting, so I probably should have divulged that information!
You're right, as a VB.NET programmer, I understand the need to keep localization in mind.
You're right, as a VB.NET programmer, I understand the need to keep localization in mind.
- 21 Jun 2018 09:15
- Forum: DOS Batch Forum
- Topic: DOS Batch script - Variable for current system time plus 2 minutes?
- Replies: 4
- Views: 5139
Re: DOS Batch script - Variable for current system time plus 2 minutes?
Below is a batch script I put together when I was learning how to work with dates and times for a project. It breaks down all of the parts of the date and time and shows how the parts can be put in variables and worked with in various ways. @echo off @setlocal enabledelayedexpansion echo. echo Syste...
- 21 Jun 2018 07:56
- Forum: DOS Batch Forum
- Topic: Need help deleting the second line in all csvs in a folder
- Replies: 7
- Views: 5429
Need help deleting the second line in all csvs in a folder
I just spent an hour and a half Googling how to do what I need to do, but everything I read doesn't explain the syntax of what's going on. I'm just not getting how to do this. I need to delete the second line from all CSV files in a folder. The folder will be in the form of a variable, "%OUTPUTFOLDE...