need help to link an exe with startup

Discussion in 'C' started by dssr, Jun 7, 2008.

  1. dssr

    dssr New Member

    Joined:
    Feb 16, 2008
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Programming
    Location:
    Kolkata
    Hii this is my first post requesting a help for u experts, i have basic knowledge of C & C++, i want to create an application which requires whenever i start the windows it starts automatically,(i.e. i want to link it with my startup) i want to run the exe whenever my windows starts


    let me clarify a bit, the exe will run but wont show on the screen, say after starting the windows when i am at my desktop and no other text editor is running, if i type something another window will pop up showing my text

    any help regarding this
     
  2. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    http://www.tutors161.com
    You can use registry option to run any exe file at startup. just use the command "system()". and pass the registry command to add the file into system startup. ALl this can be done in ur c/C++ program
     
  3. dssr

    dssr New Member

    Joined:
    Feb 16, 2008
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Programming
    Location:
    Kolkata
    thanks for the help, but system command is not running in my compiler

    i have borland, turbo c++ 4.5 and an older dos based version of turbo c

    in borland the program is compiling but then giving some error
    in turbo c++ 4.5 program is not compiling at all giving error "_system command is undefined or something like this
    and in the older version of turbo c it's compiling successfully and then running but nothing comes except a blank window and if i use a print or some other command with it that's coming in this case


    can u help me out with it??

    the code i am using

    Code:
    #include<stdio.h>
    #include<stdlib.h>
    int main(void)
    {
        system("dir");
        return 0;
    }
    thanxx in advance
     
  4. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    http://www.tutors161.com
    try including process.h library too. I have turbo c++ compiler version 3.00. If that version is executing SYSTEM command, then ur compiler should do so.
     
  5. dssr

    dssr New Member

    Joined:
    Feb 16, 2008
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Programming
    Location:
    Kolkata
    still no help :cryin: used process.h but no help, same problem
     
  6. dssr

    dssr New Member

    Joined:
    Feb 16, 2008
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Programming
    Location:
    Kolkata
    okay used C Free compiler,it's working
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice