10 Replies - 2807 Views - Last Post: 30 September 2005 - 12:52 AM Rate Topic: -----

#1 Xenon  Icon User is offline

  • Connection failed
  • member icon

Reputation: 8
  • View blog
  • Posts: 1,595
  • Joined: 12-September 05

Starting a .exe file (automa) when Windows Starts

Post icon  Posted 12 September 2005 - 03:51 AM

I made an application on VB(normal) that works like a Personal Assistant.

the thing is i made that application,
but i need to make it run automatically when Windows Starts and the User Logs in. :angry:

How > ? >> or just input logic (VB code is most preffered)
:D

Is This A Good Question/Topic? 0
  • +

Replies To: Starting a .exe file (automa) when Windows Starts

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Starting a .exe file (automa) when Windows Starts

Posted 12 September 2005 - 05:18 AM

The easiest way to accomplish this would be to install the application as a service (you can google installing as a service, or vb can package up the app in an installer that will install as a service), or modify your startup file (perhaps autoexec.bat) to run the application.
Was This Post Helpful? 0
  • +
  • -

#3 electrickjagwire  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 11-September 05

Re: Starting a .exe file (automa) when Windows Starts

Posted 12 September 2005 - 11:18 AM

It's kind of a Ghetto rigged method, but it works.
Go to msconfig
Start tab.
Some where in there, there will be something starting up that you don't actually want to start up.
Look at the location and the file name.
Rename your prog to the name of the file in msconfig,
Remove the original unwanted prog exe.
Put yours in the folder that it was.
whalla
Was This Post Helpful? 0
  • +
  • -

#4 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1875
  • View blog
  • Posts: 20,284
  • Joined: 17-March 01

Re: Starting a .exe file (automa) when Windows Starts

Posted 12 September 2005 - 11:25 AM

Couldn't you just drop the exe file in the startup folder in the start menu?!!?
Was This Post Helpful? 0
  • +
  • -

#5 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Starting a .exe file (automa) when Windows Starts

Posted 12 September 2005 - 11:37 AM

Yep, although the preferred method is to modify the config file, adding the new program in...you can simply change the name of your application as suggested, but that can create problems of it's oen unless you are extremely familiar with the dependancies and actions of the program you are removing. Better safe than sorry.
Was This Post Helpful? 0
  • +
  • -

#6 Xenon  Icon User is offline

  • Connection failed
  • member icon

Reputation: 8
  • View blog
  • Posts: 1,595
  • Joined: 12-September 05

Re: Starting a .exe file (automa) when Windows Starts

Posted 28 September 2005 - 05:15 AM

high five to ghetto method , suits me well, cause i have lots of bullshit applictions running on startup.( thnx electrickjagwire)

Amadeus's method works well too, only thing is that i dont like modifying the AUTOEXEC.BAT file .. risky.

Skyhawk133, i did the startup thing in the first place, but my WIn Xp is so shitty that it wont start it, but all of the other bullshit programs. so i had to give it.

High five to all B)
Was This Post Helpful? 0
  • +
  • -

#7 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Starting a .exe file (automa) when Windows Starts

Posted 28 September 2005 - 10:46 AM

Why use Autoexec.bat when you can add the path of the exe to the registry. Besides adding the file path to autoexec.bat wont work as it can execute only DOS programs.
Add this code to your VB app to add it's path to the Registry. This will start the App everytime Windows Starts.
Dim Reg As Object
Set Reg = CreateObject("wscript.shell")
Reg.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\" & App.EXEName, App.Path & "\" & App.EXEName & ".exe"


Was This Post Helpful? 0
  • +
  • -

#8 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Starting a .exe file (automa) when Windows Starts

Posted 28 September 2005 - 10:55 AM

Here is a pretty good article on launching on startup...for XP, at least.
Was This Post Helpful? 0
  • +
  • -

#9 Xenon  Icon User is offline

  • Connection failed
  • member icon

Reputation: 8
  • View blog
  • Posts: 1,595
  • Joined: 12-September 05

Re: Starting a .exe file (automa) when Windows Starts

Posted 29 September 2005 - 01:47 AM

born2code = that's what is called genius. It worked, yea my application took some time to run for the first time , but then its works smooth.
y0
B)
---------
hmm the link amadeus supplied seems resourceful but its gonna take me a week to utilise it to the maximum( still learning). Programming to me isnt a overnight phenomenon.
:)
----------
Miles away still to become a 1337, just crawled an inch.

This post has been edited by Xenon: 29 September 2005 - 01:50 AM

Was This Post Helpful? 0
  • +
  • -

#10 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: Starting a .exe file (automa) when Windows Starts

Posted 30 September 2005 - 12:41 AM

lol Xenon...Amadeus helps you in the longer run.
I might just give you the solution, but Amadeus helps you find it yourself.
In all time spent at </dic> I've learnt to Hate And Love Amadeus...lol
Was This Post Helpful? 0
  • +
  • -

#11 Xenon  Icon User is offline

  • Connection failed
  • member icon

Reputation: 8
  • View blog
  • Posts: 1,595
  • Joined: 12-September 05

Re: Starting a .exe file (automa) when Windows Starts

Posted 30 September 2005 - 12:52 AM

ind33d.

where's the fun in programming without a challenge.

well direct solution...no thanks
it'd be just copy and paste then (something for dopes to do)
even if i took one i'd rather c first how and why it works.

that;s what i know bout programming
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1