Re: going to and making directories

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bart van den Burg (bart_at_NOSPAM.tvreclames.nl)
Date: 11/12/04


Date: Fri, 12 Nov 2004 14:06:10 +0100


"Bob Butler" <tiredofit@nospam.com> schreef in bericht
news:euMw5DFyEHA.4060@TK2MSFTNGP10.phx.gbl...
> "Bart van den Burg" <bart@NOSPAM.tvreclames.nl> wrote in message
> news:%23sxHzXEyEHA.3804@TK2MSFTNGP10.phx.gbl
> > hi
> >
> > I wish to change the current working directory to a specified
> > directory, and then to a subdirectory of that one.
> > However, non-existence of directories results in an error.
> > How can I work around this error?
> >
> > so, the script tries to go to a dir. If it doesn't exist, it gives an
> > error. if it does exist, the script goes to a specific subdirectory,
> > and if it doesnt exist, it creates that directory
> >
> > how do i achieve this?
>
> You mention "the script" but are asking in a VB newsgroup... is this the
> full VB language or VBScript or VBA or ???

I'm not really sure what the difference is, but I'm making a macro in Excel
using Visual Basic
I hope this is enough information.



Relevant Pages