Re: Batch File Rename + Date added & Move to another location
- From: foxidrive <gotcha@xxxxxxxxxxxxxx>
- Date: Wed, 17 Jan 2007 23:41:31 +1100
On 17 Jan 2007 03:32:59 -0800, carla_cund@xxxxxxxxxxx wrote:
I need to run a batch file which will go to this location
c:\perflogs\networksops2.csv and move this file to a level down
c:\perflogs\archivedperflogs and rename the file keeping the original
name but adding a date to it ie networkops220070117.csv
This needs to be run every week on a schedule. The original location
every week will have the c:\perflogs\networksops2.csv file added by a
performance log. I need to then archive this data off so it is not
overwritten every week
Try this: (untested)
@echo off
:: Code by Herbert Kleebauer
echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>d_t.com
echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6>>d_t.com
echo LisqMz`wGH@wKuur`G@w?ogBgGG}G?j_egoNOG?w?`gBLksqgG`w?WgBgG>>d_t.com
echo G}G?R_MgoNMy?wSx@W?s?W?@zAB`LrFuBLyt~vuco{@LuKooD?BFHqrIcP>>d_t.com
echo _sdDxb1T??=?rILO_sdDqx1T??=?rILO_sdDnl1T??=?rILO_sdD`c1T??>>d_t.com
echo =?rILO_sdDgg1T??=?rILO_sdDll1T??=?rILO_sdDrr1T??=??IL?0xxx>>d_t.com
d_t.com>d_t.bat
call d_t.bat
del d_t.com
del d_t.bat
echo century: %_cy%
echo year: %_yr%
echo month: %_mo%
echo day: %_da%
echo hour: %_hh%
echo minute: %_mm%
echo second: %_ss%
move c:\perflogs\networksops2.csv
c:\perflogs\archivedperflogs\networksops2%_cy%%_yr%%_mo%%_da%.csv
.
- Follow-Ups:
- Re: Batch File Rename + Date added & Move to another location
- From: carla_cund
- Re: Batch File Rename + Date added & Move to another location
- From: carla_cund
- Re: Batch File Rename + Date added & Move to another location
- References:
- Batch File Rename + Date added & Move to another location
- From: carla_cund
- Batch File Rename + Date added & Move to another location
- Prev by Date: Batch File Rename + Date added & Move to another location
- Next by Date: Re: Batch File Rename + Date added & Move to another location
- Previous by thread: Batch File Rename + Date added & Move to another location
- Next by thread: Re: Batch File Rename + Date added & Move to another location
- Index(es):
Relevant Pages
|