Skin Aphotic designed by Zeus00 of the IF Skin Zone.

HellBlaze Cafe


 

 Visual Basic 6.0, I'm pulling my hair out on this! >_<
Blaze the Hedgehog
Posted: Mar 27 2009, 07:47 PM


Loud Mouth
Group Icon

Group: Members
Posts: 178
Member No.: 1,519
Joined: 26-March 06



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.

This post has been edited by Blaze the Hedgehog on Mar 27 2009, 07:48 PM
Click to PM this userSend this user an EmailClick to visit their page Click to AIM this userClick to YIM this userClick to MSN this user
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


Topic Options



Hosted for free by InvisionFree (Terms of Use: Updated 7/7/05) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.0110 seconds | Archive