dastaub
asked on
Visual Studio 2008 - create directory if does not exist
The project is written in Visual Basic 2008. I have code that writes a text file to c:\TempStorage
What code would be needed to verify the c:\TempStorage directory exists, and if it does not exist, what code would be needed to create the folder c:\tempStorage?
What code would be needed to verify the c:\TempStorage directory exists, and if it does not exist, what code would be needed to create the folder c:\tempStorage?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
True but if they already have code writing to a file then it's a safe assumption they are already importing system.io
ASKER
I was actually using:
myXML.Save("c:\EPDEHRS\XML \PQRI_" & txtNumber.Text & ".xml")
so
the data of adding "Imports System.IO" was also of value
myXML.Save("c:\EPDEHRS\XML
so
the data of adding "Imports System.IO" was also of value