Subversion Repositories DevTools

Rev

Rev 4814 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4814 Rev 5882
Line 77... Line 77...
77
         "      1 - Operation Specifier\n"
77
         "      1 - Operation Specifier\n"
78
         "      2 - Debug Mode. 0..9\n"
78
         "      2 - Debug Mode. 0..9\n"
79
         "  Where 'Text' is a, possibly empty, display string\n"
79
         "  Where 'Text' is a, possibly empty, display string\n"
80
         "\n"
80
         "\n"
81
         "  By Example:\n"
81
         "  By Example:\n"
82
         "      c9 copyFile     dstPath srcPath chmod\n"
82
         "      c9 copyFile     dstPath srcPath modes(wxl)\n"
83
         "      d9 unCopyFile   dstPath\n"
83
         "      d9 unCopyFile   dstPath\n"
84
         "      r9 RmFile       file+\n"
84
         "      r9 RmFile       file+\n"
85
         "      D9 DeleteFiles  dstDir file+ - supports (?*)\n"
85
         "      D9 DeleteFiles  dstDir file+ - supports (?*)\n"
86
         "      T9 DeleteTree   dstDir+\n"
86
         "      T9 DeleteTree   dstDir+\n"
87
         "      R9 RmItem       (dir|file)+\n"
87
         "      R9 RmItem       (dir|file)+\n"
Line 335... Line 335...
335
**
335
**
336
----------------------------------------------------------------------------*/
336
----------------------------------------------------------------------------*/
337
 
337
 
338
void copyOneFile( int argc, _TCHAR* argv[] )
338
void copyOneFile( int argc, _TCHAR* argv[] )
339
{
339
{
340
	DWORD rv;
340
    DWORD rv;
341
    _TCHAR * src;
341
    _TCHAR * src;
342
    _TCHAR * dst;
342
    _TCHAR * dst;
343
    
343
    
344
    dst = makePath(argv[3], NULL);
344
    dst = makePath(argv[3], NULL);
345
    src = makePath(argv[4], NULL);
345
    src = makePath(argv[4], NULL);
Line 432... Line 432...
432
**
432
**
433
----------------------------------------------------------------------------*/
433
----------------------------------------------------------------------------*/
434
 
434
 
435
void DeleteDir( int argc, _TCHAR* argv[] )
435
void DeleteDir( int argc, _TCHAR* argv[] )
436
{
436
{
437
	DWORD rv;
437
    DWORD rv;
438
    _TCHAR* baseDir;
438
    _TCHAR* baseDir;
439
    WIN32_FIND_DATA FindFileData;
439
    WIN32_FIND_DATA FindFileData;
440
    HANDLE hFind;
440
    HANDLE hFind;
441
    _TCHAR *target;
441
    _TCHAR *target;
442
    _TCHAR *dirPath;
442
    _TCHAR *dirPath;
Line 545... Line 545...
545
**
545
**
546
----------------------------------------------------------------------------*/
546
----------------------------------------------------------------------------*/
547
 
547
 
548
void DeleteOneDirectoryTree( _TCHAR* baseDir )
548
void DeleteOneDirectoryTree( _TCHAR* baseDir )
549
{
549
{
550
	DWORD rv;
550
    DWORD rv;
551
    WIN32_FIND_DATA FindFileData;
551
    WIN32_FIND_DATA FindFileData;
552
    HANDLE hFind;
552
    HANDLE hFind;
553
    _TCHAR *target;
553
    _TCHAR *target;
554
    _TCHAR *dirPath;
554
    _TCHAR *dirPath;
555
    _TCHAR *thisDir;
555
    _TCHAR *thisDir;
Line 699... Line 699...
699
**
699
**
700
----------------------------------------------------------------------------*/
700
----------------------------------------------------------------------------*/
701
 
701
 
702
int DeleteOneFile (_TCHAR * dst )
702
int DeleteOneFile (_TCHAR * dst )
703
{
703
{
704
	DWORD rv;
704
    DWORD rv;
705
    int result = 0;
705
    int result = 0;
706
 
706
 
707
    if ( verbose > 1)
707
    if ( verbose > 1)
708
        fprintf(stderr, "Delete File: %ls\n", dst);
708
        fprintf(stderr, "Delete File: %ls\n", dst);
709
 
709