How to find the name of the current directory
Posted on July 29, 2011
1 2 3 4 5 6 7 8 9 10 11 | 'File/Folder Handling - How to find the name of the current directory 'use the CurDir$ function. When this function is passed a drive letter, 'it returns the current directory on that particular path. 'Always use On Error--the current dir might be on a removed floppy disk. On Error Resume Next Print CurDir$ ' Displays "D:\VisStudio\VB98" ' The current directory on drive C: Print = CurDir$("c") ' Displays "C:\WinNT\System" |