Re: Is It Scripting or Not



Al,
I run LabWindows/CVI (ANSI C) and TestSTand with most of their tools. We
deploy equipment all over the world. I want to get a snap shot of
application versions and was hoping this could be done in a script. Note I
was programming Mac's for 10 years. August 04 our department switched to
PC's. So in addition to parsing text files (not many special characters)
and searching for application versions, backing up my computers all in one
application sounded to good to be true.

Tony
"Al Dunbar" <AlanNOSPAmDrub@xxxxxxxxxxx> wrote in message
news:eaAY9JrAGHA.2908@xxxxxxxxxxxxxxxxxxxxxxx
>
> "TonyJ" <ajocius@xxxxxxxxxxxxx> wrote in message
> news:gbKof.651598$xm3.565543@xxxxxxxxxxxx
>> Group,
>> I'm new to scripting although I use DOS commands to backup my work and
>> computers at home. Recently I was told I could do the same as I do from
>> the command prompt in windows. I'm considering VB Script.
>
> Many tasks that can be done using batch scripts or directly from the
> command prompt can be done in VBScript and vice versa. I use both, and see
> no particular reason to convert completely to one or the other.
>
> Which one chooses for a particular task depends on a number of factors. If
> I need something done quickly that is probably a one-time thing, I tend to
> use batch, *unless* some sophisticated data management or logic is
> required. This includes things like simple file manipulation, and/or tasks
> which can reasonably be carried out with a series of batch commands.
>
>> From the items below, is VB Script the tool I should be using?
>> a. run backup batch file for computer backups
>
> If it is just a batch file, why not just run it? Or schedule it to be run
> periodically?
>
>> b. Ask registry about version information
>
> Version information about what? And once the question asked is answered,
> what will the script do with that information, just display it, or apply
> an update? Registry tools are available for batch use, but this is
> built-in with vbscript.
>
>> c. Parse text files
>
> VBScript has much more sophisticated facilities for string manipulation,
> however, it kind of depends on how complex this "parsing" is. If the text
> includes characters that are special to the command shell ("<|>/&" and
> etc.) parsing in batch can get fairly tricky.
>
>
> In summary, you are probably in the best position to determine if your
> batch skills are equal to all the tasks you are expecting to be faced
> with, or if you need other options to be fully functional in your
> environment. I suspect it would be well worth your time to at least begin
> to investigate VBScript to see if it will make some of the tasks simpler
> or, in some cases, possible to carry out.
>
>
> /Al
>
>


.



Relevant Pages

  • Re: Copying files based on date during logon
    ... OR Should I be looking at going towards a more advanced VBscript ... > To me the use of xcopy seems like a hack, ... If most of it is batch, ... There are a few things you could do to simplify your batch script, ...
    (microsoft.public.windows.server.scripting)
  • Re: making a script
    ... batch command: executed successfully. ... I have used gimp's batch processing only slightly, ... You are using the batch mode to execute a scheme script ...
    (comp.graphics.apps.gimp)
  • Re: Is It Scripting or Not
    ... probably in a good position to evaluate VBScript for your purposes. ... I'm considering VB Script. ... >> Many tasks that can be done using batch scripts or directly from the ... >> command prompt can be done in VBScript and vice versa. ...
    (microsoft.public.scripting.vbscript)
  • Re: UNIX tr utility written in vbscript
    ... Does anyone have a trick of combining a batch ... > A batch file can run a VBScript program, and you can pass the name of> the ... > Example.vbs with the following command: ... write a batch script that creates the vbscript file to be called. ...
    (microsoft.public.scripting.vbscript)
  • Re: Is It Scripting or Not
    ... >probably in a good position to evaluate VBScript for your purposes. ... >> application versions and was hoping this could be done in a script. ... So in addition to parsing text files (not many special ... >>> Many tasks that can be done using batch scripts or directly from the ...
    (microsoft.public.scripting.vbscript)

Loading