Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

File.Move - how can i fix that problem?

$
0
0
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:
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
After i tried to use this code to move selected apps to folder:

Code:
File.Move("Install\\..sFileName..", "\\Install\\Checked\\", true, true, false, false, nil);
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.
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 ?

Viewing all articles
Browse latest Browse all 2105

Trending Articles