Search results

  1. JMongi

    Server Configuration Help

    Our current file server needs replaced (running Windows Server 2008 and highly usage) and we are likely to do so in 4Q. I don't have enough background knowledge to know about the total server costs (aside from hardware). Licensing and all that. Our 3rd party IT company is quoting between $12K...
  2. JMongi

    Can I keep reusing a file system object or do I need to create multiple objects?

    That's the only sample I've seen that enumerates everything in their sample code. Thanks for the link. I'm cleaning up the last bits we've been talking about.
  3. JMongi

    Can I keep reusing a file system object or do I need to create multiple objects?

    Before I post my full script in all its ugly glory.... @cheekybuddha - Why did you add the "TristateFalse as Integer = 0" line in defining the constants? That wasn't in the sample code I saw even if the help files and whatnot list all the various enumerations.
  4. JMongi

    Can I keep reusing a file system object or do I need to create multiple objects?

    @cheekybuddha - That is because this code is part of a script written using VB Script that will be run to launch the database, not part of the database module code itself. It is that property/function that got me thinking about how many times objects were defined in my script. It got put...
  5. JMongi

    Can I keep reusing a file system object or do I need to create multiple objects?

    Everyone, Thanks for the updates (and the rewrite)! I can understand the basics of object oriented programming but any time I run into a question the doubts spring up. Sorry for the copy/paste errors. I also had a find/replace issue that you pointed out that had been corrected but not before I...
  6. JMongi

    Can I keep reusing a file system object or do I need to create multiple objects?

    Sorry, i didn't post the original code :) Here's a sample: If Not oFSO.FileExists(sLocalLog & "\startuplog.txt") Then 'Check if log file exists Dim fs, f Set fs = CreateObject("Scripting.oFSOtemObject") Set f = fs.CreateTextFile(cLocalFE & \errorlog.txt"...
  7. JMongi

    Can I keep reusing a file system object or do I need to create multiple objects?

    That's what I'm trying to do! :) How might one trip over one's toes? The original code I'm referencing sets a new object inside of each clause of the If/Then statement.
  8. JMongi

    Can I keep reusing a file system object or do I need to create multiple objects?

    So, I'm working on my App launch script and trying to streamline things. I would like to use one file system object for everything but I have no idea if that will cause problems or not. Here is some sample code. Not all variables are defined within this codeblock. Dim oFSO Set oFSO =...
  9. JMongi

    Solved Is there an important difference between scripting.filesystemobject and wscript.filesystemobject?

    I admit to being mildly irritated at one point in this process, but, the coffee is kicking in now. My apologies. :coffee::D Thanks for your help.
  10. JMongi

    Solved Is there an important difference between scripting.filesystemobject and wscript.filesystemobject?

    That's what it appears I'm being told. Am I wrong? I had to answer my own question ;) If I search for "Wscript.FileSystemObject" on this forum, the only hits I get are this thread. If I search for "Scripting.FileSystemObject", I get a whole lot of hits.
  11. JMongi

    Solved Is there an important difference between scripting.filesystemobject and wscript.filesystemobject?

    That's not really the definition of a typo is it? A typo is me spelling cat "CATT". A typo is not me spelling dog "CAT". This was a very long way around of saying that there I had the wrong idea. Which is what I was going for in the first place. So, I'll take a stab at answering my own...
  12. JMongi

    Solved Is there an important difference between scripting.filesystemobject and wscript.filesystemobject?

    You are correct in that it didn't work. But I don't know the typo. Changing it to Scripting.FileSystemObject works fine. So what is the typo/problem?
  13. JMongi

    Solved Is there an important difference between scripting.filesystemobject and wscript.filesystemobject?

    I was just quoting a single disconnected line of code. Just in case it's confusing, here is the full potential property taken from this page. Public Property Get FSO() As Object Static f As Object If f Is Nothing Then Set f = CreateObject("Wscript.FileSystemObject") Else 'return...
  14. JMongi

    Solved Is there an important difference between scripting.filesystemobject and wscript.filesystemobject?

    Microsoft help docs use scripting.fileystemobject. I also have some code samples that use that. But, I also have some codesamples that use wscript. I've seen posts on here using both. I know that wscript is a windows module that translates vbscript. Is there any appreciable difference...
  15. JMongi

    Should I worry about the time needed to run DLookup on a session log table?

    Thanks! Getting my coding sea legs back under me again. :coffee::giggle:
  16. JMongi

    Should I worry about the time needed to run DLookup on a session log table?

    Ah, makes sense. A little snipping and pruning and modifying and we get the following code (still using Select Case True instead of an OR in an If/Then). Edit: To address your other concern. IF this code is working correctly, there should only ever be one hanging session. But, even if there...
  17. JMongi

    Should I worry about the time needed to run DLookup on a session log table?

    @theDBguy - Thanks! didn't mean to sound snarky at all. :) I did have a tangential question...in your code suggestion you used Nz to encapsulate the dlookup. Reason?
  18. JMongi

    Should I worry about the time needed to run DLookup on a session log table?

    It definitely could use some optimization. I'll look at it again. The main question is about Dlookup, Dcount, etc on an ever expanding table of records.
  19. JMongi

    Should I worry about the time needed to run DLookup on a session log table?

    @theDBugy - If I am remembering correctly, one of the benefits of Select Case True is that the rest of the cases are not resolved when a case is found true. But, I could be wrong.
  20. JMongi

    Should I worry about the time needed to run DLookup on a session log table?

    Thanks for the info. Do all fields used in a DLookup, Dcount, etc function need to be indexed?
Back
Top Bottom