Search found 4 matches

by manasrrp
04 Mar 2018 11:04
Forum: DOS Batch Forum
Topic: How can I take output of psloggedon command to a variable
Replies: 6
Views: 5618

Re: How can I take output of psloggedon command to a variable

After creating it to a batch file the output is as below user[1]=PsLoggedon v1.35 - See who's logged on user[2]=Copyright (C) 2000-2016 Mark Russinovich user[3]=Sysinternals - www.sysinternals.com user[4]=Users logged on locally: user[5]=04-03-2018 22:10:42 HOSTPC49\ userID26 user[6]=No one is logge...
by manasrrp
04 Mar 2018 00:06
Forum: DOS Batch Forum
Topic: How can I take output of psloggedon command to a variable
Replies: 6
Views: 5618

Re: How can I take output of psloggedon command to a variable

C:\>psloggedon PsLoggedon v1.35 - See who's logged on Copyright (C) 2000-2016 Mark Russinovich Sysinternals - www.sysinternals.com Users logged on locally: 04-03-2018 10:13:06 HOSTPC49\userID26 No one is logged on via resource shares. -----------------------------------------------------------------...
by manasrrp
03 Mar 2018 08:43
Forum: DOS Batch Forum
Topic: How can I take output of psloggedon command to a variable
Replies: 6
Views: 5618

How can I take output of psloggedon command to a variable

How can I take output of psloggedon command to a variable

for example

set lgnuser= output user name of psloggedon command
by manasrrp
02 Feb 2018 03:24
Forum: DOS Batch Forum
Topic: Copy from previous date folder to current date folder
Replies: 1
Views: 2148

Copy from previous date folder to current date folder

Hi, I want to copy all files & folders from a parent source folder to destination folder of current date inside a batch script such that as below. I had make it partially completed to create the destination folder whose name be such like pre-concatenated string "PNSH" + "current date" xcopy "%source...