cjard
May 9th, 2008, 10:42 AM
Hi all.. I have the following post build:
rexcopy.exe "$(TargetDir)" "(.*\.dll|.*\.tlb)" "d:\published\$(SolutionName)"
rexcopy is an exe i wrote to copy files regular expression matched on the name. it needs 3 arguments, the source dir, the regex, and the dest dir. It wasnt working with this post-build so i put some console WriteLines in to reveal what arguments it is receiving and it gets only one:
c:\windows\rexcopy.exe "C:\Documents and Settings\MyProj\bin\Release\" "(.*\.dll|.*\.tlb)" "D:\Published\MyProj"
Argument: C:\Documents and Settings\MyProj\bin\Release\" "(.*\.dll|.*\.tlb)" "D:\Published\MyProj
1 arguments specified
RexCopy
rexcopy.exe <sourceDir> <filenameRegex> <destDir> [/c] [/o]
<sourceDir> = a full path of the dir to hunt for files
<filenameRegex> = a regular expression to match filenames with
<destDir> = a full path of the dir where to put files
/c = clear dest dir first
/o = overwrite existing files
expected:
c:\windows\rexcopy.exe "C:\Documents and Settings\MyProj\bin\Release\" "(.*\.dll|.*\.tlb)" "D:\Published\MyProj"
Argument: C:\Documents and Settings\MyProj\bin\Release\
Argument: (.*\.dll|.*\.tlb)
Argument: D:\Published\MyProj
3 arguments specified
RexCopy
rexcopy.exe <sourceDir> <filenameRegex> <destDir> [/c] [/o]
<sourceDir> = a full path of the dir to hunt for files
<filenameRegex> = a regular expression to match filenames with
<destDir> = a full path of the dir where to put files
/c = clear dest dir first
/o = overwrite existing files
any idea what gives?
rexcopy.exe "$(TargetDir)" "(.*\.dll|.*\.tlb)" "d:\published\$(SolutionName)"
rexcopy is an exe i wrote to copy files regular expression matched on the name. it needs 3 arguments, the source dir, the regex, and the dest dir. It wasnt working with this post-build so i put some console WriteLines in to reveal what arguments it is receiving and it gets only one:
c:\windows\rexcopy.exe "C:\Documents and Settings\MyProj\bin\Release\" "(.*\.dll|.*\.tlb)" "D:\Published\MyProj"
Argument: C:\Documents and Settings\MyProj\bin\Release\" "(.*\.dll|.*\.tlb)" "D:\Published\MyProj
1 arguments specified
RexCopy
rexcopy.exe <sourceDir> <filenameRegex> <destDir> [/c] [/o]
<sourceDir> = a full path of the dir to hunt for files
<filenameRegex> = a regular expression to match filenames with
<destDir> = a full path of the dir where to put files
/c = clear dest dir first
/o = overwrite existing files
expected:
c:\windows\rexcopy.exe "C:\Documents and Settings\MyProj\bin\Release\" "(.*\.dll|.*\.tlb)" "D:\Published\MyProj"
Argument: C:\Documents and Settings\MyProj\bin\Release\
Argument: (.*\.dll|.*\.tlb)
Argument: D:\Published\MyProj
3 arguments specified
RexCopy
rexcopy.exe <sourceDir> <filenameRegex> <destDir> [/c] [/o]
<sourceDir> = a full path of the dir to hunt for files
<filenameRegex> = a regular expression to match filenames with
<destDir> = a full path of the dir where to put files
/c = clear dest dir first
/o = overwrite existing files
any idea what gives?