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:
parent
7c73bdacd7
commit
925608327f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user