1.

Solve : File not found??

Answer»

Win XP HOME SP.2

Trying to run an Exe file from Command prompt and file not found although its in the C:\Windows\System32\ folder.  Please see the attachment.

Any ideas please?


[recovering disk space -- attachment deleted by admin]Try a space between touch.exe and the /? SWITCH...Thanks Patio, already tried that.  Search finds the file, it can be opened by a hex EDITOR and the hex text shows "This program cannot be run in Dos mode" but that shouldn't make the file not found (it's supposed to be run from a command prompt!!).  The file can be copied without hassle, just don't understand why it cannot be opened.  It cannot be found in Windows Explorer.

Attached is a screenshot of some other attempts.

Thanks again, any other suggestions appreciated.

Edit: Touch.exe is not found in Command.com either. 

[recovering disk space -- attachment deleted by admin]This program cannot be run in Dos mode = Command Prompt doesn't recognize it = form Command Prompt point of view, file doesn't exist.Thank you Broni, that I could understand if Windows would recognise it.   Sounds like what you're saying is that Internal commands will not recognise the file but both Copy and Dir are Internals, why one and not the other?.  The message that the program cannot be run in Dos mode is not displayed on the screen but can be seen when the file is opened in a hex editor.

Quote

Command Prompt doesn't recognize it
Doesn't recognise what?  I understood that Cmd would find any file in the MFT but would not necessarily execute it and that the error message would be displayed by the Exe when an attempt to execute was made.

See the attachment for the displayed error message when an attempt is make to open the file in Win.



[recovering disk space -- attachment deleted by admin]If I understand it correctly, touch.exe can't be executed without a switch (parameter):
http://www.helge.mynetcologne.de/touch/index.htm
Quote
Touch.exe is a Win32 console program. It's actions are controlled by command line parameters.
Quote from: Broni on July 27, 2008, 07:21:55 PM
If I understand it correctly, touch.exe can't be executed without a switch (parameter):
http://www.helge.mynetcologne.de/touch/index.htm
Quote
Touch.exe is a Win32 console program. It's actions are controlled by command line parameters.

My understanding differs from yours.  If no switch is entered then Touch is supposed to list the acceptable switches and syntaxes.  I agree that the actions of Touch are controlled by command line switches (parameters), so is Dir, but that does not explain why the file cannot be found.

However I have found other Exe's which are part of the Reskit and also cannot be found except by Internal commands, most peculiar.   Will have to do a bit more research on this problem.

Again, thank you for your interest.


Try touch /help to access the list of switches...

http://www.helge.mynetcologne.de/touch/index.htmStrongly suggest chkdskRan chkdsk and manufacturer's diagnostic prog without errors.   Dowloaded Reskit again, still get file not found. 

Touch /help also gives file not found.

Got me beaten so I give up till later.

Thanks for the input..Which Resource kit is this ? ? Quote from: patio
Which Resource kit is this ? ?

That's what I was wondering. Touch.exe has a 1993 file date.



Discussion

No Comment Found