You are not logged in.
Pages: 1
# First: Check ErrorLevel and set ErrorLevel
> echo %errorLevel%
2
> (call)
> echo %errorLevel%
1
> (call )
> echo %errorLevel%
0
# … now we know to set errorLevel to Zero: (call ) and set to one: (call)
# so we can use "assoc" command:
> assoc .jpg
.jpg=jpgfile
> echo %errorLevel%
1
> ftype jpgfile
Dateityp "jpgfile" nicht gefunden, oder diesem Dateityp wurde kein Öffnen-Befehl zugeordnet.
# my system is german and say me: no file-assoc found
> echo %errorLevel%
2
# can't find an Explanation of this behavior on "ss64.cmd.assoc" and "*.ftype"
# can you help me?
# THANX!
Offline
The file type you are looking for is jpegfile not jpgfile, and thats why it threw an error,
The error codes for these commands don't seem to be documented anywhere, though perhaps we could work them out.
Also the file types can seemingly only be found by digging through the registry, (Windows 7 used to expose them in the file association settings dialogue.)
File associations seem to be one of the most crusty areas in Windows, I get the impression the developers just want to sweep it all under the carpet and discourage users from changing anything.
Offline
Pages: 1