mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
fix errorlevel for copy. left to do is /D = copy encrypte file and decypte to destinations (NT3.51) /S = make destfile name 8.3 compatible (NT3.51) /Z = restart copy if it fails
svn path=/trunk/; revision=16575
This commit is contained in:
parent
2e307cf29e
commit
84dc5b02f3
1 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,7 @@ int copy (LPTSTR source, LPTSTR dest, int append, DWORD lpdwFlags)
|
||||||
{
|
{
|
||||||
LoadString(CMD_ModuleHandle, STRING_COPY_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
LoadString(CMD_ModuleHandle, STRING_COPY_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
||||||
ConOutPrintf(szMsg, source);
|
ConOutPrintf(szMsg, source);
|
||||||
|
nErrorLevel = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,6 +103,7 @@ int copy (LPTSTR source, LPTSTR dest, int append, DWORD lpdwFlags)
|
||||||
ConOutPrintf(szMsg, source);
|
ConOutPrintf(szMsg, source);
|
||||||
|
|
||||||
CloseHandle (hFileSrc);
|
CloseHandle (hFileSrc);
|
||||||
|
nErrorLevel = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,6 +184,7 @@ int copy (LPTSTR source, LPTSTR dest, int append, DWORD lpdwFlags)
|
||||||
free (buffer);
|
free (buffer);
|
||||||
CloseHandle (hFileDest);
|
CloseHandle (hFileDest);
|
||||||
CloseHandle (hFileSrc);
|
CloseHandle (hFileSrc);
|
||||||
|
nErrorLevel = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,6 +269,8 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nErrorLevel = 0;
|
||||||
|
|
||||||
/* Get the envor value if it exists */
|
/* Get the envor value if it exists */
|
||||||
evar = malloc(512);
|
evar = malloc(512);
|
||||||
size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);
|
size = GetEnvironmentVariable (_T("COPYCMD"), evar, 512);
|
||||||
|
@ -710,6 +715,7 @@ INT cmd_copy (LPTSTR cmd, LPTSTR param)
|
||||||
/* print out the error message */
|
/* print out the error message */
|
||||||
LoadString(CMD_ModuleHandle, STRING_COPY_ERROR3, szMsg, RC_STRING_MAX_SIZE);
|
LoadString(CMD_ModuleHandle, STRING_COPY_ERROR3, szMsg, RC_STRING_MAX_SIZE);
|
||||||
ConOutPrintf(szMsg);
|
ConOutPrintf(szMsg);
|
||||||
|
nErrorLevel = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Loop through all wildcard files */
|
/* Loop through all wildcard files */
|
||||||
|
|
Loading…
Reference in a new issue