🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

current drive in visual basic

Started by
0 comments, last by GameDev.net 24 years, 6 months ago
Can anybody tell me how to get the current drive ( like 'D:' ) in visual basic?
Advertisement
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!

This topic is closed to new replies.

Advertisement