Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Know app is runing with parameters 3 weeks 14 hours ago #19406

  • Fernando Sandoval
  • Fernando Sandoval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 55
  • Thank you received: 0
Hi question how to run app with parameters , so i need run a program but i don't know how detect if running with parameters or not the way i can open as normal make changes in configuration....
for examples i create a app to copy files but i need run also make changes to add folder to copy files but the app started run a make copy and close as is want but how i can run and make that changes .....
CopyFiles defincion.par 

Idea please 

Please Log in or Create an account to join the conversation.

Know app is runing with parameters 2 weeks 6 days ago #19409

  • Fernando Sandoval
  • Fernando Sandoval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 55
  • Thank you received: 0
Ok don't go so deep on that but i found this
if we just run program or app and we ask   Pname:=ParamStr(0) on Create form or mainform we are going to get program or app name but we run app this way
  program  setting.ini   and on create form we ask   PnameMain:=ParamStr(1) we get name of file or parameters were are locate configuration

Great we don't use often this but useful thenks
   

Please Log in or Create an account to join the conversation.

  • Page:
  • 1