• Escaping special characters in run with administrator privileges script

    Hello, reviving an old one on this forum: http://itknowledgeexchange.techtarget.com/vbscript-systems-administrator/special-characters-in-vbscript-strings/ I used this script: Here is a VB Script Vall Script that will get around the Password Prompt when "RunAs" is called... 'Start...

    Devnullius5 pointsBadges:
  • Remove character from number VBscript

    how do i remove from 1.5.600 the .600 part? i just need 1.5 I tried left but it seems only works with strings

    Ssergio2545 pointsBadges:
  • Log file copy time

    Is it possible to log how long it takes for a file to copy from one location to another? I am using Windows and wanted to output to a text file how long a file transfer took. Can anyone help with this process?

    ConFlicker210 pointsBadges:
  • VBS to Remotely Make a copy of a File on Multiple Systems

    Hello, I'm trying to edit a vbs script that I found online to help me remotely connect to a few servers (using a servers.txt file) and make a copy of a specific file called test.txt (it’s the same file name and path on all servers but with different configuration for each server) and add the date...

    Blackbird21115 pointsBadges:
  • VB Script to monitor files on Windows machines from a Zenoss server

    This is a script I created last year to monitor some files from a Zenoss server. These files are created by an application that receives CDRs from an Asterisk server in another country, and sometimes these files have stopped getting updated even though no network errors seem to exist, so, the...

    carlosdl70,220 pointsBadges:
  • VB Script to delete old files fom the local and/or remote computer(s)

    We have many applications running on many different servers, which log their operations to text files. We learned how problematic this could be when one of our servers crashed because the hard disk was completely full.  Someone was supposed to be monitoring disk usage on this server, but that...

    carlosdl70,220 pointsBadges:
  • Set Page orientation

    Can anyone help identify how to set the Page Layout Orientation of an XLSX file in VBS?  I am using the below script example for reference. Set obj = CreateObject("Excel.Application") Set objWorkbook = obj.Workbooks.Open("C:pathtest.xlsx") obj.ActiveSheet.PageSetup.Orientation = xlLandscape...

    ConFlicker210 pointsBadges:
  • Autoprint to PDF Printer

    Does anyone know if there is a script (VBS, BAT or otherwise) that will send a requested file (xls, doc, txt) to a local installed PDF printer and render it without user intervention?

    ConFlicker210 pointsBadges:
  • VBS output to text

    How do I change this code to: instead of poping up a window, to output the results to a text file? ''create a connection object set connObj = CreateObject("ADODB.Connection") ''create a command object set cmdObj =   CreateObject("ADODB.Command") ''set the properties connObj.Provider =...

    ConFlicker210 pointsBadges:
  • Verify NTP

    VBScript to verify a NTP Time source

    JCL5 pointsBadges:
  • vb script to fetch data frm sql into a sheet

    can any one post the vb script to fetch the data frm sql database into a sheet..

    Mademoiselle5 pointsBadges:
  • Vb Script to get the selected(focussed) file names in a windows folder.

    I am trying to get the file names of all the files that has been selected in a folder into an array. Please help

    Sidaga5 pointsBadges:
  • function block calculation module

    Hello, I would like to know how to read this code and what the outcome would be. its writtin in a calculation function block which typically includes IF-THEN-ELSE, DO-WHILE, etc. statements. out1 := (in2 = 0) ? 0 : ((in1 & in3) > 0); of course in1/2/3 are the inputs, out1 is the output. Is this...

    Mkemaleddine15 pointsBadges:
  • Delete contents of a folder tree with a kill statement

    Would anyone know of a code, or be able to point me to one, that will delete all files and folders under a given location.  I am looking to schedule the empting of temp folders and would like it to be all inclusive.  If a kill statement is needed also to force delete folders and there content...

    ConFlicker210 pointsBadges:
  • VBS – Taking input from one spreadsheet and output to another

    Hello, I am hoping someone can shed some light as I am at a complete lost. I am using an excellent script written by Ralph Montgomery named NTUser.wsf for account audit purposes and I am attempting to modify it to suit my needs. The script, in its native format, prompts for a username upon...

    Fsck15 pointsBadges:
  • CreateObject(“Scripting.FilesystemObject”) in VBScript

    I currenly have a HTA that has alot of code. Part of the code displays a pop up message with the usersname to confirm we are working with the correct client. I Couldnt use WMI since all of our laptops block WMI quiries so I had to get inventive. All computers here have a default share. The script...

    JesseAGreen15 pointsBadges:
  • VBScript to file compare

    Is there a way to make a VBScript that will get a word from FileA.txt and look for it in FileB.txt. If the word(not the whole line) is found in FileB.txt, then write it in FileC.txt.  ?

    DSTib5 pointsBadges:
  • Copy file to startup folder in windows 7

    I would like to use a script to copy a .vbs file to a users startup folder in Windows 7. The user has admin rights but I continue to get "access denied" errors. Any help with this one? I can copy it manually, with no problems Here is my script dim FSO Set FSO...

    swinehart68031,050 pointsBadges:
  • Visual Basic script to get Sysinfo

    Hello I am having problems with a VB Script this is what I want to achieve: 1) Check a machine if is active on the network 2) Find the current logged in user 3) Gather the Service Pack Version 4) Display all information into Excel 5) Highlight in redf which machines are online or offline 6)...

    Oh2abq5 pointsBadges:
  • How to remove spaces from text lines in Visual Basic script

    I have a script that reads a text file and replaces a character string with a new string. The problem is that the data following the new string has spaces that are causing a problem. For example, here is how my data looks prior to running the script Joe Manager Bob Eric Manager Freddy What I am...

    Ilneval5 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following