Author: Jonas Bilinkevicius
Does anybody know how to create a virtual drive from a Delphi program?
Answer:
You can try this. I tested it in Windows ME and it works ok.
1 { ... }2 if DefineDosDevice(DDD_RAW_TARGET_PATH, 'P:', 'F:\Backup\Music\Modules') then3 ShowMessage('Drive was created successfully')
4 else5 ShowMessage('Error creating drive");
6 { ... }