open a file with out stating the file type
open a file with out stating the file type
I want to open a file without stating the file type but can't figure out how.
Re: open a file with out stating the file type
Welcome to AHK!
(I don't understand your wish)
Please send with ahk code that you are trying to use (maybe better describe your wish - even if the code does not work.)
(I don't understand your wish)
Please send with ahk code that you are trying to use (maybe better describe your wish - even if the code does not work.)
Re: open a file with out stating the file type
I'm trying to open a file without putting a file type (i.e. .png, .jpg, .exe) but can't figure out how.
Re: open a file with out stating the file type
That sounds similar to advise your Mum calling you coming home without being allowed to use your nameI'm trying to open a file without putting a file type (i.e. .png, .jpg, .exe) but can't figure out how.
Re: open a file with out stating the file type
How?
What type of files do you want to handle? (.png / .txt / .bat / .exe /.ahk or....)
In your AHK code (if you have some), I would see if AHK should handle this file, or if you want any other program to handle this programs / files without file extensions. (But I don't see why or the benefit of not managing file extensions.)
In general, I can say that it is impossible, because the extension says how the file should be handled.
Depending on what you want to do, it may still be possible (with some limits).
eg. image.png or image.jpg or image.exe or image.ahk or Image.txt … - Cannot be handled in the same way
What type of files do you want to handle? (.png / .txt / .bat / .exe /.ahk or....)
In your AHK code (if you have some), I would see if AHK should handle this file, or if you want any other program to handle this programs / files without file extensions. (But I don't see why or the benefit of not managing file extensions.)
In general, I can say that it is impossible, because the extension says how the file should be handled.
Depending on what you want to do, it may still be possible (with some limits).
eg. image.png or image.jpg or image.exe or image.ahk or Image.txt … - Cannot be handled in the same way
Re: open a file with out stating the file type
I use listview , see in column only name without extension, in second hidden column is the fullpath (C1) , click on row > starts fullpath
Code: Select all
C1:="E:\M_MENU\_CSV\M_MUSIC\Distant_drums.mp3"
SplitPath,C1,name, dir, ext, name_no_ext, drive
;-------------------------------
msgbox,name_no_ext=%name_no_ext% ;Distant_drums
msgbox,name=%name% ;Distant_drums.mp3
msgbox,dir=%dir% ;E:\M_MENU\_CSV\M_MUSIC
msgbox,ext=%ext% ;mp3
msgbox,drive=%drive% ;E:
;-------------------------------
exitapp
Who is online
Users browsing this forum: Frogrammer, gongnl and 282 guests