How Can I Write A Program & Make Run Via CMD Upon Startup??

By damienb ยท 7 replies
Jul 26, 2006
  1. Hey people,

    When I plug onto the network at my work office, a small progarm runs on CMD which was written by the IT guy. It basically finds your place on the network, maps the network drive and reconnects to all the office printers and sets the defaut printer.

    I want to be able to do a similar thing at home if this is possible. All I want the program to do is set my default printer at home.

    The gyt has shown me the program and it written in notepad but I dont know how he gets it to run at startup (as long as you are on the network)?

    Can anyone help me?

  2. JMMD

    JMMD TechSpot Chancellor Posts: 854

    It's probably run as part of the login script. It's probably a simple batch file.
  3. damienb

    damienb TS Rookie Topic Starter Posts: 55

    does that mean i cant do it at home? obviously i dont have windows server at home. i have a wireless network which the printer is on though.

    if it can be done and it is as you say a simple batch file then how do i actually make it run the commands from the program on startup? i dont know how to go about setting that up??

  4. LNCPapa

    LNCPapa TS Special Forces Posts: 4,276   +461

    Quick question - do you log into a domain at work?
  5. damienb

    damienb TS Rookie Topic Starter Posts: 55

    yes i do. does that make a difference?

  6. Ididmyc600

    Ididmyc600 TechSpot Chancellor Posts: 1,415

    The script is run at work because of the amount of work you would have to do each time you turn the PC on just to add all the different printers etc.

    You really dont need it at home, just log onto your laptop as a the local user and install the default printer for yourself, this will then be stored in your local user profile and will be there each time you log on.
  7. damienb

    damienb TS Rookie Topic Starter Posts: 55

    i have the drivers on my pc for the printer at home already and that is already what i do. i have to make the default myself each time i switch my pc on at home. just thought i could make a similar program to run when i connect to my wirless network at home so i dont have to make my printer at home the default each and every time. is that possible? or do you think its not worth the hastle??

  8. Samstoned

    Samstoned TechSpot Paladin Posts: 1,018

    so you use the same laptop for home and office and when at office it is writing new profile with the new hardware
    best create a shared 2nd profile for home log in with that setup
    it would then not change setting
Topic Status:
Not open for further replies.

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...