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
61021 posts

Uber Geek
+1 received by user: 11851

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:





News »

Intel introduces new NUC kits and NUC mini PCs
Posted 16-Aug-2018 11:03


The Warehouse leaps into the AI future with Google
Posted 15-Aug-2018 17:56


Targus set sights on enterprise and consumer growth in New Zealand
Posted 13-Aug-2018 13:47


Huawei to distribute nova 3i in New Zealand
Posted 9-Aug-2018 16:23


Home robot Vector to be available in New Zealand stores
Posted 9-Aug-2018 14:47


Panasonic announces new 2018 OLED TV line up
Posted 7-Aug-2018 16:38


Kordia completes first live 4K TV broadcast
Posted 1-Aug-2018 13:00


Schools get safer and smarter internet with Managed Network Upgrade
Posted 30-Jul-2018 20:01


DNC wants a safer .nz in the coming year
Posted 26-Jul-2018 16:08


Auldhouse becomes an AWS Authorised Training Delivery Partner in New Zealand
Posted 26-Jul-2018 15:55


Rakuten Kobo launches Kobo Clara HD entry level reader
Posted 26-Jul-2018 15:44


Kiwi team reaches semi-finals at the Microsoft Imagine Cup
Posted 26-Jul-2018 15:38


KidsCan App to Help Kiwi Children in Need
Posted 26-Jul-2018 15:32


FUJIFILM announces new high-performance lenses
Posted 24-Jul-2018 14:57


New FUJIFILM XF10 introduces square mode for Instagram sharing
Posted 24-Jul-2018 14:44



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.