Jump to content

shellexecute printer shortcuts


Vaeb
 Share

Recommended Posts

Hello everybody

I have a script to execute printer shortcuts.

Unfortunatly it tells me that I didnt enter the correct parameters.

And it shows me exact the right link.

Why dont this function work?

Is it a bug?

Func shellexe()
    $Array = _FileListToArray("C:\Documents and Settings\tmuller\Desktop\printershortcuts\", '*.*' , 1)
    If Not IsArray($Array) Then MsgBox(16, 'error', 'kein Array')
    For $i = 1 To $Array[0]
        ConsoleWrite("C:\Documents and Settings\tmuller\Desktop\printershortcuts\" & $Array[$i] & @CRLF)
        ShellExecute("C:\Documents and Settings\tmuller\Desktop\printershortcuts\" & $Array[$i])
    Next
    Exit
EndFunc

Greets

Vaeb

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...