View Full Version: Visual Basic 6.0

HellBlaze Cafe > PC World > Visual Basic 6.0


Title: Visual Basic 6.0
Description: I'm pulling my hair out on this! >_<


Blaze the Hedgehog - March 28, 2009 12:47 AM (GMT)
I'm looking for a way to check if a folder exists, if it does then I want the program to simply rewrite the file within it. If it doesn't exist I want the program to create it then create the file.
In this case the location is

CODE
Dir("C:\Documents and Settings\Blaze\Desktop\CycloDS Themes\" & txtDirectory.Text & "\skin.xml")

txtDirectory.Text is whatever the user wants it to be.

I've already got the code to edit a text file (xml in this case) I just need an If/Else or Select Case statement that lets me check to see if the path exists or not.

PS: I've tried multiple ways already and they haven't worked.




Hosted for free by InvisionFree