Image convert problem

The intent of this code is to allow the user to copy files selected files in the current folder, into a new folder specified by the user, and to resize in the process.
And then, to prompt the user to delete the source files.

The first 2 lines work fine, but nothing happens after that.

What am I missing!?!

Thanks, Greg

@set nf = {dlgstring|Enter Folder Property ID}
createfolder G:\RealEstate\Sales_Reps\photos{$nf}
Image CONVERT HEIGHT=200 WIDTH=266 PRESERVEASPECTRATIO TO =G:\RealEstate\Sales_Reps\photos{$nf}
Delete

Try this:

@set nf = {dlgstring|Enter Folder Property ID} CreateFolder "G:\RealEstate\Sales_Reps\photos\{$nf}" Image CONVERT HEIGHT=200 WIDTH=266 PRESERVEASPECTRATIO TO="G:\RealEstate\Sales_Reps\photos\{$nf}" Delete

That works for me, at least.

If not, try adding @nodeselect at the start:

@nodeselect @set nf = {dlgstring|Enter Folder Property ID} CreateFolder "G:\RealEstate\Sales_Reps\photos\{$nf}" Image CONVERT HEIGHT=200 WIDTH=266 PRESERVEASPECTRATIO TO="G:\RealEstate\Sales_Reps\photos\{$nf}" Delete