Antivoyager Posted March 26 Author Share Posted March 26 13 minutes ago, Andreik said: Exactly as you said: Exactly the way I wanted. I will always help you in any way I can Thank you very much! Link to comment Share on other sites More sharing options...
Antivoyager Posted March 27 Author Share Posted March 27 3 hours ago, Andreik said: In my opinion would be more nice to display this splash before starting the copy process and close it when it's done without any pause in the script. Got it, really better to display it before than later ! Link to comment Share on other sites More sharing options...
Antivoyager Posted March 27 Author Share Posted March 27 (edited) Dear Andreik i need some help, For example after this command: DirCopy($sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index), $sDestinationDir, 1) I would like to add: RunWait($sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index), "\setup.exe") But it doesn't work Setup.exe is an simple sfx archive (sometimes will be usefull to apply some registry keys, .bat scripts and so on... ) We may use this RunWait( "checked folder", "\setup.exe") for each checked folder even setup.exe doesn't exist into folder. if there is no setup, the script will continue without questions.. How can we find the checked folder when we use RunWait command ? Hope you understand my reach English Thank you Edited March 27 by Antivoyager Link to comment Share on other sites More sharing options...
Andreik Posted March 27 Share Posted March 27 (edited) Why is a comma between file path and filename? RunWait($sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index), "\setup.exe") should be RunWait($sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index) & "\setup.exe") Or RunWait("setup.exe", $sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index)) Or if you want to check if setup.exe exists before running $sSetupPath = $sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index) & "\setup.exe" If FileExists($sSetupPath) Then RunWait($sSetupPath) Please read the documentation of the function that you use. Edited March 27 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Antivoyager Posted March 28 Author Share Posted March 28 (edited) 19 hours ago, Andreik said: Or if you want to check if setup.exe exists before running $sSetupPath = $sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index) & "\setup.exe" If FileExists($sSetupPath) Then RunWait($sSetupPath) Realy good, I will use this one abowe! Another question, how can we also add if the setup.exe doesn't exist then we doing DirCopy($sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index), $sDestinationDir, 1) I tried different ways to use If Not FileExists($sSetupPath) Then DirCopy($sSourceDir & '\' & _GUICtrlListView_GetItemText($cList, $Index), $sDestinationDir, 1) but always get errors statement with no matching ... Edited March 28 by Antivoyager 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