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.


AllNightNerding

411 posts

Ultimate Geek


#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
freitasm
BDFL - Memuneh
80646 posts

Uber Geek
+1 received by user: 41024

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #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...




Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 




MrAlan
98 posts

Master Geek


  #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

AllNightNerding

411 posts

Ultimate Geek


  #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 --



sampler
468 posts

Ultimate Geek
+1 received by user: 126

ID Verified
Trusted
Lifetime subscriber

  #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








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.