Does anyone have any idea why this isn't working?
If Dir("C:\Custlink") <> "" Then
Kill ("C:\Custlink\*.*")
If Dir("C:\Custlink\Batch") <> "" Then
Kill ("C:\Custlink\Batch\*.*")
RmDir ("C:\Custlink\Batch")...
How would I loop this until it was done?
Dim ChkID As String
ChkID = txtCustomer.Text
If ChkID = "" Then
Message = "Please fill in the Customer ID Number"
MsgBox Message, vbOKOnly + vbInformation, "ERROR"
End If
Say I had a return of C:\shop\data\mdb from a dirlistbox. Would there be a way to make the drive letter and the returned directories into variables
so..
C = W, shop = x, data = y, mdb = z and then write that to a file and say...
W:
CD X
CD Y
CD Z
I'm quite new at all of this. Thank you to...
How would I add txt to a certin line in a txt or bat file? Say I wanted to add it to line 4...
Dim lngI As Long
Dim Autobat As Long
Dim strFile As String
Autobat = FreeFile
Open "C:\Autoexec.bat" For Input As #Autobat
strFile = Input(LOF(Autobat), #Autobat)...
What I'm trying to do is look for a string in a file. If it's not there, add it. It it is there, replace it with a new one. I seem to be doing something wrong....
Dim Autobat As Long
Dim aryByt() As Byte
Dim strFile As String
Autobat = FreeFile
Open...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.