| View previous topic :: View next topic |
| Author |
Message |
michael1982 Newbie

Joined: 19 Feb 2007 Posts: 1
|
Posted: Mon Feb 19, 2007 11:40 am Post subject: how to check for existing directories? |
|
|
hi there,
i am looking for a way to check if directories exist.
For example:
| Code: |
Sub ExampleFilecopy
Filecopy "c:\autoexec.bat", "c:\Temp\Autoexec.sav"
end sub
|
when i want to copy the file into "c:\temp"there have to be a dir called temp, without it
it wouldn't work.
my question is how to check for existing dirs.
i played a little bit with pickfolder, but had no success!?
http://www.oooforum.org/forum/viewtopic.phtml?t=9797
Thx
Michael |
|
| Back to top |
|
 |
Mark B Super User


Joined: 16 Feb 2007 Posts: 852 Location: Lincolnshire, UK
|
Posted: Mon Feb 19, 2007 11:53 am Post subject: |
|
|
| Code: |
Sub ExampleFilecopy
if ( Dir("/tmp") <> "") then
Filecopy "c:\autoexec.bat", "c:\Temp\Autoexec.sav"
end if
end sub
|
Mark _________________ Mark B's Articles |
|
| Back to top |
|
 |
|