Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Interactive .bat?  (Read 4823 times)

0 Members and 1 Guest are viewing this topic.

HypercamJ

    Topic Starter


    Beginner

  • Oops =0
    Interactive .bat?
    « on: June 19, 2008, 11:08:28 AM »
    On some cmd's I've seen the user is able to interact with input areas by clicking on them.
    Is this possible to do in a .BAT file?
    ╔░░░░░░░░╗
    _Hypercam⌡_
    ╚░░░░░░░░╝

    computeruler



      Egghead

      Thanked: 63
      • Yes
      • Yes
    • Experience: Experienced
    • OS: Mac OS
    Re: Interactive .bat?
    « Reply #1 on: June 19, 2008, 11:31:53 AM »
    um im pretty shure cant exactly remember how something about
    if -y blah blah
    if -n blah blah

    something like that

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: Interactive .bat?
    « Reply #2 on: June 19, 2008, 04:19:17 PM »
    Quote
    On some cmd's I've seen the user is able to interact with input areas by clicking on them

    What commands? Batch files are text based and cannot interact with windows or forms. Batch files are designed for the cmd shell and can prompt for low volume input and output to the console, but that's about as interactive as it gets.

    VBScript and JScript have limited functionality with input (input boxes), output (message boxes, popups) and the Windows shell dialogs (BrowseForFolder, SaveFileAs).

    Short of a full programming language you can develop HTA's which combine VBScript with HTML (no browser required) that allow the user to develop a GUI for an otherwise colorless VBScript.

     8)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    computeruler



      Egghead

      Thanked: 63
      • Yes
      • Yes
    • Experience: Experienced
    • OS: Mac OS
    Re: Interactive .bat?
    « Reply #3 on: June 19, 2008, 05:50:45 PM »
    woops missed  the clickin g on part

    HypercamJ

      Topic Starter


      Beginner

    • Oops =0
      Re: Interactive .bat?
      « Reply #4 on: June 19, 2008, 09:23:10 PM »
      Ah, sorry I forgot. The program I was looking at was running in a DOS - Environment, I guess it just looked like cmd. Would that be in C++ or something?
      ╔░░░░░░░░╗
      _Hypercam⌡_
      ╚░░░░░░░░╝

      HypercamJ

        Topic Starter


        Beginner

      • Oops =0
        Re: Interactive .bat?
        « Reply #5 on: June 19, 2008, 09:24:31 PM »
        Another question, is there a way a batch file can encrypt/decrypt things when they import/export them?
        ╔░░░░░░░░╗
        _Hypercam⌡_
        ╚░░░░░░░░╝

        Sidewinder



          Guru

          Thanked: 139
        • Experience: Familiar
        • OS: Windows 10
        Re: Interactive .bat?
        « Reply #6 on: June 20, 2008, 05:40:57 AM »
        Quote
        is there a way a batch file can encrypt/decrypt things when they import/export them?

        Anything is possible, but a more likely scenario would be a batch file launching a program to do the actual encrypting/decrypting.

        Quote
        Encryption:  The process of converting information into a form unintelligible to anyone except holders of a specific cryptographic key
        Source

        Batch code is a command language not a programming language.

         8)
        The true sign of intelligence is not knowledge but imagination.

        -- Albert Einstein