DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Does anyone know any temporary startup manager?  (Read 6,522 times)

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
Does anyone know any temporary startup manager?
« on: July 14, 2008, 04:04 AM »
I am looking for a startup manager that can start items only once(one session) then deletes them. I know I can make batch files, use startup applications etc but that is not the path I want to take. I need more convenient solution so that I do not forget to disable-delete any temporary startup application-item.

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Does anyone know any temporary startup manager?
« Reply #1 on: July 14, 2008, 04:59 AM »
Someone who knows AHK can probably do this better, but here's a start...

Code
FileSelectFile, programname

Gui, Add, Text, x22 y22 w80 h20 , Program to run:
Gui, Add, Text, x112 y22 w320 h20 , %programname%
Gui, Add, Text, x22 y62 w190 h20 , Command line parameters:
Gui, Add, Edit, x22 y82 w410 h20 vCommandlp,
Gui, Add, Button, x22 y122 w100 h20 , OK
Gui, Add, Button, x142 y122 w90 h20 , Cancel
; Generated using SmartGUI Creator 4.0
Gui, Show, h166 w440, RunOnce Control
Return

ButtonOK:
Gui, submit
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\Currentversion\RunOnce, %programname%, %programname% %commandlp%

ButtonCancel:
GuiClose:
ExitApp

This new version will allow you to add command line parameters if you want after selecting the program to run.

Carl
« Last Edit: July 14, 2008, 06:27 AM by cthorpe »

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
Re: Does anyone know any temporary startup manager?
« Reply #2 on: July 14, 2008, 06:15 AM »
Thanks cthopre!

I will give a try once I need to restart today

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Does anyone know any temporary startup manager?
« Reply #3 on: July 14, 2008, 06:27 AM »
I made some changes to the script to allow you to enter command line parameters if needed.  The exe file attached is updated as well.

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
Re: Does anyone know any temporary startup manager?
« Reply #4 on: July 14, 2008, 06:32 AM »
Thanks for the update. It might work, because I just checked out runonce key via autoruns. The stuff I have added via your app is listed there. Thanks again

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Does anyone know any temporary startup manager?
« Reply #5 on: July 14, 2008, 08:11 AM »
Btw, it's easy to change the script to add a program that is specific to your user account.

Just change the line:
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\Currentversion\RunOnce, %programname%, %programname% %commandlp%

to
RegWrite, REG_SZ, HKEY_CURRENT_USER, SOFTWARE\Microsoft\Windows\Currentversion\RunOnce, %programname%, %programname% %commandlp%

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: Does anyone know any temporary startup manager?
« Reply #6 on: July 14, 2008, 09:00 AM »
[explained the obvious]

Original address: https://www.donationcoder.com/forum/index.php?topic=14049.0