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'
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...
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...
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...
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 =...
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...
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
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...
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.