how to delete the directory on win98?
-
like MoveFileEx(path); but it only work on win NT, I want to delete all file in the path after reboot the machine. thanks!
DeleteFile will delete a file. MoveFile will move it. MoveFileEx does exist only for the NT stream, but MoveFile is fine. Christian Graus - Microsoft MVP - C++
-
like MoveFileEx(path); but it only work on win NT, I want to delete all file in the path after reboot the machine. thanks!
szcococut wrote: I want to delete all file in the path after reboot the machine. you have to modify the the WinInit.ini file to achieve the same. It's an INI file, however for deleting it's harder because the format is:
[rename]
NUL=C:\\temp\\file1.exe
NUL=C:\\foo\\file2.exeand so on. You can\'t use WritePrivateProfileString() because the second NUL line would replace the first. You need to read the whole file in,modify it, and write it back out
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV