Program not open, but process shows running in Task Manager - Windows 10

Local time
8:25 AM
Posts
1
Thread starter
Have created a .bat file to open kill and open a windows application .
If the .bat is run manually the application can able to open

@echo off
taskkill /im Card3500.exe /f
SLEEP 10
start "" "C:\Program Files (x86)\Access Control\Card3500.exe"

when added the .bat to a task scheduler to run every 1 hour
application is showing in the Task Manager as process running , but the application is not opening

Any ideas?
 
Windows Version
Windows 10 20H2 OS Build - 19042.985

My Computer

System One

  • Operating System
    Windows 10

jbcarreon123

from TenForums - jbcarreon123
VIP
Local time
8:25 AM
Posts
52
Location
Quezon City, Philippines
Maybe the program is running in the background?
 

My Computers

System One System Two

  • Operating System
    Windows 10, Linux (LiveUSB)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
    CPU
    Core i3 2100
    Motherboard
    OEM
    Memory
    4GB DDR3
    Graphics Card(s)
    Integrated Graphics (Intel)
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP Compaq LA2006x
    Hard Drives
    Samsung HD250HJ
    PSU
    OEM
    Case
    OEM
    Cooling
    OEM
    Internet Speed
    10mbps
    Browser
    Chrome, Edge
    Antivirus
    Windows Defender
    Other Info
    my pc is out of warranty
  • Operating System
    Windows 3.1, 95 OSR2, 98SE, 2000 SP4, XP SP3 and MS-DOS 6.22
    Computer type
    PC/Desktop
    Manufacturer/Model
    VM (VMWare Workstation Player 16)
    CPU
    Pentium
    Memory
    64mb to 256mb
    Graphics card(s)
    VM display adapter
    Sound Card
    Soundblaster Pro
    Monitor(s) Displays
    Generic Non-PnP monitor
    Screen Resolution
    1280x720
    Browser
    SeaMonkey 1.1.16
    Other Info
    This is an VM

iko22

Active Member
Member
VIP
Local time
1:25 AM
Posts
136
Location
South West England
Change line taskkill /im Card3500.exe /f to taskkill /im "C:\Program Files (x86)\Access Control\Card3500.exe" /f.

Also are there any special user permissions required to access the folder?
 

My Computer

System One

  • Operating System
    Windows 10

jbcarreon123

from TenForums - jbcarreon123
VIP
Local time
8:25 AM
Posts
52
Location
Quezon City, Philippines
To taskkill, I'm using this command:
Taskkill.exe /f /im Card3500.exe
It worked even in Run, without in batch file, cmd prompt, shortcut, PowerShell, and anything.
 
Last edited:

My Computers

System One System Two

  • Operating System
    Windows 10, Linux (LiveUSB)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
    CPU
    Core i3 2100
    Motherboard
    OEM
    Memory
    4GB DDR3
    Graphics Card(s)
    Integrated Graphics (Intel)
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP Compaq LA2006x
    Hard Drives
    Samsung HD250HJ
    PSU
    OEM
    Case
    OEM
    Cooling
    OEM
    Internet Speed
    10mbps
    Browser
    Chrome, Edge
    Antivirus
    Windows Defender
    Other Info
    my pc is out of warranty
  • Operating System
    Windows 3.1, 95 OSR2, 98SE, 2000 SP4, XP SP3 and MS-DOS 6.22
    Computer type
    PC/Desktop
    Manufacturer/Model
    VM (VMWare Workstation Player 16)
    CPU
    Pentium
    Memory
    64mb to 256mb
    Graphics card(s)
    VM display adapter
    Sound Card
    Soundblaster Pro
    Monitor(s) Displays
    Generic Non-PnP monitor
    Screen Resolution
    1280x720
    Browser
    SeaMonkey 1.1.16
    Other Info
    This is an VM

johngalt

Well-known member
WQ Insider
Member
VIP
Local time
8:25 PM
Posts
620
Location
3rd Rock
when added the .bat to a task scheduler to run every 1 hour
application is showing in the Task Manager as process running , but the application is not opening

