Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Run hidden exe
#1
Hello dear users, iam trying to call exe. file from python and run it hidden. I want to run it without user operation. I have this script and it is working fine but when windows needs to ask this, it is not working -
116880004-1421707291368565-1292061420754641316-n


Is it possible to add something to this code to skip this or always allow to run targeted exe. ?
When i run this program and accept is needed, this program crash. When i run this program and acept is not needed it works fine.

import subprocess

def startProgram():
    SW_HIDE = 0
    info = subprocess.STARTUPINFO()
    info.dwFlags = subprocess.STARTF_USESHOWWINDOW
    info.wShowWindow = SW_HIDE
    subprocess.Popen(r"C:\Program Files\SketchUp\SketchUp 2017\SketchUp.exe", startupinfo=info)
startProgram()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy only hidden files and folders with rsync Cannondale 2 1,018 Mar-04-2023, 02:48 PM
Last Post: Cannondale
  Can ZipFile be used to extract hidden files? AiedailEclipsed 0 1,635 Mar-22-2022, 05:21 PM
Last Post: AiedailEclipsed
  Rock, Paper, Scissors.. Help..hidden bug xxunknownxx 4 2,673 Mar-19-2020, 02:46 AM
Last Post: jefsummers
  How to get full path of specified hidden files matching pattern recursively SriRajesh 4 3,936 Jan-18-2020, 07:12 PM
Last Post: SriRajesh
  Substitution with regular expression returns hidden character SOH bajacri 2 3,828 Nov-17-2019, 03:38 AM
Last Post: bajacri
  A hidden library? BillMcEnaney 3 3,163 Apr-02-2019, 12:00 AM
Last Post: BillMcEnaney
  find hidden python files bobsmith76 4 3,309 Oct-23-2018, 10:57 PM
Last Post: wavic
  Identify Hidden rows in xls ayonsarkar 2 11,115 Apr-10-2018, 08:33 PM
Last Post: ljmetzger
  PyMODINIT_FUNC and gcc hidden visibility jock 0 3,446 Feb-01-2018, 03:47 PM
Last Post: jock
  How dont' show hidden system files Mike Ru 5 9,607 Jan-11-2018, 01:18 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020