Hi,
I have written my application and given the text files a dir to save to. Is there a way that that dir would read as a wildcard wherever I install it to? Example I have the drive path listed as c:\......... , I want to install to the d drive without having to change the application path in the code.
Here is my code:
Dim r1 As String
Dim fileName As String
fileName = "C:\miprice software\data\r 1.txt"
r1 = FreeFile
Open fileName For Output As #r1
Print #r1, Text1.Text
Close #r1
I want the "filename = "c"............ ... to be a wildcard....
Just the \Miprice software\Data\r 1.txt stays static.
Hope this makes sense.
Thanks
Werner
I have written my application and given the text files a dir to save to. Is there a way that that dir would read as a wildcard wherever I install it to? Example I have the drive path listed as c:\......... , I want to install to the d drive without having to change the application path in the code.
Here is my code:
Dim r1 As String
Dim fileName As String
fileName = "C:\miprice software\data\r 1.txt"
r1 = FreeFile
Open fileName For Output As #r1
Print #r1, Text1.Text
Close #r1
I want the "filename = "c"............ ... to be a wildcard....
Just the \Miprice software\Data\r 1.txt stays static.
Hope this makes sense.
Thanks
Werner
Comment