It works fine outside of task scheduler, but not when run from task scheduler. Hence iko22's reply.
 

My Computer

System One

  • Operating System
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    Manufacturer/Model
    The Beast Model A (homebrew)
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * Corsair Vengeance 32 GB 3600 MHz
    Graphics Card(s)
    eVGA GeForce GTX 970 SSC ACX 2.0 (04G-P4-3979-KB)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2 * Lenovo LT2323pwA Widescreeen @ 1920*1080
    Hard Drives
    3x Sabrent Rocket PCIe Gen4 NVMe M.2 1 TB SSD (SB-ROCKET-NVMe4-1TB)
    SanDisk Ultra SDSSDHII-960G-G25 960 GB SATA III SSD
    Crucial MX100 CT256MX100SSD1 256GB SATA III SSD
    2 * Seagate Barracuda 7200.12 ST31000528AS 1TB 7200 RPM (Old storage)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    NZXT KRAKEN Z73 73.11 CFM Liquid CPU Cooler + Air (3 * 140mm fans from case)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3 Wireless Laser Mouse(shared)
    Internet Speed
    AT&T Lightspeed Gigabit duplex
    Browser
    Nightly|Chrome|Canary|Edge+ (Chromium) (in all 4 flavors)
    Antivirus
    Windows Defender + MB 4

Try3

New Member
VIP
Local time
1:25 AM
Posts
18
Temporarily remark out the @echo off line then stick a Pause command in every other line to see how the batch file is responding when run from Task scheduler.

Note:- Sleep is not a built-in command so I suggest you check its Help file in case it is affecting proceedings.

Code:
::@echo off
 taskkill /im Card3500.exe /f
Pause after TaskKill
 SLEEP 10
Pause after Sleep
 start "" "C:\Program Files (x86)\Access Control\Card3500.exe"
Pause after Start

Denis
 

My Computer

System One

  • Operating System
    Windows 10 Home x64 Version 20H2 Build 19042.985
    Manufacturer/Model
    Dell Inspiron 7779; HP Pavilion TP01-0026na desktop; Chuwi Hi10 Pro
    Internet Speed
    4G
    Browser
    FF, IE

jbcarreon123

from TenForums - jbcarreon123
VIP
Local time
8:25 AM
Posts
52
Location
Quezon City, Philippines
For @Try3's suggestion, you can use this code:
Code:
::@echo off

REM Pause command is “Pause”
REM Fixed Code

 taskkill /f /im Card3500.exe

REM For Sure that the process is killed

  taskkill /f /im Card3500.exe

Pause after TaskKill

 Timeout 10

Pause after Timeout

 start "C:\Program Files (x86)\Access Control\Card3500.exe"

Pause after Start
 
Last edited:

My Computers

System One System Two

  • Operating System
    Windows 10, Linux (LiveUSB)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
    CPU
    Core i3 2100
    Motherboard
    OEM
    Memory
    4GB DDR3
    Graphics Card(s)
    Integrated Graphics (Intel)
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP Compaq LA2006x
    Hard Drives
    Samsung HD250HJ
    PSU
    OEM
    Case
    OEM
    Cooling
    OEM
    Internet Speed
    10mbps
    Browser
    Chrome, Edge
    Antivirus
    Windows Defender
    Other Info
    my pc is out of warranty
  • Operating System
    Windows 3.1, 95 OSR2, 98SE, 2000 SP4, XP SP3 and MS-DOS 6.22
    Computer type
    PC/Desktop
    Manufacturer/Model
    VM (VMWare Workstation Player 16)
    CPU
    Pentium
    Memory
    64mb to 256mb
    Graphics card(s)
    VM display adapter
    Sound Card
    Soundblaster Pro
    Monitor(s) Displays
    Generic Non-PnP monitor
    Screen Resolution
    1280x720
    Browser
    SeaMonkey 1.1.16
    Other Info
    This is an VM

Try3

