[b][red]This message was edited by saint_dev at 2003-3-10 20:48:54[/red][/b][hr]
Ok I've been looking for the answer to that for weeks, but right after I posted I figured it out. My question now is does anyone know a way to restart a computer using VB.Net on both 9x and XP/2000?
Hi I'm trying to delete a file on restart using the MoveFileEx API in VB.Net. If I pass a name as the second argument it works fine and renames the file on reboot like it should. If I try to pass it a Null (using Chr(0)) for the second file name it returns that it failed, and the registry key is not written. Using GetLastError I get error number 3 "Path not found". Could someone please help me figure out what is up with this?