L
Laurence Nuttall
Doing,
Dim arrFiles() as string
Dim strWinDir as String
Dim intRet as Integer
Dim strWavFilePath as string
StrWinDir = Space(255)
intRet = GetWindowsDirectory(StrWinDir, Len(StrWinDir))
If intRet > 0 Then
arrFiles = system.IO.Directory.GetFiles (strWinDir &
"\media\","*.wav")
End IF
'-------------------------------------------------------------
I get
An unhandled exception of type 'System.IO.PathtoLongException'
occured in mscorlib.dll
Additionl information. the path is too long after being fully
qualified. Make sure path is less than 260 characters.
'---------------------------------------------------------------
The exception occurs on the getfiles statement.
The path is less than 260 characters.
Any help would be appreciated.
Laurence Nuttall
Programmer Analyst III
UCLA - Division of Continuing Education
Dim arrFiles() as string
Dim strWinDir as String
Dim intRet as Integer
Dim strWavFilePath as string
StrWinDir = Space(255)
intRet = GetWindowsDirectory(StrWinDir, Len(StrWinDir))
If intRet > 0 Then
arrFiles = system.IO.Directory.GetFiles (strWinDir &
"\media\","*.wav")
End IF
'-------------------------------------------------------------
I get
An unhandled exception of type 'System.IO.PathtoLongException'
occured in mscorlib.dll
Additionl information. the path is too long after being fully
qualified. Make sure path is less than 260 characters.
'---------------------------------------------------------------
The exception occurs on the getfiles statement.
The path is less than 260 characters.
Any help would be appreciated.
Laurence Nuttall
Programmer Analyst III
UCLA - Division of Continuing Education