masa 0 Light Poster

Hi everyone
I used MVC++ and built a project win32 app( world) which has in it folder(world.dsw, world.dsp, world.cpp,world..., Input.csv,output.csv) , my program do not have an interface.
because it open and read in.csv and do some calculate to put the output in out.csv.

Now I would like to make the file world.exe . so after that I can scheduler a task in widow xp to run the world.exe in a specific time.

How can I make my world.exe


thank you

Dani AI

Generated

For : short practical checklist to produce a runnable world.exe and schedule it on Windows XP.

Open the workspace (.dsw) in Microsoft Visual C++ / MVC++ and build the project. Select the Release configuration (to avoid debug-only runtime dependencies) and run Build. The IDE will create world.exe in the project output folder (look in the build log or the project directory under Debug/Release). Copy world.exe and any required runtime DLLs into a simple folder such as C:\Programs\World.

When scheduling: use Control Panel -> Scheduled Tasks -> Add Scheduled Task and point to the copied world.exe. In the task properties set the "Start in" (working directory) to the same folder that contains Input.csv and output.csv, or change the program to open the CSV files by absolute path. Scheduled tasks often run with a different current directory (eg. System32), so relative paths fail. Make sure the chosen user account has permission to read/write the CSVs and that the program does not require interactive input or GUI.

Command-line alternative (create a daily 09:00 task via schtasks):

schtasks /create /tn "World" /tr "C:\Programs\World\world.exe" /sc daily /st 09:00 /ru MyUser /rp MyPassword

See Microsoft documentation for schtasks for syntax and options: schtasks (Windows).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.