Ian: I've had this very strange behaviour once... If I asked for App.Path in ANY folder, i'd get the folder name, without a backslash at the end... (i.e: "C:\My Program Folder" But, if the Path was "C:\", App.Path returned "C:\" (backslash and all). So, since i always added a backslash to the App.Path return value, I ended up getting "C:\\myfile.xxx".
Are you appending a backslash? If so, check for the ending backslash before adding it. I'm not sure if this is your problem, this happened to me many many years ago, on an NT 4 Workstation, with VB 5. It might have got fixed, but then again it might have not. Hope this helps Daniel > -----Mensaje original----- > De: Ian Brooke [mailto:[EMAIL PROTECTED] > Enviado el: Wednesday, September 01, 2004 02:08 > Para: [EMAIL PROTECTED] > Asunto: Re: [vbhelp] App.Path > > > Hi Shawn, > Thanks for your reply. The user definitely has access (unless > something has changed it!) because they just installed the app (3 > times so far!) which included creating the folder. They also > have MacAfee running, but I don't know if that could be affecting > anything, or indeed if some other program is affecting mine - I > can't see why mine should be the one failing but not (to my > knowledge) any others. I have really no idea how to progress > this, that is, how to find the cause of the problem, or better > still, to stop it happening. Any suggestions anyone? > Regards > Ian > > > > ----- Original Message ----- > From: Shawn K. Hall > To: [EMAIL PROTECTED] > Sent: Tuesday, August 31, 2004 8:27 PM > Subject: RE: [vbhelp] App.Path > > > Hi Ian, > > > ...open a text file in its app.path folder but it is > > crashing saying it can't find the file, even though > > it is actually there. The exe sits in C:\Program > > Files\xyz ... > > Does the user account have access to that folder? On a tightly > locked-down system (for example, one with XP SP2 installed), you will > experience problems reading files outside of 'user data' folders (like > appdata and mydocs). > > Another potential reason is that the user has a virus or 'security > tool' installed that functions as a stub under hkcr/exefile/... > intercepting all exe and com calls, and running them in it's own > namespace. This would effectively make app.path the path of the > current environment owned by the stub application. (which might be > c:\) > > Regards, > > Shawn K. Hall > http://ReliableAnswers.com/ > > '// ======================================================== > "The radical of one century is the conservative of the > next. The radical invents the views. When he has worn > them out the conservative adopts them." > -- Mark Twain > > > > > > '// ======================================================= > Rules : http://ReliableAnswers.com/List/Rules.asp > Home : http://groups.yahoo.com/group/vbHelp/ > ======================================================= > Post : [EMAIL PROTECTED] > Join : [EMAIL PROTECTED] > Leave : [EMAIL PROTECTED] > '// ======================================================= > > > > Yahoo! Groups Sponsor > ADVERTISEMENT > > > > > > ------------------------------------------------------------------ > ------------ > Yahoo! Groups Links > > a.. To visit your group on the web, go to: > http://groups.yahoo.com/group/vbhelp/ > > b.. To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms > of Service. > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.744 / Virus Database: 496 - Release Date: 28/08/2004 > > [Non-text portions of this message have been removed] > > > > > > '// ======================================================= > Rules : http://ReliableAnswers.com/List/Rules.asp > Home : http://groups.yahoo.com/group/vbHelp/ > ======================================================= > Post : [EMAIL PROTECTED] > Join : [EMAIL PROTECTED] > Leave : [EMAIL PROTECTED] > '// ======================================================= > > Yahoo! Groups Links > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/k7folB/TM --------------------------------------------------------------------~-> '// ======================================================= Rules : http://ReliableAnswers.com/List/Rules.asp Home : http://groups.yahoo.com/group/vbHelp/ ======================================================= Post : [EMAIL PROTECTED] Join : [EMAIL PROTECTED] Leave : [EMAIL PROTECTED] '// ======================================================= Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vbhelp/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
