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 gkittelson 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: *

  1. shyler

    app.config from vbs

    Oh duh. Hahaha. Working great now. Thanks so much for your help you guys!!!
  2. shyler

    app.config from vbs

    tsuji, thanks for the reply! I get this error message when using the code you provided: "Object doesn't support this property or method: 'oadd.getAttributes'
  3. shyler

    app.config from vbs

    I have a custom windows service with an app.config. I have a vbs file that needs to read values from that app.config file. I found this for vb.net - Dim aConfig As Configuration.ConfigurationSettings Dim aExcelFile As String = aConfig.AppSettings("MyExcelFileName") But I need something that...
  4. shyler

    Multiple calls to sub for ftp dl, how to wait for finish

    I am always learning as I go, and am not too familiar with regexp yet, but I think I see your point. In my case, each particular file always begins with exactly the same string. I certainly lose a few lines of code by doing a simple InStr, if nothing else! On another note. I've tested the...
  5. shyler

    Multiple calls to sub for ftp dl, how to wait for finish

    Thank you for your input! [1] I didn't realize before that you could send cmd commands using run. I will test this as soon as new files are available for download. [2] Good point. Doh. [3] I am looking at the possibility of a multidimensional array to check all files in "tempdirfile.txt" at...
  6. shyler

    BAT TO VBS, cant find the right vbs script

    Correction: This line - myFileName = LogServer & "\NETLOGON\LimitLogin\Logs\" & UserName & ".txt" should be - myFileName = "" & LogServer & "\NETLOGON\LimitLogin\Logs\" & UserName & ".txt
  7. shyler

    BAT TO VBS, cant find the right vbs script

    Try this: Dim WshShell, LogServer, CompName, UserName Dim fso, myFileName, objTextStream Dim forReading, oRegEx, lineContents Dim strMatch, i Set WshShell = CreateObject("WScript.Shell") LogServer = WshShell.ExpandEnvironmentStrings("%LOGONSERVER%") CompName =...
  8. shyler

    Multiple calls to sub for ftp dl, how to wait for finish

    I had a chance to test it today. Worked a treat. Now I just need to figure out how to delete files or transfer them to a different folder on the ftp server. Ideas are always appreciated. For anyone interested, here's the working code: Dim wShell, fso, f, fc, fn, i, finis Dim oRegEx, objf...
  9. shyler

    Multiple calls to sub for ftp dl, how to wait for finish

    I'm going to try again tomorrow with wscript.sleep and see if I can get wait times that will make it work properly. As well as adding the missing EXIT statement so my desktop doesn't become cluttered with cmd's. :-p
  10. shyler

    Multiple calls to sub for ftp dl, how to wait for finish

    BTW, this line msgbox(cpath & chr(34) & opath & chr(34) & pathf) was just to test the variables were correct. It is not actually part of the sub.
  11. shyler

    Multiple calls to sub for ftp dl, how to wait for finish

    I tried to make this as clear as possible, hope it's not confusing! I have a vbs file that I want to do the following: 1) Open a previously created text file that has a listing of an ftp directory. 2) Begin Subroutine 3) Scan that text file to find a particular file name. 4) If the name...

Part and Inventory Search

Back
Top