393{
395 INT argc,
i,filesReplaced = 0, nFiles, srcIndex = -1, destIndex = -1;
399
400
402 {
404 return 0;
405 }
406
407
410
411
413 {
415 {
417 {
419 {
422 break;
425 break;
428 break;
431 break;
434 break;
437 break;
438 default:
441 return 0;
442 }
443 }
444 else
445 {
448 return 0;
449 }
450 nFiles--;
451 }
452 else
453 {
454 if (srcIndex == -1)
455 {
457 }
458 else if (destIndex == -1)
459 {
461 }
462 else
463 {
466 return 0;
467 }
468 }
469 }
470
471
472 if (nFiles < 1)
473 {
477 return 1;
478 }
479
481 {
485 return 1;
486 }
487
488
489 if (destIndex != -1)
490 {
491 if (
_tcslen(
arg[destIndex]) == 2 &&
arg[destIndex][1] ==
':')
493 else
494 {
495
498 {
502 return 1;
503 }
505
507 {
511 return 1;
512 }
513 }
514 }
515 else
516 {
517
519 }
520
521
522 if (!(
_tcslen(
arg[srcIndex]) == 2 &&
arg[srcIndex][1] ==
':'))
524 else
526
527
530 {
531
533 {
537 return 1;
538 }
539
541 {
544 return 1;
545 }
546 }
547
549 {
552 }
553
554
555 if (szDestPath[
_tcslen(szDestPath) - 1] !=
_T(
'\\'))
557
558
560
562
564 {
566 }
567
568
569 if (filesReplaced != -1)
570 {
571
572 if (filesReplaced==0)
573 {
574
577 else
579 }
580
581 else
582 {
583
586 else
588 }
589 }
590
592 return 1;
593}
BOOL IsExistingDirectory(IN LPCTSTR pszPath)
BOOL IsExistingFile(IN LPCTSTR pszPath)
INT GetRootPath(IN LPCTSTR InPath, OUT LPTSTR OutPath, IN INT size)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
#define ConOutResPrintf(uID,...)
#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
static VOID freep(LPSTR *p)
static LPSTR * split(LPSTR s, LPINT args)
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)
#define GetCurrentDirectory
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags