Added directory listing support for the shell

Correctec bug that prevented listing the root directory in the vfat fsd
Corrected mistake where the SL_xxx constants were too long

svn path=/trunk/; revision=145
This commit is contained in:
David Welch
1999-01-03 16:18:19 +00:00
parent 2d14c3e110
commit 20ef31f3cc
21 changed files with 882 additions and 521 deletions

View File

@@ -53,7 +53,7 @@ void ExecuteDir(char* cmdline)
HANDLE shandle;
WIN32_FIND_DATA FindData;
shandle = FindFirstFile("*.*",&FindData);
shandle = FindFirstFile("*",&FindData);
if (shandle==INVALID_HANDLE_VALUE)
{
@@ -94,12 +94,13 @@ int ExecuteProcess(char* name, char* cmdline)
PROCESS_INFORMATION ProcessInformation;
STARTUPINFO StartupInfo;
char arguments;
BOOL ret;
memset(&StartupInfo,0,sizeof(StartupInfo));
StartupInfo.cb = sizeof(STARTUPINFO);
StartupInfo.lpTitle = name;
return(CreateProcessA(name,
ret = CreateProcessA(name,
cmdline,
NULL,
NULL,
@@ -108,7 +109,12 @@ int ExecuteProcess(char* name, char* cmdline)
NULL,
NULL,
&StartupInfo,
&ProcessInformation));
&ProcessInformation);
if (ret)
{
WaitForSingleObject(ProcessInformation.hProcess,INFINITE);
}
return(ret);
}
void ExecuteCommand(char* line)