NewsArchive
06-21-2007, 06:29 AM
Hi,
I can't see an easy way to delete a folder tree at compile time using
compiler directive statements. I want to copy my files to compile from a
network drive to my local drive, compile them there, then upload them back
to the network to speed up the compilation time
I figured I can use #run to run xcopy.exe to copy a folder tree, but I can't
run "rmdir /s" to remove the folder tree, which is needed to ensure old
files are not compiled from a previous build. Since this command is part of
the DOS shell it doesn't have an associated .EXE filename to specify in the
#run dialog and so it seems the command doesn't get executed. The rmdir
command line I need to run takes the path to delete from a compiler variable
so I can't use a pre-written batch file. Also, I can't create the batch file
dynamically with the correct pathnames since this isn't possible using
compiler directives
Does anybody have any ideas for this?
Regards,
Jeff Botwood
Data Design Services
I can't see an easy way to delete a folder tree at compile time using
compiler directive statements. I want to copy my files to compile from a
network drive to my local drive, compile them there, then upload them back
to the network to speed up the compilation time
I figured I can use #run to run xcopy.exe to copy a folder tree, but I can't
run "rmdir /s" to remove the folder tree, which is needed to ensure old
files are not compiled from a previous build. Since this command is part of
the DOS shell it doesn't have an associated .EXE filename to specify in the
#run dialog and so it seems the command doesn't get executed. The rmdir
command line I need to run takes the path to delete from a compiler variable
so I can't use a pre-written batch file. Also, I can't create the batch file
dynamically with the correct pathnames since this isn't possible using
compiler directives
Does anybody have any ideas for this?
Regards,
Jeff Botwood
Data Design Services