[CODING][SUPPORT] Making an app. How can I translate Windows Environment Variables into English and then pipe it to an output.txt? - Overclock.net - An Overclocking Community

Forum Jump: 

[CODING][SUPPORT] Making an app. How can I translate Windows Environment Variables into English and then pipe it to an output.txt?

Thread Tools
post #1 of 2 (permalink) Old 07-10-2017, 11:37 AM - Thread Starter
New to Overclock.net
Loading Data's Avatar
Join Date: Jul 2017
Posts: 1
Rep: 0
Disclaimer, I am new here, so I'm most likely posting in the wrong section, lol.

If the title was too confusing, I'm asking how I can convert the windows environment variables below into English and then copy the English translation into an output.txt, all using a .BAT file, so my application can read from it. I'm creating an app and I'm trying to setup the files and file system for it (The engine I'm using to make the app is about 3-5 years old and I didn't want to throw money at a new one, so I just stuck with what I had).

What app am I making? Well, I don't know how far in popularity this is gonna get, primarily because most people know how to do this already with MS Paint, but I am making a Windows BSOD Creator. In other words, create your own BSOD, without MS Paint! My app uses the real fonts, colors, and appearances that real Windows BSODs use. So far, in terms of development, everything is going just as planned! I hope my app will be something people will be interested in, and not just a use of free time, lol. I am very interested in it, which is why I wanted to make it.

Here's the code in the batch file.


if not exist "%HOMEDRIVE%\%HOMEPATH%\Downloads\Test" mkdir "%HOMEDRIVE%\%HOMEPATH%\Downloads\Test"
if not exist "%HOMEDRIVE%\%HOMEPATH%\Downloads\Test\Config\" mkdir "%HOMEDRIVE%\%HOMEPATH%\Downloads\Test\Config\"

Homedrive stands for the drive in which Windows is Installed
Homepath stands for the directory of the users current profile

I am wanting to translate that code into English and then copy it to a txt file.
Example: C:/Users/usernamehere/Downloads/Test/Config/Configuration.ini
And then save that to a text file for my application to read from.

All replies are appreciated!
Loading Data is offline  
Sponsored Links
post #2 of 2 (permalink) Old 04-09-2018, 09:44 PM
New to Overclock.net
Trippen Out's Avatar
Join Date: Feb 2006
Location: Pinellas Park, FLorida
Posts: 5,044
Rep: 323 (Unique: 259)

OCN is great. However, I think you will find stackoverflow more suited of those types of questions for better answers.

Now that you know how to display the variable manually. You just need to figure out how to capture and parse them. I would use python for this myself but im bias

Living Under Bridge

Trippen Out is offline  

Quick Reply

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Please enter a password for your user account. Note that passwords are case-sensitive.
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off