用winrunner怎么得到文件的大小,并进行比较?
想得到两个文件的大小,并比较他们 今天花了1个小时,找到了解决方法,你到我的blog上去看吧http://winterwoo.cnblogs.com Solution: Use the get_file_size() function from the CSO 2 Function Library
There is a function in the CSO 2 Function Library called get_file_size() that will return the size of a file in bytes.
This function will return the size of a file in bytes. It will return a -1 if it fails.
Example:
size = get_file_size("C:\\Temp\\file.txt");
CSO 2这个函数需要到MI或者其他网站上面下载,这里面没有办法粘贴.
页:
[1]