I developed a program on windows xp and I used exec to run a ".bat" file and it worked fine. I copied the exact program on windows 2003 and the bat file didn't run. I used echo before the exec function and it seemed to work fine, I mean it echoed :
D: \ xampp \ htdocs \ x> Rundll32.exe printui.dll, PrintUIEntry / y / n "HP LaserJet P2015 Serisi PS"
but it didn't do anything. I ran the bat file alone and it worked fine. Just doesn't work with exec in windows 2003. any ideas?