Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Error Running app in Win98 1

Status
Not open for further replies.

YoshiCD

Programmer
Feb 24, 2001
96
ES
I Created my application in Windows XP with VB6.
My app and it's exe work fine in XP running from the Hard Disk, and also when I run the software from CD (which is my ultimate plan). I use Stand-Alone Xpress, a VB Project Packager that compiles all Libraries and controls into one EXE, to create my CD. (alos using Autorun.inf to start the prog)
However, when I test the CD in Windows 98, I get a file error saying that the Path is not found.
This is in relation to a WebBrwoser on my main form, which initially loads up the following code

[tt]
StartingAddress = App.Path & "\blank.html"
brwBrowser.Navigate StartingAddress
[/tt]

The Error Tells me that [tt]G:\\blank.html[/tt] Doesn't Exist, And Yes, the double backslash does come up in the msgbox (G:\\). The file is in the root of G (the CD) but the problem is the program doesn't seem to recognise StartingAddress variable properly in Windows98.

If anyone could help, I would be eternally grateful.
If anyone needs me to clarify anything or another example of code, please reply to this thread and I will post it.

Thanx in Advance,

Regards,

[yinyang] ¥oshi [yinyang]

-------------------------
"There is No Spoon.."
-------------------------
Programming Outsource:
"I'm an idealist. I don't know where I'm going but I'm on the way." — Carl Sandburg, 20th-century American poet and writer
 
the problem is because the file is in the root and you are adding a backslash. see code below

'create nice pathnames
If Right(App.Path, 1) = "\" Then
m_strFile1 = App.Path & "active.dat"
m_strFile2 = App.Path & "inactive.dat"
Else
m_strFile1 = App.Path & "\active.dat"
m_strFile2 = App.Path & "\inactive.dat"
End If
 
Javaguy,

It Worked a dream, you are a Superstar (and have deserved one!)
Unfortunately, Tektips doesn't (currently) have the scope for a superstar, so you'll have to settle for a pink one instead!

Thanks a mil buddy,

Regards,

[yinyang] ¥oshi [yinyang]

-------------------------
"There is No Spoon.."
-------------------------
Programming Outsource:
"I'm an idealist. I don't know where I'm going but I'm on the way." — Carl Sandburg, 20th-century American poet and writer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top