Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. stevemarks59

    VBScript to remove (delete) string from a text file.

    @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...
  2. stevemarks59

    VBScript to remove (delete) string from a text file.

    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...
  3. stevemarks59

    Vbscript Error: Illegal Assignment: 'shell' Using Appactivate

    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!
  4. stevemarks59

    Vbscript Error: Illegal Assignment: 'shell' Using Appactivate

    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...
  5. stevemarks59

    Script to copy and paste a file on to a VBScript file.

    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.
  6. stevemarks59

    Script to copy and paste a file on to a VBScript 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...
  7. stevemarks59

    VBScript to start Firefox with profile

    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...
  8. stevemarks59

    VBScript to start Firefox with profile

    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...
  9. stevemarks59

    How can I eliminate the"OK" prompt from a VB Script?

    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...
  10. stevemarks59

    How can I eliminate the"OK" prompt from a VB Script?

    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...
  11. stevemarks59

    Missing Flash Drive Aborts VBScript Copying

    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".
  12. stevemarks59

    Missing Flash Drive Aborts VBScript Copying

    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...
  13. stevemarks59

    Missing Flash Drive Aborts VBScript Copying

    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 =...
  14. stevemarks59

    Missing Flash Drive Aborts VBScript Copying

    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...
  15. stevemarks59

    How can I copy files and folders keeping source attributes

    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.
  16. stevemarks59

    How can I copy files and folders keeping source attributes

    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
  17. stevemarks59

    How can I copy files and folders keeping source attributes

    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...
  18. stevemarks59

    How to combine multiple vbs scripts into 1 script?

    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 =...
  19. stevemarks59

    How to combine multiple vbs scripts into 1 script?

    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")...
  20. stevemarks59

    How to combine multiple vbs scripts into 1 script?

    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...

Part and Inventory Search

Back
Top