current drive in visual basic
December 08, 1999 05:15 PM
Can anybody tell me how to get the current drive ( like 'D:' ) in visual basic?
The CurDir function returns the current path, so something like:
Dim MyPath, CurDrive
MyPath = CurDir
CurDrive = Left$(MyPath, 1)
(or something like that, it's been a while since I've done VB stuff).
Mason McCuskey
Spin Studios www.spin-studios.com
Founder, Cuttlefish Industries
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement