Morrison Posted September 28, 2008 Share Posted September 28, 2008 Hi! I´m trying to create a script for the program Nandub. I want to mark several Videofiles and with rightklick in menu starting Nandub. But I dont know how to copy selected file names to string! Can anyone help me? Link to comment Share on other sites More sharing options...
bluelamp Posted September 28, 2008 Share Posted September 28, 2008 Where are you marking the files ? In Explorer ? Link to comment Share on other sites More sharing options...
Morrison Posted September 28, 2008 Author Share Posted September 28, 2008 Yawp! Link to comment Share on other sites More sharing options...
bluelamp Posted September 28, 2008 Share Posted September 28, 2008 (edited) I do not think this will work, but i am not sure You should create a gui with an edit where you can drop the files. And a button to start nandub, thats much easier than what you want. Edited September 28, 2008 by bluelamp Link to comment Share on other sites More sharing options...
Morrison Posted September 28, 2008 Author Share Posted September 28, 2008 Hmm, k.. Otherwise, I think, the script must run permanently in backround to recognize.. ..and file extensions must be registered to script. I´ll try on thx! Link to comment Share on other sites More sharing options...
bluelamp Posted September 28, 2008 Share Posted September 28, 2008 You could also use a fileopendialog like this: Opt("MustDeclareVars",1) Const $FILTER = "avi (*.avi)" Dim $files,$splitted $files = FileOpenDialog("title","",$FILTER) If @error == 1 Then Exit EndIf $splitted = StringSplit($files,"|") If $splitted[0] == 1 Then ; path+filename is in $splitted[1] Else For $i=1 To $splitted[0] Step 1 ; path is in $splitted[1] ; filename is in $splitted[$i] Next EndIf 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