Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Where is paramstr(0) hide ? (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 25.12.2020, 22:51

> Hello!
>
> Does any anybody know, where is DOS have path and name of executed
> program?
> I talk about paramstr(0) (in pascal) or first element of argv (in C) - like
> C:\PATH\COOLPRG.EXE
>
> I am try disassemble minimal program in TP7, but have 31k disassembled text
> :-) and continue investigate (may be somebody already known it and can make
> may path is short).

I believe it is at the end of the environment block, after the double-zero that marks the end of the variables stored in the block.

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 263 users online (0 registered, 263 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum