Re: Strange problem with PDW
- From: "Sally" <me@xxxxxxxx>
- Date: Thu, 26 Jul 2007 06:56:31 +1000
"dpb" <none@xxxxxxx> wrote in message news:f88a4a$tko$1@xxxxxxxxxxx
Sally wrote:Thanks for trying. I've solved the problem! When deploying, all that is
Hi. Experimenting with packaging an app. A strange error has arisen. I
wonder if anyone else has experienced it or can point at a solution.
My app has a sequence where if a certain dircetory does not exist it is
created. If it does exist the creation lines are jumped over, like this:
On Error Resume Next ' ignore error if directory already exists
MkDir "C:\BLOGGS" ' else make the directory
On Error GoTo 0 'bring back error trapping
This works in the IDE and it works when compiled. BUT, if deployed in a
package, and the package run as a test (having first deleted BLOGGS if it
existed in tests) then it does not create the directory. Thus, unless I'm
doing something else silly the MkDir does not work after an app has been
deployed. Any ideas?
Have to have write permission on the partition trying to create the new
subdirectory on.
On some platforms may have to have Supervisor status or be installed with,
maybe??? This is an area I don't know anything about as don't
"distribute" code I write, but know there are some "issues" w/ some older
packages I have w/ XP. I'm sure others here can expound far more
learnedly than I... :)
needed is to have the explicit line ChDrive "C:\" in the code! It seems that
the app works perfectly without it both under the IDE and when compiled, but
once deployed from a CD, although it is deployed onto the C: drive, when
using the program you still need to explicitly ChDrive. Can't think why as
once copied onto C: we are no longer in D: Still, there it is. Now looking
forward to comments from that kind person who offered to check whether any
of the packaged "other" files are harmful (another thread...)
-
.
- Follow-Ups:
- Re: Strange problem with PDW
- From: Steve Gerrard
- Re: Strange problem with PDW
- From: MikeD
- Re: Strange problem with PDW
- References:
- Strange problem with PDW
- From: Sally
- Re: Strange problem with PDW
- From: dpb
- Strange problem with PDW
- Prev by Date: Re: No Prob Re: Compacting a Random created file
- Next by Date: Re: Strange problem with PDW
- Previous by thread: Re: Strange problem with PDW
- Next by thread: Re: Strange problem with PDW
- Index(es):
Relevant Pages
|