/build/static/layout/Breadcrumb_cap_w.png

pop-up running batch file

Hi guys

I have been working on some scripts, which runs a batch command. I wonder if it is possible to let the command window pop-up on the client computer, so our users can see that the computer is working on something. The situation is that I have to upgrade all our Autodesk products from 2012+2013 to 2015. Autodesk has decided to uinstall their suites as individual products, so to be able to uninstall everything that has to do with Autodesk, I have to run "wmic product where "vendor like 'Autodesk'%" call uninstall". I am able to see that the script is running under task manager -> performance, but I would like if i could see the process in a command line window, as my users and I will be able to see when it is done.

Is there a parameter to pop-up the command window?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: LBarclay 10 years ago
Orange Senior Belt
0
Put your commands into a batch file and upload to the K1000. Then call the .bat file which will pop up the command window. 

Comments:
  • Did not work. It runs, but does not pop up. Should I add anything to the bat file, other than the command? - HQgeN 10 years ago
Posted by: anonymous_9363 10 years ago
Red Belt
0
I'd use an HTA for this scenario. There are plenty of examples around. Besides anything else, you can use HTML elements on the page: you can have buttons, option controls, check-boxes, drop-downs...anything, really. And because it's HTML, you can import "libraries" of ready-rolled JavaScript. I have some nice spin buttons which I put on HTAs where users choose a time - as you know, users can't be relied on to type valid values!

Anyway, my 2 cents...
Posted by: dj_xest 10 years ago
5th Degree Black Belt
0
Change this value, /quiet inside that batch file into a simple progress bar with a disabled cancel button - /QB! and your problem will be fixed..

Comments:
  • But I haven't added the /quiet parameter, and it is not in the batch file. The /QB! doesn't seems to work. - HQgeN 10 years ago
    • Oopps. Looks like the uninstall batch file is only in Autocad 2014. Anyway, if you can alter the commands that would do the trick. Can you show us a piece of that batch file here? - dj_xest 10 years ago
      • I am running the following command in a online Kscript as a domain admin. It works like a charm, the problem is that the user/I can't see what is happening on the screen, only in task manager and in control panel-programs and features.

        "wmic product where "vendor like 'Autodesk%'" call uninstall"

        Here is a image of it.

        http://postimg.org/image/m0ih17pf1/ - HQgeN 10 years ago
Posted by: EdT 10 years ago
Red Belt
0
If this is being run by a service account and the target platform is Win 7 or higher, then you will not see the pop up from the batch file as "Interaction with Desktop" is not supported on Win 7 as system now runs in a different session to user.

Comments:
  • ahh... And there is nothing to do? for instance a pop-up box while it's working, telling the user that a script is running? - HQgeN 10 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