Jump to content

Recommended Posts

Posted

I am trying to run this command via autoit script to uninstall IE11 (it works from command prompt or the run line in windows 7):

cmd /c FORFILES /P %WINDIR%servicingPackages /M *11.*.mum /C "cmd /c echo @fname && start /w pkgmgr /up:@fname /quiet /norestart"

 

And am lost on the proper quotations and syntax.

RunWait(@ComSpec & " /c " & "cmd /c FORFILES /P %WINDIR%\servicing\Packages /M *11.*.mum /C "cmd /c echo @fname && start /w pkgmgr /up:@fname /quiet /norestart"", "", @SW_HIDE)

or

RunWait(@ComSpec & " /C " & "FORFILES /P %WINDIR%\servicing\Packages /M *11.*.mum /C ""cmd /c echo @fname && start /w pkgmgr /up:@fname /quiet /norestart""", "", @SW_HIDE)

dose nothing.

Thank you,

Jacob

Posted

I'm quite lousy with these but here's a couple to try.

;Opt("ExpandEnvStrings", 1)
RunWait(@ComSpec & " /C FORFILES /P %WINDIR%\servicing\Packages /M *11.*.mum /C cmd /c echo @fname && start /w pkgmgr /up:@fname /quiet /norestart", "", @SW_HIDE)

RunWait(@ComSpec & " /C FORFILES /P " & @WindowsDir & "\servicing\Packages /M *11.*.mum /C cmd /c echo @fname && start /w pkgmgr /up:@fname /quiet /norestart", "", @SW_HIDE)

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...