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

Uber Geek

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




Please support Geekzone by subscribing, or using one of our referral links: Dosh referral: 00001283 | Sharesies | Goodsync | Mighty Ape | Backblaze

 

freitasm on Keybase | My technology disclosure

 

 

 

 

 

 


 
 
 

Trade NZ and US shares and funds with Sharesies (affiliate link).
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
441 posts

Ultimate Geek

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





News and reviews »

InternetNZ Releases Internet Insights 2023
Posted 20-Feb-2024 10:31


Seagate Adds 24TB IronWolf Pro Hard Drives for Multi-user Commercial and Enterprise RAID Storage Solutions
Posted 19-Feb-2024 16:54


Seagate Skyhawk AI 24TB Elevates Edge Security Capacity and Performance
Posted 9-Feb-2024 17:18


GoPro Releases Quik Desktop App for macOS and Introduces Premium+ Subscription Tier
Posted 9-Feb-2024 17:14


Ring Introduces New Ring Battery Video Doorbell Pro
Posted 9-Feb-2024 16:51


Galaxy AI Transforms the new Galaxy S24 Series
Posted 18-Jan-2024 07:00


D-Link launches AI-Powered Aquila Pro M30 Wi-Fi 6 Mesh Systems
Posted 17-Jan-2024 20:02


Newest LG 4K Lifestyle Projector Doubles as Art Objet
Posted 9-Jan-2024 15:50


More LG Smart TV Owners Set To Enjoy the Latest webOS Upgrade
Posted 9-Jan-2024 15:45


Panasonic Announces the Z95A and Z93A With Fire TV Built In
Posted 9-Jan-2024 15:30


Amazon Echo Pop Review
Posted 8-Jan-2024 14:22


Samsung Tab S9 FE Review
Posted 17-Dec-2023 08:26


Year in Search: What Kiwis Searched for in 2023
Posted 12-Dec-2023 08:18


New Air Traffic Management Platform and Resilient Buildings a Milestone for Airways
Posted 6-Dec-2023 05:00


Logitech G Launches New Flagship Console Wireless Gaming Headset Astro A50 X
Posted 5-Dec-2023 21:00









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.