Remove Duplicate Lines From Text File.
How can i remove duplicate lines from text file?
The format of the file is as follows
flipper.berkeley.edu
flipper.berkeley.edu
ftp.aao.gov.au
...
I'd like to be able to specify, via a popup box or even cli, an alternate domain and or controllers to run the script below against. The script below seems to run against the controller my acc...
Hi there,
I have the following code which should check if a registry key exists or not but i cannot get it to work:
Const HKLM = &H80000002
strComputer = "."
Set objRegistry = GetObjec...
I'm looking for a VBScript that I can configure to run as a startup script in a GPO that will change the password of all the local admin accounts in the computers in my domain. The computers a...
I am new to VBScript and having problems understanding what is going on with this script. When it runs, I get the following error:
Line: 4
Char: 5
Error: The system cannot find the file s...
I want to run WMI queries on remote machines via vbscript. I get this eror message:
Error: "The RPC server is unavailable."
Code: 800706BA
Source: SWbemLocator
I have tried adding this u...
Hello,
I'm very new to VB Script first off. I need to compare 2 txt files, lets say A.txt and B.txt. They each have lines of text ie.
123AS35713
024678D56W
1234894E
Each line can be a...
Hi
I have this script which references wmi on the machine it is run on and makes an excel spreadsheet with the information.
I got this from the internet and have no scripting knowledge of an...
The code below is fantastic for my use for files in one location. However, is there a way to utilize an array name origPathArray with, say these items in it:
C:\PDF Copy Test\Orig\
C:\PDF Co...
SCCM PE HTA script SET env = CreateObject("Microsoft.SMS.TSEnvironment") variable undefinedBookmark:Question: I have two scripts I am testing in Vista PE on SCCM 2007 SP1 RC2.
Requirement i...
I want to close this MsgBox Automatic in 5 Second. Can do That.? How.?
MsgBox "I Going to Close Automatic this Box in 5 Seconds",vbOkOnly + vbApplicationModal + 0,"Test"
Hi Experts,
I have a simple WMI script to check the running services of remote servers and email the information to my inbox. i need my network engineer to open the port from the firewall. ...
I am trying to retreive information on an account (such as sAMAccountName) with only knowing the users First and Last Name in a vbscript. The reason I am doing this is once a week I am given ...
I need a VBS Script that I can add to my exisiting logon script, that will copy a shortcut from a server share, to the users desktop on logon.
Is there a way to authenticate to windows within a vbscript and then run commands using those credentials? For example if I had the following simple code could I authenticate to windows with ...
What is the best tool for writing vbscript? I would appreciate to have intellisense and such coding support.
Hey All,
I am trying to create a folder on a remote computer using vbscript. The only problem is that I need to run this script using the domain administrator of that computer and I am havi...
I want to change the following registry entry permissions using vbscript on a base XP machine, the script needs to run local and it does not have regini.exe installed on it. I'm sure there ha...
Hello,
I have come across the need to compress some SQL backups as they are made. As such, I needed to create a script that will find the appropriate files, zip them & then delete the origi...
I am updating a script that we have that goes into AD and extracts all email enabled users, groups and contacts and dumps them to a CSV file. I am having an issue now because we have an addit...
How would I go about creating a VBScript that would would run an MSI from a network share and install it silently?
Hi all,
I have written a vbscript that queries the services of a local machine then writes the results out to an HTA file. To the right hand side of each listed service is a checkbox. What ...
I need to be able to reference the controls in Internet Explorer from an Excel VBA program that I am developing. In some cases I need to set values in these controls, and/or read values from d...
Hello Experts,
I have an open Excel file and using VB Script, I need to search a column in an Excel sheet until it matches a text string. When the script finds that match, I would lik...
Hi,
I have this csv file saved on the c drive as item.csv below is contents of the csv file:
Item Report,,,
id,merchant_date,item_id,amount
20070612005814,2007-06-12,18159182279601760430...