I predict 6 pages for this Topic...
Getting closer!
Pasted it into an editor and then saved it as sample.bat in the desktop and call the bat file there from the cmd prompt or sometimes from the windows powershell. Is batch strict with white spaces? Is that why I'm getting this error?
Batch code handles white space well in most of it, but not well at all in other places.
Did you ever say where the files were located? Are they on your desktop?
The fact that you add powershell into this thread (for the first time AFAIK) just insults everyone who has replied,
because you are doing things that you haven't revealed.
If you had to pay for this support then the person getting your munny would need to know every single detail about the files, locations, hard drives or network drives, how they were processed, have copies of the files to test, and know how they were being launched.
They would need access to the machine involved, or a copy of the data trees.
Here we only know what you choose to tell us - and without the information it's like baking a pie with no recipe.