Solved Batch files and UAC

holo88

is a ****
Guru
VIP
Local time
7:57 PM
Messages
1,802
Location
New Vegas
Hi.

I have a small issue I hope can be resolved to a desired effect (if possible)

Whats happening is, I am using a software, that to be used "correctly" requires a parameter to run correctly (2.0 beta type app) Heres what im looking at:

The program is a neato reproduction of the HTC (awesome phone) clock widget, from HERE.

The issue is, due to is current development state, will not load it's taskbar icon, without the use of a command line parameter. Which is kind of lame tbh. So I made up a quick little .bat that will start the program, with the icon. (yay for me)

Heres where the security issue comes in. The .exe does NOT have any compatibility settings enabled, but when the program runs, UAC still pops up, making it a chore to use a damn clock.

What i want to do is, if possible, add a line to the batch that will skip/disable the UAC check for the app, so that when I click on it, it just starts... that all.

Here is what the batch is made up of (I'll post screenys if it's necessary)
Code:
@echo off
start HTCHome.exe -addicon
exit

Pretty simple, but it works. Is there any way to skip the permission check, without disabling UAC, or something I'm doing wrong here?

Addition relevant info:
Im Admin, and entire folder w/ app is 'owned'
Specs and windows are up to date, all requirements are meet.
program is 32bit, no special compat. settings in place.
anything wle, just ask. :cool:
 

My Computer

Computer Manufacturer/Model Number
eMachines W3502
OS
Windows 7 Ultimate x32
CPU
Intel Celeron D 3.2 Ghz 533 fsb (LGA 775)
Motherboard
Intel D101GGC
Memory
1 GB (2x512MB) PC-3200 DDR @ 200Mhz
Graphics Card(s)
Nvidia GeForce 9400GT- 1GB
Sound Card
Sound Blaster X-Fi Xtreame Gamer
Monitor(s) Displays
19" LCD HDtv
Screen Resolution
1360x768 @ 60Htz
Hard Drives
SeaGate Barracuda 750GB
SeaGate Barracuda 100GB
Toshiba CD/DVDW/ TS-H552D [DVD+R, DL]
PSU
stock (idk)
Case
The busted remains of the stock case
Cooling
Dust cooled, waitwut?
Keyboard
Stock. Missing a few keys.
Mouse
Logitech LX8 5-btn mouse (wireless)
Internet Speed
TWC 10Mb
Other Info
Keeps going, and going, and going.......
Hello C.,

You might see if you may be able to create and use a elevated task shortcut in the tutorial below to run in your .bat file instead to hopefully have it run elevated without getting a UAC prompt with UAC turned on still.

http://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html

You might be able to just use the commands in the TIP box under step 14 for the new task in the .bat file instead of having to actually create the shortcut.

Hope this may help,
Shawn
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
That's quite odd. I use HTCHome too. But I never need the UAC on startup. To get the icon, I simply edit the shortcut that it creates in the startup folder, adding-addicon.

I'm not at home but I'll investigate more when I do get home.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 Service Pack 1
CPU
AMD Athlon II x4 Propus 2.9 GHz
Motherboard
ASRock N68C-GS FX
Memory
2 x 4GB Corsair XMS 3 DDR3 -1600 CL9
Graphics Card(s)
AMD Radeon HD 5850 1GB GDDR5
Sound Card
On-board 6-Channel HD Audio
Monitor(s) Displays
18' LG Flatron E1942TC-BN on DVI, 18' Chimei 95ND on HDMI
Screen Resolution
1366 x 768 x 2
Hard Drives
1 x 500 GB Seagate
1 x 1 TB Western Digital Caviar Green
1 x 1 TB Hitachi Touro Mobile USB 3
PSU
Seasonic S12II 520W
Case
Generic with Cable Management
Cooling
Deep Cool Gammaxx 200
Keyboard
Dragonwar Desert Eagle
Mouse
Logitech B85
Internet Speed
5Mb/s DL, 0.9Mb/s UL
Antivirus
ESET Nod32
Browser
Google Chrome 64 Bit
Other Info
LG G4 H818P - Rooted with Xposed Framework
Thanks fellas. I got it working, seemed to be one file was blocked, and causing the UAC prompt, and the app not saving my settings. That and a clean install of the app to make sure everything was there. So, it's all good now.

Its awesome. Just last night, we had some weather, and every time it would start snowing or raining, the app plays an animation, as if it 'knew'. Very cool Imo.
 

My Computer

Computer Manufacturer/Model Number
eMachines W3502
OS
Windows 7 Ultimate x32
CPU
Intel Celeron D 3.2 Ghz 533 fsb (LGA 775)
Motherboard
Intel D101GGC
Memory
1 GB (2x512MB) PC-3200 DDR @ 200Mhz
Graphics Card(s)
Nvidia GeForce 9400GT- 1GB
Sound Card
Sound Blaster X-Fi Xtreame Gamer
Monitor(s) Displays
19" LCD HDtv
Screen Resolution
1360x768 @ 60Htz
Hard Drives
SeaGate Barracuda 750GB
SeaGate Barracuda 100GB
Toshiba CD/DVDW/ TS-H552D [DVD+R, DL]
PSU
stock (idk)
Case
The busted remains of the stock case
Cooling
Dust cooled, waitwut?
Keyboard
Stock. Missing a few keys.
Mouse
Logitech LX8 5-btn mouse (wireless)
Internet Speed
TWC 10Mb
Other Info
Keeps going, and going, and going.......
That's great news C..

Very neet little weather app.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
You're welcome mate. Although I stand corrected. There is no entry in the startup folder. Instead, I saw the entry in msconfig. I'm glad you sorted it out. Cheers! :D
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 Service Pack 1
CPU
AMD Athlon II x4 Propus 2.9 GHz
Motherboard
ASRock N68C-GS FX
Memory
2 x 4GB Corsair XMS 3 DDR3 -1600 CL9
Graphics Card(s)
AMD Radeon HD 5850 1GB GDDR5
Sound Card
On-board 6-Channel HD Audio
Monitor(s) Displays
18' LG Flatron E1942TC-BN on DVI, 18' Chimei 95ND on HDMI
Screen Resolution
1366 x 768 x 2
Hard Drives
1 x 500 GB Seagate
1 x 1 TB Western Digital Caviar Green
1 x 1 TB Hitachi Touro Mobile USB 3
PSU
Seasonic S12II 520W
Case
Generic with Cable Management
Cooling
Deep Cool Gammaxx 200
Keyboard
Dragonwar Desert Eagle
Mouse
Logitech B85
Internet Speed
5Mb/s DL, 0.9Mb/s UL
Antivirus
ESET Nod32
Browser
Google Chrome 64 Bit
Other Info
LG G4 H818P - Rooted with Xposed Framework
Back
Top