Delphi Program can command level execution program with hidden mode

CK CK 3788 
Created at
Updated at  
703 0 0

Below is the example of running command with hidden mode. Actually there lots of command type in Windows like SW_NORMAL, SW_HIDE, ...

What I am going to implement is running windows command with hidden mode.

Below is the example of windows command execution in hidden mode.

program run_hidden_cmd;
uses
	Vcl.Forms, ShellAPI;
{$R *.res}
procedure exec_cmd(p:string);
begin
	ShellExecute( 0, 'open', PWideChar(p), nil, nil, 0); // end of 0 = SW_HIDE
end;

begin
	Application.Initialize;
	exec_cmd( ParamStr(1));
	Application.Run;
end;
Tags GetPort OS SW_HIDE ShellExecute exist Facebook X
Comments 0
Similar posts
  1. I want to select directory(folder) not file. How can I do that ?
    624
  2. How to launch the external application in Delphi ?
    1,074
  3. How to print external document ?
    423
  4. How to install an INF file using Delphi ?
    468
  5. How to run shell command by MFC ?
    441
  6. How Do I Remove The Application Icon From The Taskbar?
    1,103
  7. How To Open Url In Default Webbrowser
    465
  8. Run command with Administrator permission in Delphi on Microsoft Windows
    767
  9. Run PowerShell Command as Administrator in Delphi
    657
  1. Building a Simple DNS Server in Delphi with TTL Support
    686
  2. Delphi code to send data to web server based on POST method
    1,036
  3. Good Delphi components
    930
  4. How to download/grap web pages or XML document at internet website in Delphi XE?
    880
  5. How To Turn On/Off Monitor with Delphi
    857
  6. How to get application version number in Delphi
    1,559
  7. The Delphi function to get My Videos folder
    2,337
  8. Get Application Data Path on Delphi
    839
  9. Changing the Title of a Print Dialog in Delphi
    1,098
  10. Auto Logon Programming in Delphi
    1,033
  11. Thread Application Implementation in TThread
    670
  12. Is there directory selection VCL component in Delphi ?
    523
  13. Delphi API to get windows temporary directory
    586
  14. Delphi API to get the current working directory
    1,254
  15. How to resize PNG file in Delphi ?
    1,223
  16. Get the length of arrays and a string
    1,742
  17. Delphi Pointer Types
    22,099
  18. How to read/wrtie INI file in Delphi ?
    3,123
  19. How to get file created time, modified time, and last accessed time ?
    3,348
Recently updated
  1. Google OAuth Token Expiration: Causes and Solutions
    29
  2. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    55
  3. Why SPF and DKIM Are Essential for Linux Email Servers?
    49
  4. How do I create animated background for Google Meet?
    22,861
  5. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    271
  6. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    103
  7. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    168
  8. Array of arguments passed to script in PHP
    97
  9. Invalid Auction Storms in Ad Tech
    106
  10. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    207
  11. The Two Clocks of Ad Server Architecture
    77
  12. Frequency Cap Architecture Overview
    526
  13. Collecting Proof-of-Play from 100,000 Screens
    152
  14. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    302
  15. What is RedisVL?
    114
  16. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    246
  17. TPU & GPU Cluster Management Tools
    257
  18. The Concept of Scaffolding in AI Agents
    244
  19. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    596
  20. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    267
  21. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    353
  22. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    206
  23. Machine Learning: Training vs. Ranking
    229
  24. The Continuous Learning Machine: Designing a Loop That Actually Turns
    228
  25. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    202
  26. Designing a Data Curation System Around a Vector Database
    230
  27. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    263
  28. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    671
  29. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    200
  30. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    232