If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
Homegroup TASKLIST Problem
I have a working Homegroup consisting of a Win 7 Desktop and Win 10
Laptop. I am trying to write a batch to run on the D/T which checks if a given program is running on the L/T. The L/T has the following Run_Check.bat which works as expected when run from a L/T icon with the following command: C;\Users\.........\Run_Check.bat qw @ECHO OFF TASKLIST D:\TL.txt TIMEOUT 5 FINDSTR /i "%1" D:\TL.txt NUL && ECHO %1 Running || ECHO %1 Not Running PAUSE DEL D:\TL.txt EXIT The D/T test.bat follows: :: CALL \\LAPTOP\Users\.........\Run_Check.bat qw :: START "" \\LAPTOP\Users\.........\Run_Check.bat qw PAUSE EXIT Remove the PAUSE from the L/T bat and run the test.bat with either one of the commands shown and the TASK LIST produced is of the D/T and in a D/T folder instead of the desired L/T results. How do I modify the batches so that running test.bat produces L/T info instead of D/T info? -- Zaidy036 |
Ads |
#2
|
|||
|
|||
Homegroup TASKLIST Problem
On 9/03/2016 13:42, Zaidy036 wrote:
I have a working Homegroup consisting of a Win 7 Desktop and Win 10 Laptop. I am trying to write a batch to run on the D/T which checks if a given program is running on the L/T. The L/T has the following Run_Check.bat which works as expected when run from a L/T icon with the following command: C;\Users\.........\Run_Check.bat qw @ECHO OFF TASKLIST D:\TL.txt You set the remote machine and username password in tasklist itself. This is part of the Win 8.1 help. TASKLIST [/S system [/U username [/P [password] |
#3
|
|||
|
|||
Homegroup TASKLIST Problem
On 3/8/2016 9:56 PM, foxidrive wrote:
On 9/03/2016 13:42, Zaidy036 wrote: I have a working Homegroup consisting of a Win 7 Desktop and Win 10 Laptop. I am trying to write a batch to run on the D/T which checks if a given program is running on the L/T. The L/T has the following Run_Check.bat which works as expected when run from a L/T icon with the following command: C;\Users\.........\Run_Check.bat qw @ECHO OFF TASKLIST D:\TL.txt You set the remote machine and username password in tasklist itself. This is part of the Win 8.1 help. TASKLIST [/S system [/U username [/P [password] That is what I tried first in various combinations in the D/T batch like /S LAPTOP and /S \\LAPTOP with and without /U myusername with and without /P mypassword The most that results in is an empty LT.txt on the D/T Trying the above in L/T batch creates empty LT.txt and "Logon failure". |
Thread Tools | |
Display Modes | Rate This Thread |
|
|