| | |
Assigning Drive Letter in VB6
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2006
Posts: 18
Reputation:
Solved Threads: 2
If I understand correctly. You can use the stored system variables:
Find a large list of these variables here and what they are all about: http://vlaurie.com/computers2/Articles/environment.htm
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Debug.Print Environ("PROGRAMFILES") 'OR if you want just the drive letter you can also use Debug.Print Environ("HOMEDRIVE") 'OR Debug.Print Environ("SYSTEMDRIVE")
Last edited by Sentax; Nov 29th, 2006 at 6:44 pm. Reason: Added more information.
It is the wisest man who knows there is much he does not know.
![]() |
Similar Threads
- Setting up a 2nd hard drive (Windows NT / 2000 / XP)
- Hard drive Data Recovery (Storage)
- Missing drive letter and MBR error (Storage)
- Changing boot volume drive letter? (Windows NT / 2000 / XP)
- Drive letter missing (Windows 95 / 98 / Me)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Communicating with access database..Urgent<:)
- Next Thread: problems about my data form wizard
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





