A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Homegroup TASKLIST Problem



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old March 9th 16, 02:42 AM posted to alt.msdos.batch.nt,alt.windows7.general,alt.comp.os.windows-10
Zaidy036[_5_]
external usenet poster
 
Posts: 427
Default 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  
Old March 9th 16, 02:56 AM posted to alt.msdos.batch.nt,alt.windows7.general,alt.comp.os.windows-10
foxidrive[_3_]
external usenet poster
 
Posts: 11
Default 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  
Old March 9th 16, 04:08 AM posted to alt.msdos.batch.nt,alt.windows7.general,alt.comp.os.windows-10
Zaidy036[_5_]
external usenet poster
 
Posts: 427
Default 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
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 08:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.