Re: file.move(_file_,?"D:\01XXXX\") not working
| Newsgroups | gmane.comp.windows.power-pro |
|---|---|
| Message-ID | <[email protected]> |
If it is to tjust product a message if the file is not on the target drive then the following pseudo code is what I had in mind. I am assuming you know how to script; you'll have to debug and check the following:
Command Entry Controls:
Exec
MoreCommandsAsScript
Following in more commands
local targetfolder = ?"D:\01XXXX\"
local targetpath= targetfolder ++ file.nametype(_file_)
file.move(_file_, target)
if (not file.validpath(targetpath))
messagebox("ok topmost". "file.move failed\m"++targetpath, "Error on move")