Search found 3 matches

by z9999
30 Sep 2015 13:46
Forum: DOS Batch Forum
Topic: convert AM/PM fields to 24hrs entries in a text file
Replies: 10
Views: 17851

Re: convert AM/PM fields to 24hrs entries in a text file

I am trying to understand why !HOURS2! is EMPTY, when !HOURS1! has a value for example 11. I think that !HOURS1! is not 11, but is 11 and some special character. In other words, IF I echo !HOURS1!, I get 11. (!HOURS! is assigned a value in the FOR loop) IF I echo !HOURS2!, I get NOTHING (!HOURS2! is...
by z9999
30 Sep 2015 12:51
Forum: DOS Batch Forum
Topic: convert AM/PM fields to 24hrs entries in a text file
Replies: 10
Views: 17851

Re: convert AM/PM fields to 24hrs entries in a text file

foxidrive, I meant field4(2015-09-23 11:26:01 AM) and field5(2015-09-23 11:26:05 AM).
!HOURS1! is being assigned the correct data. !HOURS2! is always EMPTY.
by z9999
29 Sep 2015 13:56
Forum: DOS Batch Forum
Topic: convert AM/PM fields to 24hrs entries in a text file
Replies: 10
Views: 17851

convert AM/PM fields to 24hrs entries in a text file

Hi there, I am new to this forum and new to batch files on windows7. I have a .csv file that contains thousands lines similar to those: CLB,,,18l,,20150922,,2015-09-23 11:26:00 AM,,,2015-09-23 11:26:01 AM,,,,trad,,1344,,cam549,,,PUR,,,X001,,,PCL CPC,,,3rs,,20150922,,2015-09-23 11:26:01 AM,,,2015-09-...