PC Review


Reply
Thread Tools Rate Thread

changing system path from vba

 
 
Silvester
Guest
Posts: n/a
 
      24th Mar 2004
Hi,

Is there any way on mdb startup to make sure that our mdb directory is
included in the system path,

and if not to add it to the system path.

If so, please can you let me know the vba coding to achieve this.

Thanks in advance


 
Reply With Quote
 
 
 
 
Wayne Morgan
Guest
Posts: n/a
 
      24th Mar 2004
You shouldn't need to. What are you trying to accomplish?

--
Wayne Morgan
MS Access MVP


"Silvester" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Is there any way on mdb startup to make sure that our mdb directory is
> included in the system path,
>
> and if not to add it to the system path.
>
> If so, please can you let me know the vba coding to achieve this.
>
> Thanks in advance
>
>



 
Reply With Quote
 
 
 
 
Silvester
Guest
Posts: n/a
 
      25th Mar 2004
When I distribute a packaged app, sometimes it cannot find specified files
unless the app directory is added to system path.

I have found a way to modify path on setup using my installer, so vba is not
required.

"Wayne Morgan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You shouldn't need to. What are you trying to accomplish?
>
> --
> Wayne Morgan
> MS Access MVP
>
>
> "Silvester" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > Is there any way on mdb startup to make sure that our mdb directory is
> > included in the system path,
> >
> > and if not to add it to the system path.
> >
> > If so, please can you let me know the vba coding to achieve this.
> >
> > Thanks in advance
> >
> >

>
>



 
Reply With Quote
 
Wayne Morgan
Guest
Posts: n/a
 
      25th Mar 2004
I hate install programs that think they should change the configuration of
my computer for their app to work. You can get the path to where the mdb
file is installed and call these other files using the full path. To get the
path to the mdb file in VBA:

CurrentProject.Path

will return the path to the mdb file.

You may also be able to accomplish what you want by setting the working
directory in the shortcut that opens your app.

--
Wayne Morgan
Microsoft Access MVP


"Silvester" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When I distribute a packaged app, sometimes it cannot find specified files
> unless the app directory is added to system path.
>
> I have found a way to modify path on setup using my installer, so vba is

not
> required.
>
> "Wayne Morgan" <(E-Mail Removed)> wrote in

message
> news:(E-Mail Removed)...
> > You shouldn't need to. What are you trying to accomplish?
> >
> > --
> > Wayne Morgan
> > MS Access MVP
> >
> >
> > "Silvester" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi,
> > >
> > > Is there any way on mdb startup to make sure that our mdb directory is
> > > included in the system path,
> > >
> > > and if not to add it to the system path.
> > >
> > > If so, please can you let me know the vba coding to achieve this.
> > >
> > > Thanks in advance
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
TC
Guest
Posts: n/a
 
      26th Mar 2004
You are missing Wayne's point. A normal application >should not< be changing
the system path, if there is any other way to do what has to be done - and
there usually >is< some other way.

TC


"Silvester" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When I distribute a packaged app, sometimes it cannot find specified files
> unless the app directory is added to system path.
>
> I have found a way to modify path on setup using my installer, so vba is

not
> required.
>
> "Wayne Morgan" <(E-Mail Removed)> wrote in

message
> news:(E-Mail Removed)...
> > You shouldn't need to. What are you trying to accomplish?
> >
> > --
> > Wayne Morgan
> > MS Access MVP
> >
> >
> > "Silvester" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi,
> > >
> > > Is there any way on mdb startup to make sure that our mdb directory is
> > > included in the system path,
> > >
> > > and if not to add it to the system path.
> > >
> > > If so, please can you let me know the vba coding to achieve this.
> > >
> > > Thanks in advance
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to judge whether a path is relative path or absolute path thinktwice Microsoft Windows 2000 CMD Promt 20 7th May 2008 11:06 PM
set path, change path - path grayed out John Smith Windows XP Help 1 12th Feb 2005 02:56 PM
set path, change path - path grayed out John Smith Windows XP General 1 12th Feb 2005 02:56 PM
how to add a large bulk of path into system path environment variable? gino Windows XP Help 3 28th Jul 2004 07:30 PM
changing system path from vba Silvester Microsoft Access Form Coding 1 24th Mar 2004 02:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:32 AM.