cmd: Get rid of obsolete autoexec.bat handling code.

This commit is contained in:
Frédéric Delanoy 2011-09-06 01:13:07 +02:00 committed by Alexandre Julliard
parent df699a89fa
commit 54c2f6491d
1 changed files with 0 additions and 16 deletions

View File

@ -2252,11 +2252,8 @@ int wmain (int argc, WCHAR *argvW[])
WCHAR *cmd = NULL; WCHAR *cmd = NULL;
WCHAR string[1024]; WCHAR string[1024];
WCHAR envvar[4]; WCHAR envvar[4];
HANDLE h;
int opt_q; int opt_q;
int opt_t = 0; int opt_t = 0;
static const WCHAR autoexec[] = {'\\','a','u','t','o','e','x','e','c','.',
'b','a','t','\0'};
static const WCHAR promptW[] = {'P','R','O','M','P','T','\0'}; static const WCHAR promptW[] = {'P','R','O','M','P','T','\0'};
static const WCHAR defaultpromptW[] = {'$','P','$','G','\0'}; static const WCHAR defaultpromptW[] = {'$','P','$','G','\0'};
char ansiVersion[100]; char ansiVersion[100];
@ -2574,19 +2571,6 @@ int wmain (int argc, WCHAR *argvW[])
HeapFree(GetProcessHeap(), 0, cmd); HeapFree(GetProcessHeap(), 0, cmd);
} }
/*
* If there is an AUTOEXEC.BAT file, try to execute it.
*/
GetFullPathNameW (autoexec, sizeof(string)/sizeof(WCHAR), string, NULL);
h = CreateFileW(string, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (h != INVALID_HANDLE_VALUE) {
CloseHandle (h);
#if 0
WCMD_batch (autoexec, autoexec, 0, NULL, INVALID_HANDLE_VALUE);
#endif
}
/* /*
* Loop forever getting commands and executing them. * Loop forever getting commands and executing them.
*/ */