Error 52: Bad File Name or Number
From: Bill Baker (BillBaker_at_discussions.microsoft.com)
Date: 10/08/04
- Next message: johnfli: "Re: excel"
- Previous message: Dennis Rose: "Re: How to interface WEB with VB4?"
- Next in thread: Jim Mack: "Re: Error 52: Bad File Name or Number"
- Reply: Jim Mack: "Re: Error 52: Bad File Name or Number"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 8 Oct 2004 14:33:03 -0700
I've got a simple VB6 app that works fine on all but one system. On that
system, it gives an "Error 52: Bad File Name or Number" error.
The exact line in the code where the error is occurring is below:
' Need to compensate for blank lines:
If strCurrLine <> "" Then
' THIS IS THE LINE: ERROR 52, BAD FILE NAME OR NUMBER:
If Mid(strCurrLine, Len(strCurrLine) - 3, 1) <> "." Then
...
End If
...
End If
The code is to determine whether or not an extension is present in a
path/filename line from a text file. Some of the filenames are executables
(exe, com, bat, cmd) and do not have extensions listed in the text file.
The offending machine has Windows XP. The app works fine on other XP and 2K
systems.
Why would this only be happening on one system? Why is it returning a "Bad
File Name or Number" message, when the offending line doesn't reference a
file name or number?
Thanks,
-- Bill Baker
- Next message: johnfli: "Re: excel"
- Previous message: Dennis Rose: "Re: How to interface WEB with VB4?"
- Next in thread: Jim Mack: "Re: Error 52: Bad File Name or Number"
- Reply: Jim Mack: "Re: Error 52: Bad File Name or Number"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|