New Member
VIP
Local time
1:25 AM
Posts
18
I deliberately did not want to suggest changing anything the OP was using in the batch file.

The Sleep command is available as part of an SDK. Many people seem to like it and the OP seems to be one of those people. Personally, I don't use it.

For the OP - the suggested change to a TimeOut command is your decision but do note that there is an error in the TimeOut syntax suggested so you'd be better sticking with your existing Sleep command instead.

Denis
 

My Computer

System One

  • Operating System
    Windows 10 Home x64 Version 20H2 Build 19042.985
    Manufacturer/Model
    Dell Inspiron 7779; HP Pavilion TP01-0026na desktop; Chuwi Hi10 Pro
    Internet Speed
    4G
    Browser
    FF, IE

jbcarreon123

from TenForums - jbcarreon123
VIP
Local time
8:25 AM
Posts
52
Location
Quezon City, Philippines
Or, remove the batch file and replace it as PowerShell script.

Code:
Stop-Process -Name Card3500 -Force

Start-Sleep 10

Start-Process -FilePath 'C:/Program Files (x86)/Access Control/Card3500.exe'
 

My Computers

System One System Two

  • Operating System
    Windows 10, Linux (LiveUSB)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
    CPU
    Core i3 2100
    Motherboard
    OEM
    Memory
    4GB DDR3
    Graphics Card(s)
    Integrated Graphics (Intel)
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP Compaq LA2006x
    Hard Drives
    Samsung HD250HJ
    PSU
    OEM
    Case
    OEM
    Cooling
    OEM
    Internet Speed
    10mbps
    Browser
    Chrome, Edge
    Antivirus
    Windows Defender
    Other Info
    my pc is out of warranty
  • Operating System
    Windows 3.1, 95 OSR2, 98SE, 2000 SP4, XP SP3 and MS-DOS 6.22
    Computer type
    PC/Desktop
    Manufacturer/Model
    VM (VMWare Workstation Player 16)
    CPU
    Pentium
    Memory
    64mb to 256mb
    Graphics card(s)
    VM display adapter
    Sound Card
    Soundblaster Pro
    Monitor(s) Displays
    Generic Non-PnP monitor
    Screen Resolution
    1280x720
    Browser
    SeaMonkey 1.1.16
    Other Info
    This is an VM

jbcarreon123

from TenForums - jbcarreon123
VIP
Local time
8:25 AM
Posts
52
Location
Quezon City, Philippines
I deliberately did not want to suggest changing anything the OP was using in the batch file.

The Sleep command is available as part of an SDK. Many people seem to like it and the OP seems to be one of those people. Personally, I don't use it.

For the OP - the suggested change to a TimeOut command is your decision but do note that there is an error in the TimeOut syntax suggested so you'd be better sticking with your existing Sleep command instead.

Denis

I used that command for my batch files and it works. If the OP wants to not cancel it, use Timeout 10 /NOBREAK
 

My Computers

System One System Two

  • Operating System
    Windows 10, Linux (LiveUSB)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
    CPU
    Core i3 2100
    Motherboard
    OEM
    Memory
    4GB DDR3
    Graphics Card(s)
    Integrated Graphics (Intel)
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP Compaq LA2006x
    Hard Drives
    Samsung HD250HJ
    PSU
    OEM
    Case
    OEM
    Cooling
    OEM
    Internet Speed
    10mbps
    Browser
    Chrome, Edge
    Antivirus
    Windows Defender
    Other Info
    my pc is out of warranty
  • Operating System
    Windows 3.1, 95 OSR2, 98SE, 2000 SP4, XP SP3 and MS-DOS 6.22
    Computer type
    PC/Desktop
    Manufacturer/Model
    VM (VMWare Workstation Player 16)
    CPU
    Pentium
    Memory
    64mb to 256mb
    Graphics card(s)
    VM display adapter
    Sound Card
    Soundblaster Pro
    Monitor(s) Displays
    Generic Non-PnP monitor
    Screen Resolution
    1280x720
    Browser
    SeaMonkey 1.1.16
    Other Info
    This is an VM
Top