Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to setup script AutoBackup.bat


07 Jun 2012   #1

windows 7
 
 
How to setup script AutoBackup.bat

Hi,

I would like to ask if what is the problem of my script. Just because when i'm running the script it will save on c:\windows instead, i would like to save it on drive e:\backup bins. Hope someone can help me...

Please see below my script.

echo.
:START
for /F "tokens=1-5 delims=/ " %%i in ('date /t') do (
set Month=%%j
set Day=%%k
set Year=%%l
set Date=%%j_%%k_%%l

)

ECHO buffer=1000000 file= Company%DATE% owner=Company compress=y grants=y indexes=y > company.exp
exp userid=company/12345678@dbserver parfile=company.exp log= company.log

jar -cf company%DATE%.jar *.dmp *.exp *.log

del *.dmp
del *.log
del *.exp
:EXIT

Thank you.
Tata

My System SpecsSystem Spec
.

Reply

 How to setup script AutoBackup.bat




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:18 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33