Patch level : 2.0 492

Files correlati     : ba0close.exe
Ricompilazione Demo : [ ]
Commento            :

Rinominate anche le eventuali DLL dei servers dopo un aggiornamento


git-svn-id: svn://10.65.10.50/trunk@11229 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-06-11 14:19:42 +00:00
parent 7c73bdacd7
commit 925608327f

View File

@ -2,12 +2,10 @@
#include <stdio.h>
int PASCAL WinMain(HINSTANCE, HINSTANCE , LPSTR, int)
void Renamer(const char* mask)
{
::Sleep(1000); // Apetta un secondo che termini ba0.exe
WIN32_FIND_DATA data;
HANDLE hHandle = ::FindFirstFile("*.??_", &data);
HANDLE hHandle = ::FindFirstFile(mask, &data);
BOOL bRunning = hHandle != INVALID_HANDLE_VALUE;
while (bRunning)
{
@ -47,6 +45,14 @@ int PASCAL WinMain(HINSTANCE, HINSTANCE , LPSTR, int)
bRunning = ::FindNextFile(hHandle, &data);
}
}
int PASCAL WinMain(HINSTANCE, HINSTANCE , LPSTR, int)
{
::Sleep(1000); // Apetta un secondo che termini ba0.exe
Renamer("*.??_");
Renamer("Servers\\*.??_");
return 0;
}