schedule a file

This is a discussion on schedule a file within the C++ Programming forums, part of the General Programming Boards category; Hi I using window xp and scheduler a task for my exe file, it worked pefectly when I built my ...

  1. #1
    yes
    yes is offline
    Registered User
    Join Date
    Jan 2006
    Posts
    32

    schedule a file

    Hi

    I using window xp and scheduler a task for my exe file, it worked pefectly when I built my application using win32, it run perfectly and stopped after putting the result in the output file.

    but when I built my application using console application, and schedule a task for it run buit did not stop till I stop it and did not give any result for amy output file. and when you halt it you will find ( in gives last result 0xc000013a in the windon xp description)


    can we make a scheduler in C++ and howwww???????. rather that using window xp task scheduler
    any ideas
    Last edited by yes; 02-02-2006 at 10:23 AM.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,318
    It would probably be a lot easier to figure out why your console application cannot be scheduled than it would to make your own scheduler.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,546
    c000013a STATUS_CONTROL_C_EXIT

    I agree with Daved, the problem is most likely a bug in your code.

  4. #4
    yes
    yes is offline
    Registered User
    Join Date
    Jan 2006
    Posts
    32
    ok I there is a bug in my code, why when run the program in project.dsw it gives the right result in the output file.

    I wonder how I will fix that bug without knowing what is it, and what part causing it.

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    7,318
    It could be due to differences between running it from the scheduler versus running it from the IDE. What happens when you run it from a command prompt? What about when you put it your path and run it from different directory? The IDE has different settings (like what the current directory is) than running from the command line or scheduler has.

    Use cout statements to make sure it is reading and writing files to the directory you expect it to, and to find out how much of the program is successful and where it errors out.

  6. #6
    yes
    yes is offline
    Registered User
    Join Date
    Jan 2006
    Posts
    32
    Thank you guys I was using .ini file and did not put it in the same extension of the .exe file so, now it is working perfectly.

    many thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 08:35 AM
  2. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  4. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21