dim fso,fs1,subss
Set ws = WScript.CreateObject ("WScript.Shell")
set fso = CreateObject("Scripting.FileSystemObject")
if fso.FolderExists("C:\Documents and Settings\All Users\Application Data\Symantec\Cached Installs") Then
set fs1 = fso.GetFolder("C:\Documents and Settings\All...
Created a vbscript file to do the uninstallation of symantec and the install Sophos. Thought it would be a good idea to share.
dim fso,fs1,subss
Set ws = WScript.CreateObject ("WScript.Shell")
set fso = CreateObject("Scripting.FileSystemObject")
if fso.FolderExists("C:\Documents and...
This is not a script that is running within a browser. It is using the windows scripting host (WSH) to run, same way you would use to run visual basic scripts on a workstation to automate some simple tasks.
I have a javascript file running on a workstation that generates a file "d:\filegen.txt". I would like to add a statement at the end of the script that would automatically upload that file to a ftp server without any user intervention. The script is running via WSH.
Does anyone know what...
I appreciate your comments. I was able to find some links that help me last night, and thought I would post the code.
Const adOpenStatic = 3
Const adLockOptimistic = 3
Const adUseClient = 3
strUserName = "testuser"
strPassword = "password"
Dim x
Dim objConnection, objRecordset
Set...
I have a DSN defined on a machine called 'test'. I want to use this to access the database it points to and run a defined view there called zz_wanted_data.
What methods does vbscript offer to make the connection run this view and process the data. The returned data can contain 25000 records...
While looking through my messages log I came across the following entries and was wondering if I need to be concerned. I am not using either of the subnets listed and was wondering why they were showing up.
Thanks for you help and time.
Jun 6 04:41:29 home dhcpd: DHCPINFORM from...
I have been looking at nslookup, but I was hoping there was a switch I could pass in that would strip out everything from the response except the servers IP address. The man pages have helped me in getting close to the output I wanted, but still returns more information than I wanted.
thanks
I have a file with a list of sites like:
.playboy.com
.myspace.com
.etc.com
I want to read each line in the file resolve its ip address and write the ip address that is returned into a another file.
Any help will be greatly appreciate.
I have some Gateway computers with built in intel gigabit nics. Recently the nics have pretty much ceased to properly negotiate link speed/duplex settings. If I manually set the nics then everything works great, but I need to be able to reclone the computers without losing what I've set the...
I'm trying to use yum to update a Redhat 9 box and keep getting the same errors when it runs. The version number of yum is 2.0.3 and the output is:
File "/usr/bin/yum", line 60, in ?
yummain.main(sys.argv[1:])
File "yummain.py", line 183, in main
File "clientStuff.py", line 734, in...
I would like to use perl or php, but have no idea what kind of syntax it would take. I've looked at several books, but didn't find any references to running contained scripts on the box.
I'm trying to add some functionality to my Linux router so an end user could easily turn on/off tcp ports. I'm hoping there is a simple way of creating a web page with a few different buttons that once pushed would say disable routing of port 80, and then another button to turn it back on.
Any...
I'm looking for a cheap/free program that can be run from a netware login script for machine inventory. Ideally I would like the program to output the information to a dos text file. Information needed is pc name, os, netware user, memory, and cpu speed.
Any help or ideas would be greatly...
I actually found what I was looking for. To search the access.log file for a specific ip the command line is:
grep ip access.log | awk '{print (strftime("%D %r",$1)"\t"$3"\t"$7 )}'
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.