The first 2 days, the automatic backup of the Oracle under SCO appears in the SCO, and it is not possible to perform properly. If you reinstall Oracle, you need to prepare. But the backup can not be delayed, or the database is lost. So I want to automatically back up the Script implementation timing of the Windows client written. However, the system time in Windows has "2004-11-25 Thursday" is not good as the file name. So I went to the Internet to find a, there is no result, I have to make a fixed file name temporary use.
Come over 2 days I still checked some information, I finally have the result: in fact, there is a method of character processing under DOS, summarizing the following:
Under this date format: "2004-11-25 Thursday", this% date: ~ 0, 10% is 2004-11-25
Description: Date is a system variable, ":" indicates that the string "~ 0, 10" starting to process "~ 0, 10" indicates 10 characters from the 0 characters.
Some of the substr () functions under Basic, right?
Problem solve, write shell script under Windows, especially want to automatically back up.