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

    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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. stevemarks59

    Replace existing folder when copying to destination

    How can the script below be modified so when a folder is copied to the destination and a folder exits there with the same name, it will completely REPLACE the old folder instead of merging with it and only overwriting files with the same name...

Part and Inventory Search

Back
Top