Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if directory exists

Status
Not open for further replies.

JamesNicholls

Vendor
Nov 28, 2002
8
GB
Hi, another simple questions. I've just had some scripting dropped on me and I'm blundering around in the dark.

I want to see if a directory exists - how can I do this? The name of the directory will always be the same.
 
if [ -d myDirPath ] ; then
echo "myDirPath exists"
fi; vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top