Post by PegasusPost by M***@gmail.comI created a batch file which displays a dollar amount, but I need to
remove the decimal. Any idea on I would accomplish this?
Thanks in advance
Let's have a look at your batch file (and possibly at
your data file).
Here are the data files:
DR-Header reads -
"HDR",2007-10-10 15:05:49
DR-Results reads -
DDA123456789,DDA,DDA123456789,,38684,1,126.67,,2007-10-10
15:05:49,Successful, 10
DR-Footer reads-
"EOF",1,126.67,"10/10/2007 3:05:49 PM"
Here is the batch file:
@echo off
copy /b "DR-Header.txt" "PYMTRSLT.txt"
type "I:\DATA\MIS\IAC\DebtResolve\Results\DR-Results.txt" >> "I:\DATA
\MIS\IAC\DebtResolve\Results\PYMTRSLT.txt";
for /F %%A in ("DR-Results.txt") do If %%~zA equ 0 type "I:\DATA\MIS
\IAC\DebtResolve\Results\DR-NO DATA.txt" >> "I:\DATA\MIS\IAC
\DebtResolve\Results\PYMTRSLT.txt";
type "I:\DATA\MIS\IAC\DebtResolve\Results\DR-Footer.txt" >> "I:\DATA
\MIS\IAC\DebtResolve\Results\PYMTRSLT.txt";
del /s "DR-Header.txt"
del /s "DR-Footer.txt"
del /s "DR-Results.txt"
eof