I am trying to move some selected files from folder "Install" to folder "Checked".
So when i selected some applications from listbox i use this code to create list:
After i tried to use this code to move selected apps to folder:
But it doesnt work for me...
From Autoplay help i can't get enouth information about file.move action.
By using cmd script i can do that.
I would like to perform these actions exclusively by means of AMS
Can somebody help me please ?
So when i selected some applications from listbox i use this code to create list:
Code:
local tChecked = ListBox.GetChecked("ListBox1", BST_CHECKED); if tChecked then for i = 1, #tChecked do local sFileName = ListBox.GetItemText("ListBox1", tChecked[i]); TextFile.WriteFromString("Install\\checked.txt", sFileName.."\r\n", true); end end
Code:
File.Move("Install\\..sFileName..", "\\Install\\Checked\\", true, true, false, false, nil);
From Autoplay help i can't get enouth information about file.move action.
By using cmd script i can do that.
Code:
set "input=%cd%\Install" set "output=%cd%\Install\Checked" set "list=%cd%\Install\checked.txt" for /f "usebackq tokens=* delims=" %%a in ("%list%") do ( xcopy "%input%\%%a" "%output%\" && del /f /q "%input%\%%a" ) exit
I would like to perform these actions exclusively by means of AMS
Can somebody help me please ?
Comment