383{
385 INT i, filesReplaced = 0, nFiles, srcIndex = -1, destIndex = -1;
389
392
393
395 {
398 }
399
400
403
404
406 {
408 {
410 {
412 {
415 break;
418 break;
421 break;
424 break;
427 break;
430 break;
431 default:
433 return 11;
434 }
435 }
436 else
437 {
439 return 11;
440 }
441 nFiles--;
442 }
443 else
444 {
445 if (srcIndex == -1)
446 {
448 }
449 else if (destIndex == -1)
450 {
452 }
453 else
454 {
456 return 11;
457 }
458 }
459 }
460
461
462 if (nFiles < 1)
463 {
466 return 11;
467 }
468
469
471 {
474 return 11;
475 }
476
477
478 if (destIndex != -1)
479 {
480 if (
_tcslen(
arg[destIndex]) == 2 &&
arg[destIndex][1] ==
':')
482 else
483 {
484
487 {
490 return 3;
491 }
493
495 {
498 return 3;
499 }
500 }
501 }
502 else
503 {
504
506 }
507
508
509 if (!(
_tcslen(
arg[srcIndex]) == 2 &&
arg[srcIndex][1] ==
':'))
511 else
513
514
517 {
518
520 {
523 return 2;
524 }
525
527 {
529 return 2;
530 }
531 }
532
533
535 {
538 }
539
540
541 if (szDestPath[
_tcslen(szDestPath) - 1] !=
_T(
'\\'))
543
544
546
548
550 {
552 }
553
554
555 if (filesReplaced != -1)
556 {
557
558 if (filesReplaced == 0)
559 {
560
563 else
565 }
566
567 else
568 {
569
572 else
574 }
575 }
576
577
579}
#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
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
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