SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jul 2002
    Location
    Ny, NY, USA
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Writing to a command prompt.

    I need to be able to enter some script into a command prompt for example. I need to open the command prompt and enter the following information. FTP eq-cmp-d2.dev.etsd.ml.com etc... Can some one tell me how this is done.

  2. #2
    Senior Member
    Join Date
    Sep 2001
    Location
    Philly
    Posts
    1,231
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Writing to a command prompt.

    It will not record, but you can once your cmd is present on the screen do this:

    Window("Application=CMD.EXE").Attach

    Window.Type "FTP eq-cmp-d2.dev.etsd.ml.com"
    Window.Type "{Return}"


    -If you need other keys other than Return, make sure Accelerator Keys is 'on' in your record settings.

    - If you are not sure how to specify a specific key using the {} like in {Return}, you can either record in in notepad, or use the Key Event Wizard.
    ~Alias~

  3. #3
    Member
    Join Date
    Jul 2002
    Location
    Ny, NY, USA
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Writing to a command prompt.

    Once again thank u for your help..

  4. #4
    Member
    Join Date
    Jul 2002
    Location
    Ny, NY, USA
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Writing to a command prompt.

    When i do it this way it is very slow in going thru the script and when I need to enter a password it does not enter it. Is there a better way of doing it. I've tried using a .bat file but I am unable to execute it through a Shell plus it does not enter the password as well.

    my script looks like this:

    Shell "C:\WINNT\system32\CMD.exe", vbNormalFocus

    Window("Application=CMD.EXE").Attach
    Window.Type "cd C:\"
    Window.Type "{Return}"
    Window.Type "FTP eq-cmp-d2.dev.etsd.ml.com"
    Window.Type "{Return}"
    Window.Type "Bscsdev"
    Window.Type "{Return}"
    Window.Type "merrill"
    Window.Type "{Return}"
    Window.Type "get"
    Window.Type "{Return}"
    Window.Type "write.mmf"
    Window.Type "{Return}"
    Window.Type "write.txt"

    I'm new to testpartner..am I doing something wrong.

  5. #5
    Junior Member
    Join Date
    Nov 2003
    Location
    Amsterdam, The Netherlands
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Writing to a command prompt.

    Originally posted by rdelgado:
    When i do it this way it is very slow in going thru the script and when I need to enter a password it does not enter it. Is there a better way of doing it. I've tried using a .bat file but I am unable to execute it through a Shell plus it does not enter the password as well.

    ......

    <font size="2" face="Verdana, Arial, Helvetica">Why don't you supply the credentials and commands in a file? You can use ftp to read everything from a file.

    Run ftp as "ftp -s:commandfile.txt"

    Then in the command file type this:

    open eq-cmp-d2.dev.etsd.ml.com
    Bscsdev { assuming this is your username }
    merrill { assuming this is your password }
    get write.mmf { retrieve file
    get write.txt ( retrieve file )
    close


    Do not include the comments.
    Test this file with "ftp -s:commands.txt"

    [ 02-26-2004, 02:52 AM: Message edited by: Human_Test ]
    I'm still under development.

  6. #6
    Member
    Join Date
    Jul 2002
    Location
    Ny, NY, USA
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Writing to a command prompt.

    Thanks for your help..

  7. #7
    Junior Member
    Join Date
    Feb 2004
    Location
    Bangalore, India
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Writing to a command prompt.

    Alias,
    could you elaborate on why TestPartner doesnt not record actions performed in the command prompt
    window.Is it possible to overcome this?

    Thanks.

  8. #8
    Senior Member
    Join Date
    Sep 2001
    Location
    Philly
    Posts
    1,231
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Writing to a command prompt.

    Not sure... but here is a thought:

    Take a look at this:
    http://www.soft411.com/company/Soft-...asyConsole.htm

    Its a GUI interface for navigating/typing in the cmd prompt. It even lets you save reusable commands as buttons and run them with a click.

    example script:

    VBWindow("EasyConsole 12 VBWindow").Attach
    VBComboBox("Name=lstCommandes").Attach
    VBComboBox.Type "cd..{Return}"
    VBComboBox.Type "ipconfig{Return}"
    ~Alias~

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 9.68%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:44 PM.

Copyright BetaSoft Inc.