Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


411 posts

Ultimate Geek


Topic # 29043 20-Dec-2008 14:53
Send private message

Is it possible?

When I log on I want the logon script which is a bat file to launch a program.

Does anyone know the code for it to do this?




-- Divett Enterprises -- The Power Of Tomorrow --

Create new topic
BDFL - Memuneh
61331 posts

Uber Geek
+1 received by user: 12075

Administrator
Trusted
Geekzone
Lifetime subscriber

  Reply # 185320 20-Dec-2008 15:10
Send private message

Just invoke the application. For example a .BAT file like this will launch Notepad:

@echo off
cd \windows
notepad

No mystery there...




98 posts

Master Geek


  Reply # 185322 20-Dec-2008 15:24
Send private message

alternatively you can also use the 'start' command to configure additional options such as process priority etc.
type "start /?" at the command prompt for a list of options.

for examples and a lists of other useful command line utilities check out http://www.ss64.com



411 posts

Ultimate Geek


  Reply # 185324 20-Dec-2008 15:30
Send private message

Awesome!

Thanks Heaps!

What I have set up now is that I can use Smart Login to execute the main bat logon script (seeing as Smart Login tends to only like BAT scripts) then using the bat script I have got it so that it executes our main logon script which is done using Scriptstart (Because I cant be bothered writing my own script. Seems to be working well now :D




-- Divett Enterprises -- The Power Of Tomorrow --

275 posts

Ultimate Geek
+1 received by user: 33

Trusted
Lifetime subscriber

  Reply # 185381 20-Dec-2008 21:52
Send private message

Mr Nerding,

Little late but ...
Depending on the program your running via the batch you may have a dos shell window for the time you have the launched application open/running.
So, you might also want to look into scheduled tasks to. You can set a program to be run at all sorts of times or events.

Cheers

Sampler

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.