@PHV: Well I'll just tell you what happened
when I used the script you posted above in
a batch file and ran it...
IT WORKED ABSOLUTELY PERFECTLY!
THANK YOU SO VERY MUCH FOR YOUR HELP!
Batch File:
@ECHO OFF
replace.vbs custombuttons-button44, "" "C:\localstore.rdf"
exit
I could not figure...
I have the "replace.vbs" file saved to C:\Windows.
I use it to find and replace strings in text files.
Command line Syntax:
replace.vbs OLDSTRING NEWSTRING C:\file.txt
How can I modify the replace.vbs script to delete the string rather than replace it with another string?
I have very little...
Thanks for the quick replies and your help! I tried PHV's code and it worked perfectly. Thank you very much. Since that code worked I didn't try others. This forum and you members are great!
My OS is Windows XP Pro SP3
How can I combine these two VBScripts, StartYahoo.vbs and MinYahoo.vbs into one VBScript,
StartYahooMin.vbs without getting an "Illegal Assignment 'shell" Error from the line below?
set shell = createobject("wscript.shell"
These two scripts when run as separate...
This is what worked for me:
I converted the vbs file to an exe file using ScriptCryptor.
I use a script to open the file I want copied using that exe file.
Does anyone know how to write a script that would specifically
copy a file "File.ext" to the clipboard and paste it to this
"My Script.vbs" file?
I do not mean editing the VBScript file. I currently right click
"File.ext" select "Copy" then right click "My Script.vbs" and
select "Paste".
I...
My question was answered here:
http://www.computing...196.html#postfp
My link
This is what worked:
STEVE.vbs
sub shell(cmd)
dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run(cmd)
Set objShell = Nothing
end sub
shell """C:\Program...
My OS is XP-Pro SP3
I use the two command lines below to start Firefox with a desired profile.
"C:\Program Files\Mozilla Firefox\firefox.exe" -p STEVE
"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -p JANE
This script will start Firefox using the default profile...
Thanks that solved my problem! I feel like such an idiot! The first thing I attempted to modify this script was to comment out this line "wscript.echo "Killed " & count & " instances of " & _" but I thought the line beneath it "strProcessToKill & "on " & strComputer" was necessary for the...
My OS is XP-Pro SP3
I use the VB Script shown below to quickly kill applications when I don't want them loading at startup. This VB Script seems to kill the applications much faster than running a batch file to start taskkill.exe. However I would rather not have to click the "OK" button...
Is it possible to eliminate the prompt?
"Error Copying File or Folder
Cannot copy******* .The source and Destination are the same
OK "
I would like the script to automatically answer "OK".
I am really amazed and appreciate the code you gave me. While using it today I discovered it also did something I really wanted the script to do but was told on several forums it was not possible. Here is what I asked:
Do you know how this script could be modified so it would ignore the error...
Thank you very much mrmovie. Your modification made the script do exactly what I wanted. I only had to include the third and fourth lines from the original script. The script I will use now is:
set args = wscript.Arguments
set objShell = CreateObject("Shell.Application" )
Set objFolder =...
My OS: XP-PRO SP3
I use the VBScript below to copy files and folders to different drives. This script allows my folders to retain their custom icons when copied. One of the destination folders "N:\APPS" is on a USB flash drive . I have discovered if my flash drive is not connected the script...
I don't know if the script provided at the link above is powershell or vbs and don't really care because it does what I desired. So if it is a vbs script I apologize to any who may be upset at a vbs posting in a powershell forum.
PROBLEM SOLVED ON ANOTHER FORUM
THE SCRIPT PROVIDED WORKS PERFECTLY
Here is the link:
http://www.theeldergeek.com/forum/index.php?showtopic=43463&st=0&gopid=293376&#entry293376
I have XP-Pro SP3 with Power Shell installed.
I need a script I can drag and drop files and folders onto that will copy them maintaining the attributes of the source.
Specifically most of my folders have distributable custom icons. Each folder contains both a "desktop.ini" file and an...
I was given the answer on another forum.
Here is the link: http://www.vbforums.com/showthread.php?p=3785945&posted=1#post3785945
Here is the script:
CODE:
-------------------------------------------------------
Dim objFS
Dim strFolders(1)
Dim strFiles(7)
Dim i
Set objFS =...
The first CODE above:
CODE
Set objFS = CreateObject("Scripting.FileSystemObject")
If (objFS.FolderExists(pathToFolder)) Then
Set objFolder = objFS.GetFolder(pathToFolder)
objFolder.Delete True
End if
Should have been:
CODE
pathToFolder = ("C:\Profiles\STEVE\extensions")...
How can I combine these 10 vbs files into 1 vbs file and include "On Error Resume Next"?
To delete these folders:
C:\Profiles\STEVE\extensions
D:\Profiles\STEVE\extensions
I use the following 2 scripts:
CODE
Set objFS = CreateObject("Scripting.FileSystemObject")
If...
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.