Windows 7 Tasklist hanging when trying to access remote computer

Ed Mullen

Senior Member
I have a batch file I periodically run to sync my calendar from my desktop PC to my laptop. I last ran it several weeks ago. Went to run it the other day and it hangs on the tasklist command. The following checks to see if the calendar program is running on the laptop, if it is it uses taskkill to kill the process, then copies the file.

tasklist /S Dell /FI "IMAGENAME eq csde.exe" 2>NUL | find /I /N "csde.exe" > NUL
if "%ERRORLEVEL%"=="0" goto kill

I've been Googling and wracking my brain and I can't figure out why this suddenly quit working.

Send machine is Windows 7 Professional, target PC is Windows 7 Home Premium.

I can ping. I can access the remote PC with Windows Explorer.

I can read/write to the remote using Explorer. I can even control the remote using TeamViewer.

I've tried adding the user and password. Nothing works.

Any help greatly appreciated.


Ed
 
Back
Top