How to find exter drives (pen drive and hard disk ans all infomation relates )
-
How to find exter drives (pen drive and hard disk ans all infomation relates )
i am using qt to do this i am able to find all drives with (@foreach( QFileInfo drive, QDir::drives() )
{
qDebug() << "Drive: " << drive.absolutePath();QDir dir = drive.dir(); dir.setFilter( QDir::Dirs ); foreach( QFileInfo rootDirs, dir.entryInfoList() ) qDebug() << " " << rootDirs.fileName(); }
@
)but unable to distinguishes different between is the drive is fixed or remove able.
-
Check out "QSystemStorageInfo":http://doc.qt.nokia.com/qtmobility/qsystemstorageinfo.html from QtMobility. Works on the desktop too.
-
no its not working for desktop