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.

We use remote desktop a lot (XP to Server 2003), and people are having trouble with the clipboard randomly not working. After ensuring that all drives were selected for the remote connection, and rdpclip was killed/restarted, the clipboard works again.

I'm wondering if there's a way I can automate this process for the users so I don't have to manually kill and restart rdpclip every time it stops working for someone. Could I write a batch file that would kill rdpclip and restart it only for the current user? Is there a better solution?

share|improve this question
    
thx, works fine! –  Ice May 10 '11 at 8:07
add comment

3 Answers

up vote 5 down vote accepted
taskkill /f /im rdpclip.exe /fi "username eq %USERNAME%" && rdpclip
share|improve this answer
add comment

To restart it in a .bat:

taskkill /f /im rdpclip.exe /fi "username eq %USERNAME%"
start rdpclip.exe
exit
share|improve this answer
add comment

I would recommend to make it(batch) wait a second between taskkill and start. Without it i faced a problem several times: system had not yet killed the proccess by the time the start command came in. So the new proccess didn't start, and the old got killed. Result: no rdpclip.exe at all =(

cls
taskkill /F /FI "USERNAME eq %username%" /IM rdpclip.exe
ping -n 1 -w 1000 1.1.1.1>nul
start rdpclip.exe

Save as .bat.

share|improve this answer
add comment

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.