Re: Write instructions at the command prompt

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"xp" <xp@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:59D78EEA-807B-4517-923E-9391275B7CB0@xxxxxxxxxxxxxxxx
Using Windows XP and Office 2007;

I need to code a command line instruction using a VBScript file; I've
coded
VBScript for other purposes, but I don't know where to start for something
like this. Is there a chance someone could post a generic way to access
the
command prompt and then write some instructions?

Thanks!

I can think of three ways:
- Use the Run method to open a Command Prompt, then use the SendKeys method
of the Wscript.Shell object to send your keystrokes. This is easy to program
but it is also clumsy and unreliable.
- Use the Run method to invoke a batch file of your choice.
- Use the Exec method to invoke a batch file of your choice.

I suggest you download the help file script56.chm from the Microsoft site to
see detailed examples of the various methods.


.



Relevant Pages

  • Write instructions at the command prompt
    ... I need to code a command line instruction using a VBScript file; ... VBScript for other purposes, but I don't know where to start for something ...
    (microsoft.public.scripting.vbscript)
  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: log off command
    ... SOON 3600 LOGOFF %ID2% ... If it doesn't work please post what the "at" command returns if you run it ... after the batch file and please again describe when it does not work. ... Matija Hrovat ...
    (microsoft.public.windowsxp.basics)
  • Re: Looking for binary file xfer from TRSDOS6/LSDOS6
    ... be wrong with the command line parameters. ... By deleting a few lines from the start of the batch file, ... FTII will eventually reach and transfer the files it just claimed were ... and my list is longer than the buffer can handle. ...
    (comp.sys.tandy)