I can't figure out how to rename a file using the move task. I have a zip file that I know the directory location of, but I don't know the entire name of the file. So, I just need to find the single zip file in the directory and rename it. At the command line, I can do this:
move C:\test\BetaRelease*.zip C:\test\Prod\ProductionRelease.zip For whatever reason, move won't work from the exec task, and the move task won't allow a * in the file name. If I try the following I get an error: <move file="C:\test\BetaRelease*.zip" tofile="C:\test\Prod\ProductionRelease.zip" overwrite="true" /> I can't use <fileset> within the move task because move will only accept the 'todir' option and not the 'tofile' option. Can anyone help me? Thanks, Erin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users