How do I fopen a file in %windir% path
Hello to all.
I searched alot for this issue, but couldn't find an answer.
My requirement is to open few files in a C script that will be used to collect data & then display on screen.
I am using system command in my script to run few DOS commands, for example:
system("systeminfo > %windir%/web/wallpaper/sys_info.txt");
(I am using this directory since this is the only writable place in my domain computers. And I am using %windir% since I can't assume that C: is the default directory for OS on all computers)
But now how do I open this file in read mode (or any mode)?
I am not able to open file using:
Any help will be greatly appreciated. I am in hurry to correct this script. Thanks alots in advance.