View Single Post
Old 27-06-2021, 08:00
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
Join Date: Nov 2000
Location: Hungary
Posts: 9,713
Thanks: 10
Thanked 299 Times in 190 Posts
Joe Forster/STA is on a distinguished road
System-specific values. (I assume you're talking about Windows.) Not all Windows installations are in "C:\Windows" or applications in "C:\Program Files". The directory for temporary files can vary, too. The computer name obviously is different from system to system. You can query those values from the Windows API but not in batch files; only environment variables are available there. Unfortunately, Microsoft didn't think it out much (either) so there aren't many environment variables set up by the system. That's one of the reasons why serious programming in batch files is next to impossible.
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage:, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote