Home > Need A > Need A Little Help With VBS

Need A Little Help With VBS

This was extremely straight forward; and, no way to do that wrong. But I found that if a file caused an error one time, it would still be picked up and moved the next time through (when another new file was created). ok heres the list with the value and the WMI class it comes from:pc hostname - win32_NetworkAdapterConfigurationdomain + role- win32_computerSystemProductMake, Model + Serial Number - win32_computerSystemProductTotal Ram - from Win32_logicalMemoryConfiguration****also would After this earlier QUIT it takes about 7 secs before playback gets going again.

Browse other questions tagged vbscript code-formatting syslog or ask your own question. I'll take a look for that. 0 Pimiento OP Mads May 2, 2013 at 8:37 UTC After putting the new line into the code I get the following I've been having trouble with the Windows XP event logs though, because you can't back up the .evt files when the service is running otherwise they come out corrupt. It took approximately 6 seconds of flipping refresh rate back and forth (looped approximately 3-4 times) before I pressed STOP.

Find More Posts by IronBits 2008-11-09, 18:40 #2 IronBits I♥BOINC! But don't jump on it as your issue is most probably WMF KBs.Let me know how it goes. I just wrote this script yesterday for someone in a different forum:Option ExplicitDim ws, fs, strComputer, objWMIService, colSoftware, objSoftwareSet ws = WScript.CreateObject("WScript.Shell")Set fs = CreateObject("Scripting.FileSystemObject")strComputer = "."Set objWMIService = GetObject("winmgmts:" &

  • There are lot of people looking at this thread.
  • txt .
  • but not inside install.wim ?
  • Email Reset Password Cancel Need to recover your Spiceworks IT Desktop password?
  • Alternatively change "If false Then" to "If true Then" in the script.
  • more hot questions question feed lang-vb about us tour help blog chat data legal privacy policy work here advertising info developer jobs directory mobile contact us feedback Technology Life / Arts
  • Please can you do what I suggested.
  • As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged

However, depending on the player, it may or may not be fixable. You can only upload files of type 3GP, 3GPP, MP4, MOV, AVI, MPG, MPEG, or RM. What I was going to implement was something using Win32_Product instead of Win32_SoftwareFeature. I was hoping somebody might be able to show me how I can edit this script so it won't clear the logs.Or if somebody has a better idea of how I

We can put one structure after another, which is called ___________. (7) What's the precedence order of the AND, OR, and NOT operators? (8) What command would be used to increment Trouble in VBScript? executed = false End If Else 'No file was found within the conditions. copy file1 directory [copies file 1 into directory] 7.

sequence b. studentCount or sCount or CountStud [starting to sound like a creepy 1950 vampire movie] 5. There are lot of people looking at this thread. Can you delete any log currently in "My Documents", run the test again for a minute or so and then send the new log along with the script you were using?

Please don't do any fast forwarding, pausing or anything during the test, just press play and let it run, then cleanly exit (not saying you did last time, just to re-iterate!). Please can you do what I suggested. Please upload a file larger than 100x100 pixels We are experiencing some problems, please try again. executed = false End If Else 'No file was found within the conditions.

Code: Option Explicit Dim oFSO, oInFile Dim str_Input, str_CurrentLine, Dim LineCount ' the path to the input and output file str_Input = "c:\Results.txt" Set oFSO = CreateObject("Scripting.FileSystemObject") ' If the file Last edited: Nov 29, 2011 mkanet, Nov 29, 2011 #12 Jong Well-Known Member I just need to be sure I am seeing a few flips and no other stops/starts and please You can use the same objFSO more than once if your not resetting the object. it collects such things as the operating system, RAM etc.basically i want to add in another WMI called win32_SoftwareFeature and use the value "ProductName" to tell me what software is installed

That log, on a quick look, seems perfect. Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... Text Quote Post |Replace Attachment Add link Text to display: Where should this link go? Sign In   Sign In Remember me Not recommended on shared computers Sign in anonymously Sign In Forgot your password?

but it [email protected] offsetlocal EnableExtensionssetlocal EnableDelayedExpansionfltmc >nul 2>&1 || ( echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~fs0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs" In earlier versions of windows, the file was named differently. 2. @echo off prevents the script from showing the lines of code in the command prompt 3. Here is my code I know it's not complete, but I wanted to get through the pivot table section first to see what it looks like. 'Option explicit Const ForReading =

The only thing I doesn't do is change the refresh rate back to 60hz (which is what those lines in the code are supposed to do).

Very odd. Jong, Nov 28, 2011 #7 mkanet Well-Known Member Hi Jong, thank you so much for responding. Click here to Register a free account now! I made a few more changes to simplify some parts: I defined your source and target folders once at the top of the script, then created new strings that hold the

A log files isn't generated though on the root of my C: drive. Otherwise they contain "-" ' ' (2) contains the type of media file currently played : ' - "CINEMA" : frame rate of source file is around 24 fps ' - If you retrieve the value from colMonitoredEvents, even if you don't use it, the loop will at least wait until there is actually some work to do, and your processor won't What is the significance of the sheriff's colored sunglasses in Kill Bill vol 1?

executed = false err.clear Else 'Move file procedure executed successfully. The rest of it... (typed from my iPad which is a pain with that new floating bar that Spiceworks has).   EDIT: never mind, Todd6700 found that class actually exists!  Far