H
HardHackz
Are there any variables like %HOMEDIR%, %USERNAME%, etc. that batch
has for C++?
has for C++?
Are there any variables like %HOMEDIR%, %USERNAME%, etc. that batch
has for C++?
Lionel said:No. That's all system-dependent. C++ doesn't assume that things like
"user" or "directory" even exist (although it does have a notion of
"file"). Think about it: a microchip controlling your fridge might be
programmed in C++...
Victor Bazarov said:Not sure what is meant by 'variables like batch has', but if those
are "environment" variables, see 'getenv' function.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.