Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have 2 computers. Computer 1 (running NT4) has PPViewer, a PowerPoint show, and BatchFile1. Computer 2 (running W2K) has BatchFile2.
BatchFile2 runs Pskill to stop the ppview32 process on Computer 1, then Psexec to start BatchFile1 on Computer 1. BatchFile1 deletes the current show from the hard drive, maps a network drive, copies new show, disconnects network drive, and starts new show.
If I sit at Computer 1 (local admin rights) and run BatchFile1, it works great. If I sit at Computer 2 (domain admin rights) & run BatchFile2, it terminates the process successfully but says that the remote batch file exited with error code 0. Looking at Computer 1, the PP show is no longer visibly running, the file was not updated, but ppview32 is running (according to Task Manager).
Any suggestions? (I've tried using psexec "-c" switch... didn't work.) File codes listed below. Thanks!
Trish
BatchFile2:
@ECHO OFF
pskill \\Computer1 -u localadmin -p password PPVIEW32.exe
psexec \\Computer1 -u localadmin -p password c:\BatchFile1.batBatchFile1:
@ECHO OFF
NET USE P: \\server\dir /user:domainadmin password
DEL C:\MONITOR.PPS
COPY P:\MONITOR.PPS C:\*.*
NET USE P: /DELETE
START C:\MONITOR.PPS

Got an answer to my own question... in case it helps anyone in the future.
I adjusted BatchFile1 to simply read:
@ECHO OFF
start c:\monitor.ppsBatchFile2 was changed to read:
@ECHO OFF
pskill \\Computer1 -u localadmin -p password PPVIEW32.exe
NET USE Z: \\remotecomputer\c$ /user:localadmin password
DEL Z:\MONITOR.PPS
COPY P:\MONITOR.PPS Z:\*.*
NET USE Z: /DELETE
psexec \\Computer1 -u localadmin -p password -i c:\monitor.pps

![]() |
restoring c:\winnt\loader...
|
getting rid of windows nt...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |