フォルダC:\temp\root\students\type1
、そのサブフォルダとすべてのファイルを削除または削除するバッチファイルを作成したいとします。次のように私が持っているんバッチファイルを持つ親フォルダ内の特定のサブフォルダを削除する方法
フォルダとファイルは、以下のとおりです。
C:\temp
C:\temp\root
C:\temp\root\students
C:\temp\root\tutors
C:\temp\root\students\type1
C:\temp\root\students\type2
C:\temp\root\tutors\type1
C:\temp\root\tutors\type2
C:\temp\root\students\type1\details.txt
C:\temp\root\students\type1\assignment1
C:\temp\root\students\type1\assignment1\results.txt
フォルダC:\temp\root\students\type1\assignment1
は、バッチファイルで指定されています。
バッチファイル(test.bat)にある1つのフォルダ/ディレクトリを削除して削除したいと思いますか?C:\temp\root\students\type1
を削除してください。
私にこれを手伝ってください。
Cは、ハード自分のものがオンになっているドライブどんなプログラミング言語ではありません。これにはタグを付けないでください。 – evaitl
既存のバッチファイルコマンドはどこにありますか?あなたのニーズに合うようにフォルダを変更してください – dbmitch