Introduction: How to Create a Variable Like %appdata% to Run in Run

Picture of How to Create a Variable Like %appdata% to Run in Run

Hey guys! My friend was helping me create a %var% variable to search up in start menu (like %appdata%) hit enter and open a folder/program.

Step 1: Creating the Batch File

Picture of Creating the Batch File

Create a new notepad document. name it

tmp.bat or whatever.bat (it dosent really matter) and it should probbaly look like the image i attached that had tmp.bat.

(very short step)

Step 2: Editing the Batch File

Now that you have the batch file, right click it and then click edit, Now you are in notepad, all you need to type now is

setx "variable name" "directory" And then your done.

Step 3: Outro

I hope you liked this, it may be a little rough since this is my first instructable, but i hope you liked it and, have fun!

Comments

tomatoskins (author)2015-06-11

Great info! Thanks for sharing your programming information!

About This Instructable

403views

10favorites

License:

More by Joyesh708S:How to create a variable like %appdata% to run in run
Add instructable to: