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

Author Topic: bat file-x button  (Read 4321 times)

0 Members and 1 Guest are viewing this topic.

night-rider

    Topic Starter


    Beginner

    bat file-x button
    « on: May 13, 2010, 03:15:30 AM »
    hello again!!!

    is it possible to disable the x-button at the upper-right of the screen in a batch file?

    thanks!

    Salmon Trout

    • Guest
    Re: bat file-x button
    « Reply #1 on: May 13, 2010, 11:29:39 AM »
    why?

    night-rider

      Topic Starter


      Beginner

      Re: bat file-x button
      « Reply #2 on: May 14, 2010, 05:36:40 AM »
      i will use it in the system that I'm doing in foxpro-dos.

      can you please help me sir.

      because if somebody use the x-button to clos the system. errors occured on the log-in mode

      Sidewinder



        Guru

        Thanked: 139
      • Experience: Familiar
      • OS: Windows 10
      Re: bat file-x button
      « Reply #3 on: May 14, 2010, 12:27:07 PM »
      hello again!!!

      is it possible to disable the x-button at the upper-right of the screen in a batch file?

      thanks!

      Yes it's possible. Couldn't find anything in batch, or an object in VBScript that supported that property. Found VB code here and a download that works (tested it myself) here.

      If you choose the download, read the text file on which parameter to use. The /1 switch seems to be the one you'll need.

      You'll need to disable the x-button ahead of any code for your foxpro-dos logic. If you don't need the cmd window at all, it's possible to to eliminate it completely by using a VBScript wrapper.

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

      -- Albert Einstein

      night-rider

        Topic Starter


        Beginner

        Re: bat file-x button
        « Reply #4 on: May 14, 2010, 08:17:38 PM »
        i will try it. thank you!!! :)