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


Please log in to comment


Put your commands into a batch file and upload to the K1000. Then call the .bat file which will pop up the command window. 
Answered 06/27/2014 by: LBarclay
Orange Senior Belt

  • Did not work. It runs, but does not pop up. Should I add anything to the bat file, other than the command?
Please log in to comment
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...
Answered 06/27/2014 by: VBScab
Red Belt

Please log in to comment
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..
Answered 06/27/2014 by: dj_xest
Fifth Degree Black Belt

  • But I haven't added the /quiet parameter, and it is not in the batch file. The /QB! doesn't seems to work.
    • 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?
      • 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.

Please log in to comment
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.
Answered 07/02/2014 by: EdT
Red Belt

  • 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?
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja