Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: How to dete...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 17 of 18 Topic 8229 of 8908
Post > Topic >>

Re: How to determine whether or not there exists a directory

by Terence <tbwright@[EMAIL PROTECTED] > May 14, 2008 at 09:24 PM

Here's a snippet from a correspondent which is supposed to work
(in this case withinn the root WINNT) but you an change that!  ...

       integer lw          ! lw = Laufwerk, which means drive number
       character*51 sroot  ! sroot = system-root-folder,
                           !you can also say: windir
       logical ok
       ok=.FALSE.
       lw=3
       sroot=' '
       do while (.not.ok.and.lw.le.26)
         sroot=char(lw+64)
         sroot(2:)=':\WINNT\NUL'
         inquire (file=sroot,exist=ok)
         lw=lw+1
       end do
       if (.not.ok) sroot=' '
       sroot(index(sroot,'\NUL'):)=' '
 




 18 Posts in Topic:
How to determine whether or not there exists a directory
ziven <zuoweizhang@[EM  2008-05-13 02:26:53 
Re: How to determine whether or not there exists a directory
Terence <tbwright@[EMA  2008-05-13 02:42:19 
Re: How to determine whether or not there exists a directory
Steve Lionel <Steve.Li  2008-05-13 09:36:24 
Re: How to determine whether or not there exists a directory
Ron Ford <ron@[EMAIL P  2008-05-13 18:21:49 
Re: How to determine whether or not there exists a directory
glen herrmannsfeldt <g  2008-05-13 16:20:56 
Re: How to determine whether or not there exists a directory
Arjen Markus <arjen.ma  2008-05-13 07:23:39 
Re: How to determine whether or not there exists a directory
Reinhold Bader <Bader@  2008-05-13 16:32:33 
Re: How to determine whether or not there exists a directory
Terence <tbwright@[EMA  2008-05-13 16:40:41 
Re: How to determine whether or not there exists a directory
Ron Ford <ron@[EMAIL P  2008-05-13 21:05:17 
Re: How to determine whether or not there exists a directory
ziven <zuoweizhang@[EM  2008-05-13 18:03:44 
Re: How to determine whether or not there exists a directory
Catherine Rees Lay <ca  2008-05-14 09:39:25 
Re: How to determine whether or not there exists a directory
relaxmike <michael.bau  2008-05-14 02:50:21 
Re: How to determine whether or not there exists a directory
ziven <zuoweizhang@[EM  2008-05-14 07:39:20 
Re: How to determine whether or not there exists a directory
Steve Lionel <Steve.Li  2008-05-14 13:47:54 
Re: How to determine whether or not there exists a directory
"David Jones" &  2008-05-14 16:53:07 
Re: How to determine whether or not there exists a directory
Steve Lionel <Steve.Li  2008-05-14 13:48:37 
Re: How to determine whether or not there exists a directory
Terence <tbwright@[EMA  2008-05-14 21:24:34 
Re: How to determine whether or not there exists a directory
Terence <tbwright@[EMA  2008-05-14 21:32:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 7:57:44 CST 2008.