Jump to content

Files Marked In Explorer


Recommended Posts

? Im not too sure what your asking....

Ok, my english is not so good.

I will try ist again.

1.)

I open the windows explorer and select one file.

Now I want to get the path and filename of this selected file.

2.)

I open the windows explorer and select more then one files.

Now I want to get the path and filenames of the selected files.

I hope you know what I mean.

:-)

greetings

Wolke

Link to comment
Share on other sites

HI,

FileOpenDialog() returns all the files you´ve selected.

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

HI,

FileOpenDialog() returns all the files you´ve selected.

So long,

Mega

Hi,

that's right, but so I have to open an Autoitscript before I seclect the files,

But the next step after selecting, should be start an Autoitscript by rightklick in the windows explorer Context menue.

I won´t start a autoitscript before, but after right klick in the Contextmenue.

greetings

Wolke

Link to comment
Share on other sites

This example will do 1 file being sent to your compiled converter.

; Check for known incoming parameters
If $CMDLINE[0] Then
    Select
        Case $CMDLINE[1] = '/register'
            RegWrite('HKCU\Software\Classes\*\shell\Convert File\Command', '', 'Reg_sz', '"' & @ScriptFullPath & '" "%1"')
            MsgBox(0, @ScriptName, 'Registered with Shell')
            Exit
        Case $CMDLINE[1] = '/unregister'
            RegDelete('HKCU\Software\Classes\*\shell\Convert File')
            MsgBox(0, @ScriptName, 'UnRegistered with Shell')
            Exit
    EndSelect
Else
    Exit 1
EndIf

; Show parameter selected in explorer
MsgBox(0, 'Convert File', 'Commandline = ' & $CMDLINE[1])

Exit

; Prevent 2nd instance
Func OnAutoItStart()
    If UBound(ProcessList(@ScriptName)) > 2 Then Exit
EndFunc

Use CompiledName.exe /register to add to registry.

Use CompiledName.exe /unregister to remove from registry.

:)

Link to comment
Share on other sites

This example will do 1 file being sent to your compiled converter.

; Check for known incoming parameters
If $CMDLINE[0] Then
....
With this, you opend my eyes. But now, I decide to go another way.

Now, I know if I using "drag & drop" to an CompiledName.exe within the CompiledName.exe can use the filenames by an ARRAY ($CMDLINE).

This is an Programmfeature whitch I don´t know before. Now I can write a loop to "convert" my dropped files - It's working.

:)

Her a simple eg.

#include <Array.au3>
_ArrayDisplay($CMDLINE,"")

If I copied the CompiledName.exe into the "SEND TO" dir of the current Windows Userprofile, I can "send" selected Files by using the "SEND TO" commant in the windows-explorer-right-click-context-menue.

Do you know how i can "registed" ist, so I'll become a direct entry in the windows-explorer-rigt-click-context-menue ?

greetings

WOLKE

Edited by wolkenloser
Link to comment
Share on other sites

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...