Path environment variable

  • Thread starter Thread starter cadw
  • Start date Start date
  • Views Views 690
  • Replies Replies 10
  • Join the GBAtemp community: it's free
    • 50% fewer ads
    • Reply alerts
    • Join the discussion
    • Watch & bookmark

cadw

Active Member
Newcomer
Joined
Apr 13, 2011
Messages
25
Reaction score
0
Trophies
0
XP
125
Country
Netherlands
Hello,
I was installing the java JDK and I had to change the path variable, but now I can't build or run .bat files. Does anyone know how to solve this problem???
 
are you sure that nothing that was on defaylt was messed up?

it should look like this (ignore the android one)

E-variable.jpg
 
Check the variable "PATHEXT" for the .BAT extension. You may have accidentally deleted it from there or something like that.
 
Open a command prompt (Press Win+R, then type "cmd" and press enter), and type:

Code:
assoc .bat

It should, in theory (but hopefully not in your case), give this response:

Code:
.bat=batfile

If it does not give this response, type this to fix the issue:

Code:
assoc .bat=batfile

(Please note that I found this within about 30 seconds of Googling...just saying
tongue.gif
)
 
SifJar said:
Open a command prompt (Press Win+R, then type "cmd" and press enter), and type:

Code:
assoc .bat

It should, in theory (but hopefully not in your case), give this response:

Code:
.bat=batfile

If it does not give this response, type this to fix the issue:

Code:
assoc .bat=batfile

(Please note that I found this within about 30 seconds of Googling...just saying
tongue.gif
)
It still doesn't work What I need is , I think, the default PATH variable for windows XP. But it says .bat=batfile!
 
PATH variable won't affect what files can run. It just affects where Windows will look for executable files when you type a filename into a command prompt (i.e. if a .exe is in a folder listed in the PATH, you will not need to type the location of the file, just the file name).

Try downloading the registry fix from here: http://dougknox.com/xp/file_assoc.htm

As for the default XP PATH variable:

QUOTE said:
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths}

from here: http://en.wikipedia.org/wiki/Environment_v...crosoft_Windows
 
SifJar said:
PATH variable won't affect what files can run. It just affects where Windows will look for executable files when you type a filename into a command prompt (i.e. if a .exe is in a folder listed in the PATH, you will not need to type the location of the file, just the file name).

Try downloading the registry fix from here: http://dougknox.com/xp/file_assoc.htm

As for the default XP PATH variable:

QUOTE said:
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths}

from here: http://en.wikipedia.org/wiki/Environment_v...crosoft_Windows
http://pix.gbatemp.net/277662/cmd.PNG
This is what always happens. I bet you can't read it, but it says that it doesn't recognize the "make" function and press any-key to continue. I downloaded the registry fix etc, but it still doesn't work. For the PATH variable, what would be the {plus program paths}?
 
If it only happens for "make", then its not a problem with .bat files.

Quick test: Make a file called "test.bat", then right click it and choose Edit.

It will most likely open in Notepad, copy this into it and save it:

Code:
@echo Hello There
@PAUSE

Then close it and double click it. If it works, the problem isn't with .BAT files, it's just that the folder with the program "make.exe" needs to be in the PATH variable. COMPLETELY different issue.
 
SifJar said:
If it only happens for "make", then its not a problem with .bat files.

Quick test: Make a file called "test.bat", then right click it and choose Edit.

It will most likely open in Notepad, copy this into it and save it:

Code:
@echo Hello There
@PAUSE

Then close it and double click it. If it works, the problem isn't with .BAT files, it's just that the folder with the program "make.exe" needs to be in the PATH variable. COMPLETELY different issue.
Thanks dude it finally works, btw are you coding for the Homebrew Bounty?
 

Site & Scene News

New Hot Discussed User Submitted