New
#11
Just for grins I would log off, then log back on. Something is really weird if you can see the files in Explorer but dir command cannot see them. I don't think I've heard this one before.
Just for grins I would log off, then log back on. Something is really weird if you can see the files in Explorer but dir command cannot see them. I don't think I've heard this one before.
Ha! How embarrassing. My intellectual and command line prowess is scaring even me. :) Let me try that again.
dir /a someFile.jar: returns expected results (file size, name)
dir /a someFile.cmd: returns expected results (file size, name)
I'm checking out for the day soon but I will reboot again tomorrow morning. I agree - this is very strange. I've never seen behavior quite like this before.
Process Monitor might give a clue if you can compare the results with a working computer or perhaps another user profile on the same computer.
The output of the .cmd script clearly changes upon altering a file it reads/uses, and that's a clear indication that the script is indeed alive and running. It's more presumable that the error message, "system cannot find the path specified", is being thrown by the script itself, and not from the command interpreter.
Logan, have you considered creating and running a .cmd file that will Echo something like "Hello World"? Check if that works.
Rubbish.
I found the problem, though the behavior I've seen doesn't really seem like the cause would result in the types of errors I was seeing. Regardless, it looks like the JAVA_HOME was - unbeknownst to me, being reset in a batch file. So the java.exe could never be found. I fixed this problem and all works as expected now.
Thanks everyone. You've all been exceptionally helpful and the turn around time and quality of your responses has been unprecedented.
What do you see if you enter dir by itself?
Also, boot to Safe Mode or Safe Mode with Networking and try.
Apparently along the way they fixed this and I didn't notice. But it was true for years. That is why you saw command lines like .\mybatch.cmd to force the current directory search. But I did check for dot in my Path. It is not there. But it did find stuff in the current directory.Pyprohly said:
If anyone knows how many years it took them to fix it I would be curious. I know when I started with MSDOS 3.1 you had to add the dot to the path or type .\something.exe or the complete path to the file.
I am on Windows 8.0.
I haven't noticed much difference in that in the Command Prompt window, just that there will be some things DOS that are not available in the Command Prompt on WinXP and later. I started with MS-DOS in '92 with Win3.1.I know when I started with MSDOS 3.1 you had to add the dot to the path or type .\something.exe or the complete path to the file.
I am on Windows 8.0.
You say you are using Win8.0 and your System Specs shows Win7. I strongly suggest you Update to Win8.1 [free from the Store] as the touted Win10 Upgrade won't be free for Win8.0, only for Win7 w/SP1 and Win8.1.