381{
383 INT i, filesReplaced = 0, nFiles, srcIndex = -1, destIndex = -1;
387
390
391
393 {
396 }
397
398
401
402
404 {
406 {
408 {
410 {
413 break;
416 break;
419 break;
422 break;
425 break;
428 break;
429 default:
431 return 11;
432 }
433 }
434 else
435 {
437 return 11;
438 }
439 nFiles--;
440 }
441 else
442 {
443 if (srcIndex == -1)
444 {
446 }
447 else if (destIndex == -1)
448 {
450 }
451 else
452 {
454 return 11;
455 }
456 }
457 }
458
459
460 if (nFiles < 1)
461 {
464 return 11;
465 }
466
467
469 {
472 return 11;
473 }
474
475
476 if (destIndex != -1)
477 {
478 if (
_tcslen(
arg[destIndex]) == 2 &&
arg[destIndex][1] ==
':')
480 else
481 {
482
485 {
488 return 3;
489 }
491
493 {
496 return 3;
497 }
498 }
499 }
500 else
501 {
502
504 }
505
506
507 if (!(
_tcslen(
arg[srcIndex]) == 2 &&
arg[srcIndex][1] ==
':'))
509 else
511
512
515 {
516
518 {
521 return 2;
522 }
523
525 {
527 return 2;
528 }
529 }
530
531
533 {
536 }
537
538
539 if (szDestPath[
_tcslen(szDestPath) - 1] !=
_T(
'\\'))
541
542
544
546
548 {
550 }
551
552
553 if (filesReplaced != -1)
554 {
555
556 if (filesReplaced==0)
557 {
558
561 else
563 }
564
565 else
566 {
567
570 else
572 }
573 }
574
575
577}
#define STRING_REPLACE_HELP1
#define STRING_REPLACE_HELP7
#define STRING_REPLACE_HELP3
#define STRING_REPLACE_HELP4
#define STRING_REPLACE_HELP2
#define STRING_REPLACE_ERROR4
#define STRING_REPLACE_ERROR6
#define STRING_REPLACE_ERROR2
#define STRING_REPLACE_HELP8
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void invalid_switch(LPTSTR is)
INT recReplace(DWORD dwFlags, TCHAR szSrcPath[MAX_PATH], TCHAR szDestPath[MAX_PATH], BOOL *doMore)
void getPath(TCHAR *out, LPTSTR in)
INT recFindSubDirs(DWORD dwFlags, TCHAR szSrcPath[MAX_PATH], TCHAR szDestPath[MAX_PATH], BOOL *doMore)
BOOL IsExistingDirectory(IN LPCTSTR pszPath)
BOOL IsExistingFile(IN LPCTSTR pszPath)
INT GetRootPath(IN LPCTSTR InPath, OUT LPTSTR OutPath, IN INT size)
#define ConOutResPrintf(uID,...)
#define GetCurrentDirectory
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags