1.

Solve : How I know if partition exists??

Answer»

Hi my friends,
I would like know what ms-dos batch instruction will be used to confirm if any partition exists?

Example:
To a files:
If exists config.sys (echo config.sys exists!) else (echo config.sys not exists!)

Thanks,
Fábio Laranjeiras
To see if a partition exists you would need to use FDISK. However I suspect you REALLY WANT to know how to check for the existence of a drive.

if exist drive:\nul (echo YES) else (echo No)

Fill in drive with the LETTER of your choice.

Hope this helps. OK. Problem RESOLVED. Thank you very much.

Fábio Laranjeiras



Discussion

No Comment Found