Greetings,
I have searched, taken numerous stabs and pulled out my hair in attempting to set a variable for yesterday's day in DDD format e.g. - MON, TUE, etc. I also need the same for the current day. The situation is that I have production box performing a nightly oracle export (each named MON.dmp, TUE.bat, etc) and the plan, which is easy enough to visualize, is to copy each day's finished export file onto a test server and import the data into a freshly created database named for the current day. Hence the need for the current day in DDD format. I also need the previous day's format in DDD format because I'll need to first stop the previous day's database and associated oracle services before the new day's database can be created. Can this be done wth either internal dos commads and/or wsh from a batch file? Btw, this is on windows 2000 server.
Many, many, Many Many thanks!
croag
I have searched, taken numerous stabs and pulled out my hair in attempting to set a variable for yesterday's day in DDD format e.g. - MON, TUE, etc. I also need the same for the current day. The situation is that I have production box performing a nightly oracle export (each named MON.dmp, TUE.bat, etc) and the plan, which is easy enough to visualize, is to copy each day's finished export file onto a test server and import the data into a freshly created database named for the current day. Hence the need for the current day in DDD format. I also need the previous day's format in DDD format because I'll need to first stop the previous day's database and associated oracle services before the new day's database can be created. Can this be done wth either internal dos commads and/or wsh from a batch file? Btw, this is on windows 2000 server.
Many, many, Many Many thanks!
croag