Windows Vista Forums

Help with script

  1. #1


    Gavin Guest

    Help with script

    Hello,

    I need help with a script, what I would like it to do is scan though a share
    look for a particular file, copy the file and rename it to the name of the
    computer that it was on... for example the file is acb123.txt ... search for
    that file and then once it is found rename it to computer1acb123.txt... any
    help would be appreaciated.

    Thanks
    Gavin...


      My System SpecsSystem Spec

  2. #2


    Bob Bridges Guest

    RE: Help with script

    Hey, Gavin. What have you attempted so far? My guess, from your post, is
    "nothing" - you've never written a VBS script before and you're starting from
    scratch. Nothing wrong with that, but it calls for a different answer than
    if you're fairly experienced and just need a hint. So fill us in, please,
    and let us know how much you know so far.

    --- "Gavin" wrote:

    > I need help with a script, what I would like it to do is scan though a share
    > look for a particular file, copy the file and rename it to the name of the
    > computer that it was on... for example the file is acb123.txt ... search for
    > that file and then once it is found rename it to computer1acb123.txt... any
    > help would be appreaciated.

      My System SpecsSystem Spec

Help with script

Similar Threads
Thread Forum
Converting a BAT script into a PowerShell Script
Hi all, I am in the process of trying to convert a couple of our .BAT scripts into powershell scripts, however, I'm running into a couple of pesky...
PowerShell
Resume a script (or run a script) after reboot?
Can anyone suggest a good way to resume a script after reboot, or queue a script up to run (with commandline parameters) after a reboot? (I'm...
PowerShell
Logon Script Causing Laptops To Hang - Problems in script?
Hi, I'm using the following script to map drives, and perform a few functions when users logon to our domain. However, in the past 2 or 3 months...
VB Script
problem passing args to script 'There is no script engine for file extenstion'
Hello, I'm having an issue passing args to a script. I'm getting the error 'There is no script engine for file extenstion .net' I assume the...
VB Script
Include another script, keep variables in included script?
I want to run or include a PS script from within another PS script. But want the values set in the 2nd one to be available in the first one. For...
PowerShell
Script file has 'OS Handle' error when run from script
For my batch automation product, ActiveBatch, I've written a ps1 which is called from a cmd file, and which runs fine when run from command prompt....
PowerShell
Can you drag-n-drop a file on top of a PS script to run the script?
With VBScript files, you can drag-n-drop another file on top of the VBScript file. This executes the VBScript and then the path of the dropped file...
PowerShell