Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am automating a script which includes:

copy \\192.168.0.200\exportfiles\customersbysalesperson.csv %USERPROFILE%\Documents

The customer responded to me saying:

The PCO session A command prompt screen comes up. It says "The syntax of the command is incorrect. Press any key to return." I hit return and the screen goes blue and then returns to menu. Nothing shows up in my Docs.

I have tested in on my Windows Vista 32 bit and it works okay. I don't know what version of Windows they are running. Looking into that information now. Would this work in 64-bit versions of Windows?

PCO is PC Organizer (described briefly at Using the Start PC Command (STRPCCMD) in Host On-Demand), it is a way to run PC commands on the user's PC from the IBM i. In my day job, we use it to automatically download CSV files that the IBM i generates so the user can just go into their personal documents location to make it easier for them. This question probably starts to flow into other SE sites, thus why I kept it so simple to begin with.

I guess it's back the drawing board as to what is happening.

share|improve this question
1  
This question is a bit trivial. You mention PCO. From a bit of Googling, it seems like it might be related to an IBM WebSphere software product. Can you be a bit more specific about the situation here? –  Ben Richards Feb 2 '12 at 5:30
    
I added more detail. Feel free to move the question if it no longer works on this site. –  Mike Wills Feb 2 '12 at 14:30
    
If the username (and hence %USERPROFILE%) has a space in it, that command won't work. –  Harry Johnston Feb 2 '12 at 22:37
    
@HarryJohnston Make that an answer. That makes the most sense to me. I am going to try adding double quotes around it to see if that works. –  Mike Wills Feb 3 '12 at 14:20

1 Answer 1

up vote 6 down vote accepted

It does:

enter image description here

Your problem lies elsewhere.

share|improve this answer
    
Thanks, I don't have anything 64-bit to try it. I seen some sites say that old DOS commands didn't work. This just proves them wrong. –  Mike Wills Feb 2 '12 at 14:16
    
I guess technically, this is the answer to my question... –  Mike Wills Feb 2 '12 at 14:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.