BOOL WINAPI SetCurrentDirectory(
__in LPCTSTR lpPathName
);
int _tmain(int argc, _TCHAR* argv[])
{
SetCurrentDirectory(_T("d:\\www"));
system("dir");
return 0;
}
D:\WindowsAPP\SetCurrentDirectory\Debug>SetCurrentDirectory.exe
驱动器 D 中的卷是 WinSoft
卷的序列号是 6EAB-3C0C
d:\www 的目录
2011/09/09 16:31 <DIR> .
2011/09/09 16:31 <DIR> ..
2010/09/10 12:22 125 adsense.txt
2011/07/12 15:01 <DIR> aspnet_client
2011/09/09 16:31 6,546 code.html
2011/08/31 14:27 9,120,938 fs-vbs415.rar
2011/08/26 19:07 1,249 getmp3.php
2011/06/17 17:48 69,335,593 linux-2.6.35.13.tar.bz2
2011/07/24 23:15 <DIR> modpost
2011/09/06 15:47 12 save_default.txt
2011/09/06 15:45 21 save_default.txt.bak
2011/09/06 15:45 21 utf8_default.txt
2011/07/12 14:56 208 web.config
9 个文件 78,464,713 字节
4 个目录 134,471,409,664 可用字节
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |