D 2010-10-16T14:48:55 J +comment \n\n
pgmptr
\sdoesn't\sreally\ssolve\sthe\sproblem.\sReading\sthe\smicrosoft\smsdn\spages,\si\ssee:\r\n\r\n\r\nWhen\sa\sprogram\sis\srun\sfrom\sthe\scommand\sinterpreter\s(Cmd.exe),\s_pgmptr\sis\sautomatically\sinitialized\sto\sthe\sfull\spath\sof\sthe\sexecutable\sfile.\sFor\sexample,\sif\sHello.exe\sis\sin\sC:\\BIN\sand\sC:\\BIN\sis\sin\sthe\spath,\s_pgmptr\sis\sset\sto\sC:\\BIN\\Hello.exe\swhen\syou\sexecute:\r\nCopy\r\n\r\nC>\shello\s\r\n\r\nWhen\sa\sprogram\sis\snot\srun\sfrom\sthe\scommand\sline,\s_pgmptr\smight\sbe\sinitialized\sto\sthe\sprogram\sname\s(the\sfile's\sbase\sname\swithout\sthe\sfile\sname\sextension)\sor\sto\sa\sfile\sname,\srelative\spath,\sor\sfull\spath.\r\n\r\nIf\sthe\sfossil.exe\sis\scalled\sby\stools\slike\sanysrv/nssm/..,\sthe\svalue\sof\spgmptr\smay\sbe\sa\srelative\sor\sabsolute\spath\sor\sonly\sthe\sfilename.\r\n\r\n K c8c0b78c840e4df9aefd2687bf6cac5abfce08e5 U wolfgang Z 0160916da43b7b09a7a5cff5b68f8838