0

vmdkすべてのファイルに対してコマンドを手動で実行するのではなく、VMWare で使用される壊れたファイルを一度に修正できるバッチ スクリプトを作成しようとしています。バッチファイルを実際に扱ったことがないので、少し苦労しています。なぜこれが機能しないのか、誰かが私を正しい方向に向けることができますか?

set /p WMWorkstationDir = Enter the directory of the VmWare Workstation install, and press enter;
set /p VMFolderToFix = Enter the directory where the VMDK files live that you wish to repair, and press enter;
Rem this is to set up working names in the batch file for the directories specified, helping abstract it
cd VMFolderToFix
for %%X in (*.vmdk) do WMWorkstationDir vmware-vdiskmanager -R
Rem trying to get the repair command to run on all the vmdk files in the target location

ご意見ありがとうございます。

4

1 に答える 1