open a file with out stating the file type

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Zeppy
Posts: 2
Joined: 31 May 2020, 02:59

open a file with out stating the file type

31 May 2020, 03:04

I want to open a file without stating the file type but can't figure out how.
Albireo
Posts: 1753
Joined: 16 Oct 2013, 13:53

Re: open a file with out stating the file type

31 May 2020, 06:25

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.)
Zeppy
Posts: 2
Joined: 31 May 2020, 02:59

Re: open a file with out stating the file type

31 May 2020, 22:56

Albireo wrote:
31 May 2020, 06:25
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'm trying to open a file without putting a file type (i.e. .png, .jpg, .exe) but can't figure out how.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: open a file with out stating the file type

01 Jun 2020, 02:34

I'm trying to open a file without putting a file type (i.e. .png, .jpg, .exe) but can't figure out how.
That sounds similar to advise your Mum calling you coming home without being allowed to use your name :wtf:
Albireo
Posts: 1753
Joined: 16 Oct 2013, 13:53

Re: open a file with out stating the file type

01 Jun 2020, 02:45

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
garry
Posts: 3764
Joined: 22 Dec 2013, 12:50

Re: open a file with out stating the file type

01 Jun 2020, 06:02

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Frogrammer, gongnl and 282 guests