Vaeb Posted October 24, 2007 Share Posted October 24, 2007 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 I <3 it:http://www.autoitscript.com/forum/index.php?showtopic=69912http://www.autoitscript.com/forum/index.php?showtopic=69914http://www.autoitscript.com/forum/index.php?showtopic=69911 Link to comment Share on other sites More sharing options...
weaponx Posted October 24, 2007 Share Posted October 24, 2007 What kind of files are in this folder? "C:\Documents and Settings\tmuller\Desktop\printershortcuts\" Link to comment Share on other sites More sharing options...
Vaeb Posted October 24, 2007 Author Share Posted October 24, 2007 As i already said, in this folder are shortcuts (*.lnk). I <3 it:http://www.autoitscript.com/forum/index.php?showtopic=69912http://www.autoitscript.com/forum/index.php?showtopic=69914http://www.autoitscript.com/forum/index.php?showtopic=69911 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now