これは非常に単純なようで、適切なフラグを見落としているだけかもしれませんが、1つのコマンドで、あるディレクトリから別のディレクトリにファイルをコピーし、宛先ディレクトリで名前を変更するにはどうすればよいでしょうか。これが私のコマンドです:
if exist "bin\development\whee.config.example"
if not exist "TestConnectionExternal\bin\Debug\whee.config"
xcopy "bin\development\whee.config.example"
"TestConnectionExternal\bin\Debug\whee.config"
毎回次のように促されます。
TestConnectionExternal \ bin \ Debug \ whee.configは、ターゲット上のファイル名またはディレクトリ名を指定しますか(F =ファイル、D =ディレクトリ)?
このプロンプトを抑制したい。答えは常にF
です。