3 posts in this topic
I didn't see anything like this, so i figured i created it.
The objective is to uninstall an application by right mouse clicking it's shortcut, and then selecting the uninstall in context menu.
To make this work you simply run the exe to set the registry/context menu. To remove the context menu entry, run it again.
That's it, it will only be called when there's a right mouse click in a shortcut file and the entry is pressed.
Then it will search the registry for the path of the application and start the uninstall exe from respective application.
From then on, the user has to go through the uninstaller process for that application.
Any problem let me know.
Hope someone can help as quotes within quotes is always confusing. I am creating a silent install of printer software and want to call via runwait comspec line.
The call within a cmd line is below
samsung.exe /s /n"Samsung SL-M3220ND" /p"xxx"
xxx will be stored as a variable $PrinterIP which would be as example 10.10.10.20 I need to use a variable as i am doign this for a business and need it to be based on the store i install at that has a specific IP range.
I started with the below as 2 possibilities but no luck..
RunWait(@ComSpec & "/c " & "samsung.exe /s /n""Samsung SL-M3220ND"" /p""" & $PrinterIP ") RunWait(@ComSpec & "/c " & "samsung.exe /s /n'Samsung SL-M3220ND' /p'" & $PrinterIP '") but i cant get it to compile as i have errors on the line.. thanks in advance.
Good morning AutoIt community!
Today, I'm here to ask you if you know how to run an .exe from cmd.exe ( Command Prompt )...
My intention is to read a .ini file where I store an information that has to be included in the shell, and run an .exe with that information...
I'll give you an example
Local $aFileCartellaAuditCopy = _FileListToArray($sPercorsoAuditCopy, "*.txt") If @error Then MsgBox($MB_ICONERROR, "Errore!", "Errore durante la lettura della lista dei file nella directory" & @CRLF & $sPercorsoAuditCopy & @CRLF & "Errore: " & @error) Return False Else Local $iPID = Run("cmd.exe" & ' /k "C:\Users\Portatile-60\Desktop\HmiCheckLogIntegrity.exe" "C:\Users\Portatile-60\Desktop\AuditTrailDosaggio0_20170327_151335_DOSAGGIO_PW_01.txt"') ; & " /k " & '"' & $sHmiCheckLogIntegrity & '"' & " " & '"' & $sPercorsoAuditCopy & "\" & $aFileCartellaAuditCopy & '"', "", @SW_SHOW, $STDOUT_CHILD) Return True EndIf This code is in a function, that returns False if it can retrive at least a file from the path stored in the .ini file...
I would like to run the Command Prompt with the .exe and with a parameter of that .exe, but it seems to not work properly.
Could please anyone tell me why?
Hello all, this is what I got so far .. it opens and It won't put in words, I need to log in,, oops didnt put in code. LOL
Local $oUser, $oPass, $oSubmit
Local $sUser = "lit"
Local $sPass = "abc"
Local $url = "http://woodstock:9090/login.jsp?url=%2Findex.jsp"
Local $oIE = _IECreate($url, 1)
$oInputs = _IETagNameGetCollection($oIE, "input")
for $oInput in $oInputs
if $oInput.type = "text" And $oInput.name = "userid" And $oInput.size = "12" Then $oUser = $oInput
if $oInput.type = "password" And $oInput.name = "password" And $oInput.size = "12" Then $oPass = $oInput
if $oInput.type = "submit" And $oInput.value = "loginformtable" Then $oSubmit = $oInput
if isObj($oUser) And isObj($oPass) And isObj($oSubmit) then exitloop
$oUser.value = $sUser
$oPass.value = $sPass
This is probably an obvious one, but I really don't use this command at all so am hoping you can spot my mistake.
I'm running a powershell script on a schedule with the following script in a function, the function is being called in a loop, but the console process is not closing in the background and I end up with a bunch of console windows running in the background:
Run(@comspec & ' /k PowerShell.exe -STA -NonInteractive -ExecutionPolicy ByPass -Command "& ''Z:\Powershell\365\GetNextDetails.ps1'' "', "", @SW_HIDE) Thanks!