发表于:2011/7/24 13:59:46
#0楼
我一按钮下做了如下C脚本
#pragma code ("Winmm.dll")
BOOL WINAPI CopyFile(LPCTSTR lpExistingFileName,LPCTSTR lpNewFileName,BOOL bFailIfExists);
VOID WINAPI PlaySoundA (char*pszSound,char*homode, DWORD dwflag ) ;
//CopyFile("C:\\1.txt","C:\\2.txt",TRUE);
PlaySoundA("C:\\WINDOWS\\Media\\chimes.wav", NULL,1);
ProgramExecute("C:\\WINDOWS\\system32\\cmd.exe");
当使用CopyFile函数时 并没有生成2.txt文件,CMD框也不弹出
CopyFile函数哪里错了?谢谢
还有请教一下SetFileAttributes函数 在上面的代码里怎么用?
谢谢
#pragma code ("Winmm.dll")
BOOL WINAPI CopyFile(LPCTSTR lpExistingFileName,LPCTSTR lpNewFileName,BOOL bFailIfExists);
VOID WINAPI PlaySoundA (char*pszSound,char*homode, DWORD dwflag ) ;
//CopyFile("C:\\1.txt","C:\\2.txt",TRUE);
PlaySoundA("C:\\WINDOWS\\Media\\chimes.wav", NULL,1);
ProgramExecute("C:\\WINDOWS\\system32\\cmd.exe");
当使用CopyFile函数时 并没有生成2.txt文件,CMD框也不弹出
CopyFile函数哪里错了?谢谢
还有请教一下SetFileAttributes函数 在上面的代码里怎么用?
谢谢