Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #765
| From | "Farnsworth" <nospam@nospam.com> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: Problem with mapped drives from VB6 |
| Date | 2012-02-09 10:32 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jh0ou7$bq1$1@speranza.aioe.org> (permalink) |
| References | <VA.000038d6.76c3a044@ukrm.net> |
"R C Nesbit" <spam@ukrm.net> wrote in message news:VA.000038d6.76c3a044@ukrm.net... >I have an application which needs to display a directory > tree and an adjacent file list box. > > The form contains a DirListBox and a FileListBox. > > The application resides in a mapped drive on a Win2008 SBS > machine. > > When a new customer record is created the application > checks to see if there is a directory > (it cleans up the customer name first, removing illegal > character) > sPath = app.path & "\AppDocs\" & <customername> > by setting the Dir1.Path = sPath > > Then it adds a further folder: > sPath = sPath & "\" & <recordID> > Dir1.Path = sPath > > with an error handler: > > if Err = 76 then > MkDir sPath > Resume > end if > > This works perfectly on this machine. > It works perfectly if run directly on the server (via a > remote terminal window) > > When run from a workstation it crashes with > "Error 75 Path/File Access Error" MkDir and DirListBox/FileListBox would generate an error if an intermediate folder does not exist. Could be because the admin made "AppDocs" into a share and mapped that instead. I would print the path as the app sees it in the error message. Example: MsgBox Err.Number & ": " & Err.Description & vbCrLf & "Path is '" & sPath & "'" This prints the error and the path surrounded by single quotes, just in case there are extra spaces. Tell the user to press Ctrl+C when the dialog appears. This copies the contents to the Clipboard as text. This feature was present since the Windows 9x days.
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Problem with mapped drives from VB6 R C Nesbit <spam@ukrm.net> - 2012-02-08 18:37 +0000
Re: Problem with mapped drives from VB6 GS <gs@somewhere.net> - 2012-02-08 14:59 -0500
Re: Problem with mapped drives from VB6 Helmut_Meukel <Helmut_Meukel@bn-hof.invalid> - 2012-02-09 10:16 +0100
Re: Problem with mapped drives from VB6 GS <gs@somewhere.net> - 2012-02-09 09:40 -0500
Re: Problem with mapped drives from VB6 "Farnsworth" <nospam@nospam.com> - 2012-02-09 10:03 -0500
Re: Problem with mapped drives from VB6 "Farnsworth" <nospam@nospam.com> - 2012-02-09 10:23 -0500
Re: Problem with mapped drives from VB6 "DaveO" <djo@dial.pipex.com> - 2012-02-09 15:36 +0000
Re: Problem with mapped drives from VB6 GS <gs@somewhere.net> - 2012-02-09 13:52 -0500
Re: Problem with mapped drives from VB6 "DaveO" <djo@dial.pipex.com> - 2012-02-10 10:49 +0000
Re: Problem with mapped drives from VB6 GS <gs@somewhere.net> - 2012-02-10 22:00 -0500
Re: Problem with mapped drives from VB6 Deanna Earley <dee.earley@icode.co.uk> - 2012-02-09 09:56 +0000
Re: Problem with mapped drives from VB6 R C Nesbit <spam@ukrm.net> - 2012-02-09 10:08 +0000
Re: Problem with mapped drives from VB6 R C Nesbit <spam@ukrm.net> - 2012-02-09 15:14 +0000
Re: Problem with mapped drives from VB6 "Farnsworth" <nospam@nospam.com> - 2012-02-09 10:32 -0500
Re: Problem with mapped drives from VB6 R C Nesbit <spam@ukrm.net> - 2012-02-09 18:14 +0000
csiph-web