Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Cimso
  • Order by date
  1. Cimso

    FileExists method

    Is there a diffent way to search the entire hard drive for a certain file or files?
  2. Cimso

    FileExists method

    I looked for "sysFileFind" in the MSDN Library Visual Studio 6.0, and I also looked for it at http://msdn.microsoft.com/ and couldn't find it in either place.
  3. Cimso

    FileExists method

    How would I go about searching a whole drive for a file? Can it be done with the FileExists method?
  4. Cimso

    Kill and RmDir

    Does anyone have any idea why this isn't working? If Dir(&quot;C:\Custlink&quot;) <> &quot;&quot; Then Kill (&quot;C:\Custlink\*.*&quot;) If Dir(&quot;C:\Custlink\Batch&quot;) <> &quot;&quot; Then Kill (&quot;C:\Custlink\Batch\*.*&quot;) RmDir (&quot;C:\Custlink\Batch&quot;)...
  5. Cimso

    Deleting a directory

    I know I can use the Kill command to delete files, but how would I go about deleting a directory?
  6. Cimso

    Check to see if a file exists

    How would I write an IF EXIST type statment? I'm need to check if a file exists.
  7. Cimso

    Need txt on a certain line

    This is all getting a bit frustrating. I'm new at this, I'm not even a programer, but I'm doing some projects for the company. Now because of the error checking for the customer ID, I do have to check to see if &quot;SET %DRV=&quot; + Left(drvSoftware.Drive, 1) has been added to the file...
  8. Cimso

    Need txt on a certain line

    One more question.... I made that a Public Function. Now can I access that from another form in the same project?
  9. Cimso

    Simple Loop

    Maybe I should have worded it differently. How do I get the program to loop back to the begining until something is entered in txtCustomer.Text field? I only want the error to pop up if there is nothing in that field. If nothing is there, loop back until something is there, else go on with...
  10. Cimso

    Simple Loop

    How would I loop this until it was done? Dim ChkID As String ChkID = txtCustomer.Text If ChkID = &quot;&quot; Then Message = &quot;Please fill in the Customer ID Number&quot; MsgBox Message, vbOKOnly + vbInformation, &quot;ERROR&quot; End If
  11. Cimso

    Need txt on a certain line

    That was extremly helpful!!! Thank You very very much!!
  12. Cimso

    dirlistbox to variables to a file

    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...
  13. Cimso

    Need txt on a certain line

    Hmmm... I think I should have asked it a little diffently. That is more than I need by far I think. As I rewrote what I did, I no longer had to look if something was already there, just append. What I need to do is just insert a string of txt into file on a certain line.... say like this...
  14. Cimso

    Need txt on a certain line

    Wow, thanks!! I have to do this about 7 times, is there another way that's any less complicated or a bit shorter?
  15. Cimso

    Need txt on a certain line

    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 &quot;C:\Autoexec.bat&quot; For Input As #Autobat strFile = Input(LOF(Autobat), #Autobat)...
  16. Cimso

    Add or Replace

    Thank you very very much, that works perfectly!!
  17. Cimso

    Add or Replace

    However, there is a varying letter after the =, that's why I put in 11.
  18. Cimso

    Add or Replace

    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...
  19. Cimso

    Clearing teh contents of a text file

    I have a similer question, but a little different. I've been looking through page after page of already answered questions looking for an answer, but could find none. How would I replace a line of text in a txt file? If I can't just replace a line, is there a way to just take a line of text...
  20. Cimso

    Batch files

    Thank You all for your help on that, I got that figured out, but now I have another matter that has come into view. This is what I have for writing the batch file... Dim Sdrvbat As String Sdrvbat = FreeFile Open &quot;C:\Sdrv.bat&quot; For Output As #Sdrvbat Print #Sdrvbat, &quot;SET...

Part and Inventory Search

Back
Top