Avatar of R W
R WFlag for United States of America

asked on 

psexec assistance, parse error

Whats wrong with this? Command echo f|xcopy "\\server\client\connection.RDP" "C:\Users\Public\Desktop\connection.RDP" works fine if you run it by itself.

Pass it through psexec I get Parse Error
Connecting to STC701...
Starting PsExec service on STC701...
Connecting with PsExec service on STC701...
Starting cmd on STC701...
cmd exited on STC701 with error code 4.

@ECHO ON

set controlfile=computers.txt


FOR /F %%L IN (%controlfile%) DO (
  SET "line=%%L"
  psexec \\%%L cmd /c "echo f|xcopy "\\server\client\connection.RDP" "C:\Users\Public\Desktop\connection.RDP"
) >> allpcsresults.txt 2>&1

Open in new window

Windows BatchWindows 7

Avatar of undefined
Last Comment
R W
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of R W
R W
Flag of United States of America image

ASKER

Thank you
Windows 7
Windows 7

Windows 7 is an operating system from Microsoft. Features include multi-touch support, a redesigned Windows Shell with a new taskbar, referred to as the Superbar, a home networking system called HomeGroup, and performance improvements.

48K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo