怎样利用WINDOWS的BACKUP制作自己的备份和恢复程序?(150分)

  • 主题发起人 主题发起人 jobsxy
  • 开始时间 开始时间
J

jobsxy

Unregistered / Unconfirmed
GUEST, unregistred user!
WINDOWS中有一个备份程序,它的配置文件好象是XXX.set,我怎样用DELPHI<br>对此配置文件进行读写,并且BACKUP程序的FORM不出现。我所以想用此程序,<br>主要是BACKUP支持的备份设备广泛,而且比利用控件要安全一些,会不会<br>需要用到API的一些调用?
 
版主啊!无人答理我这分数给谁好了???
 
好象M$的Backup不是一个为其它应用提供了服务的应用。<br>
 
为什么不用更好的BACKUP而用M$的,不明白。<br>M$的BACKUP做得不理想,同时它好像不是OLE服务器。另外,若它有批处理功能的<br>话,还好让它后台运行,我没试过。
 
这个问题好象不太使人感兴趣,另提一个问题,回答的人我就给分了?<br>请解释一下FORMAT函数的用法?
 
在线帮助中的Format和 Format strings有很详细的说明呀!
 
看来要我解决FORMAT的用法了。<br>Format(string; array[]):String<br>前者是一串用单引号引起的字符串,后者是前面要用到的参数。<br>函数返回字符串。举个例:<br>Format('这是一个字符串%S换行%S而这里却是一个整数%D。',['ABC',#10#13,1234])<br>结果将会是:<br><br>这是一个字符串ABC换行<br>而这里却是一个整数1234。<br><br>这个例子您能明白吗?加分有问题吗?:)
 
3h还有amo<br>这个FORMAT的帮助文件, 请解释一个马上加分<br><br>Format specifiers have the following form:<br><br>"%" [index ":"] ["-"] [width] ["." prec] type<br><br>A format specifier begins with a % character. After the % come the following, in this order:<br><br>An optional argument index specifier, [index ":"]<br> An optional left justification indicator, ["-"]<br> An optional width specifier, [width]<br> An optional precision specifier, ["." prec]<br> The conversion type character, type<br><br>The following table summarizes the possible values for type:<br><br>&nbsp; d &nbsp; Decimal. The argument must be an integer value. The value is converted to a string of decimal digits. If the format string contains a precision specifier, it indicates that the resulting string must contain at least the specified number of digits; if the value has less digits, the resulting string is left-padded with zeros. <br>&nbsp; e &nbsp; Scientific. The argument must be a floating-point value. The value is converted to a string of the form "-d.ddd...E+ddd". The resulting string starts with a minus sign if the number is negative. One digit always precedes the decimal point. <br>&nbsp; The total number of digits in the resulting string (including the one before the decimal point) is given by the precision specifier in the format string--a default precision of 15 is assumed if no precision specifier is present. The "E" exponent character in the resulting string is always followed by a plus or minus sign and at least three digits. <br>&nbsp; f &nbsp; Fixed. The argument must be a floating-point value. The value is converted to a string of the form "-ddd.ddd...". The resulting string starts with a minus sign if the number is negative. <br>&nbsp; The number of digits after the decimal point is given by the precision specifier in the format string--a default of 2 decimal digits is assumed if no precision specifier is present. <br>&nbsp; g &nbsp; General. The argument must be a floating-point value. The value is converted to the shortest possible decimal string using fixed or scientific format. The number of significant digits in the resulting string is given by the precision specifier in the format string--a default precision of 15 is assumed if no precision specifier is present. <br>&nbsp; Trailing zeros are removed from the resulting string, and a decimal point appears only if necessary. The resulting string uses fixed point format if the number of digits to the left of the decimal point in the value is less than or equal to the specified precision, and if the value is greater than or equal to 0.00001. Otherwise the resulting string uses scientific format. <br>&nbsp; n &nbsp; Number. The argument must be a floating-point value. The value is converted to a string of the form "-d,ddd,ddd.ddd...". The "n" format corresponds to the "f" format, except that the resulting string contains thousand separators. <br>&nbsp; m &nbsp; Money. The argument must be a floating-point value. The value is converted to a string that represents a currency amount. The conversion is controlled by the CurrencyString, CurrencyFormat, NegCurrFormat, ThousandSeparator, DecimalSeparator, and CurrencyDecimals global variables, all of which are initialized from the Currency Format in the International section of the Windows Control Panel. If the format string contains a precision specifier, it overrides the value given by the CurrencyDecimals global variable. <br>&nbsp; p &nbsp; Pointer. The argument must be a pointer value. The value is converted to a string of the form "XXXX:YYYY" where XXXX and YYYY are the segment and offset parts of the pointer expressed as four hexadecimal digits. <br>&nbsp; s &nbsp; String. The argument must be a character, a string, or a PChar value. The string or character is inserted in place of the format specifier. The precision specifier, if present in the format string, specifies the maximum length of the resulting string. If the argument is a string that is longer than this maximum, the string is truncated. <br>&nbsp; x &nbsp; Hexadecimal. The argument must be an integer value. The value is converted to a string of hexadecimal digits. If the format string contains a precision specifier, it indicates that the resulting string must contain at least the specified number of digits; if the value has fewer digits, the resulting string is left-padded with zeros. <br><br>
 
解释什么?全文翻译?!<br><br>d 整数<br>e 实数<br>g 通用,有点象无类型<br>n 浮点数字<br>m 钱 ^$^<br>p 指针<br>s 字符串<br>x 十六进数
 
3h的回答还是使人满意的!<br>3h老兄这150分你拿得满轻忪的,以后可得多多照应小弟一把 ^-^
 
后退
顶部