Hey guys,
I'm having this problem of trying to open shortcuts, i.e (.lnk) files and am also trying to open powerpoint slideshows (.pps) files through turbo c++. It didn't work so what i did was write a .bat file to open those programs and then converted that .bat file to a .exe file. When double clicking the exe file runs great and is able to achieve what i want.
But when i call the file ( the executable file) through turbo c++ it tells me 'bad command or file name'.
The code i'm using to call the file is :
system("\"D:\\runsnake.exe\"");
The file runsnake.exe is actually the .bat file that is converted to .exe to run another program which is a game shortcut(.lnk)
The code used in the .bat file is :
"D:\snake.exe"
P.S - I am using turbo c++ as this is part of my school project and it has to be compiled using that...