Hi, Jason,
I'm sorry; I don't know the code. But I do know how to move files.
I'm not sure why you are moving them individually. Using DOS, for example, you would move them in a bunch by using a wildcard, such as *.jpg, which would refer to "everything" that was a .jpg in that folder.
Using Windows, you would just drag the whole bunch of them at once. You could use EDIT and SELECT ALL, or else you could use your mouse with SHIFT for one contiguous bunch of files, or your mouse with CONTROL for your selection of individual files that were not necessarily together, but which had others you didn't want amongst them.
F2 is your shortcut key to rename any file or any highlighted group of files. If you press F2 and then press your HOME button, you ensure the file name is no longer highlighted, so you can modify an existing name, such as in changing "xJason" to "Jason". If you had a whole column of files highlighted and you pressed F2, you could rename them as a batch, incrementally:
Jason
Jason (1)
Jason (2)
Jason (3)
and so on. But that is renaming. I'm just mentioning it because it's pretty similar to the way you move files around.
File manipulation is vastly superior in XP than in Vista. In Vista it is slower, and you have to be careful to use the right mouse button or even to have both folders in question displayed side by side. Even so, it is still pretty straightforward in Vista.
From Windows 3.1 to Vista, however, you can always move, erase, rename, or copy any groups of files you wish from any location to any other location, without ever having to deal with files individually.
As well, you can also use freeware programs to do more sophisticated work; they include quite a few "rename" programs as well as programs which identify duplicate files in batches for you. They include, just as examples of a couple of good ones:
http://www.herve-thouzard.com/modules/wfsection/article.php?articleid=1
and
http://www.bigbangenterprises.de/en/doublekiller/
Perhaps you know all that (I'm sorry if I misinterpreted what you needed, in that case) and you are looking for exactly what you said. I would use a batch file in that case, but the good folk here know tons more than I do about making programs, so let's leave it to them to give you better information.