I have this commands for diskpart: select vdisk file=D:\Test.vhd attach vdisk readonly…
- User
I have this commands for diskpart:
select vdisk file=D:\Test.vhd attach vdisk readonly compact vdisk detach vdisk attributes vdisk clear readonly attach vdisk
Use the internet and write me a simple bat file, that will ask write a directory of vhd disk
- Assistant
Creating a simple batch file that incorporates your diskpart commands, along with prompts to input the directory for the VHD file, involves using basic scripting techniques. I'll guide you on how to write this batch file. However, note that I can't access the internet for external data, but I can help you based on my training data.
Here's a sample batch script for your needs:
batch