[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

psexec copying files

Posted on 2014-04-25
2
Medium Priority
?
561 Views
Last Modified: 2014-04-25
HI: stergium,qlemo and gurutc very kindly helped me set up a remote execution of a batch file. I This is great and I was wondering if psexec does more:
I am wanting to copy a file now, to the local directory of the server.
Does psexec allow me to copy a file from r:\data\deliveries\mapper.csv to c:\mapsuploader\mapper.csv, if the R drive is the same for pc and server, and a file of that name already exists (ie overwrite)?
Thanks!
0
Comment
Question by:ClaytonGlass
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 800 total points
ID: 40022250
No; psexec will only copy the program to be executed to the remote machine.
But nothing keeps you from using a batch script to first copy the file from your client and then run psexec:
@echo off
setlocal
copy R:\data\deliveries\mapper.csv \\Server\C$\mapsuploader\mapper.csv
psexec \\Server -h C:\mapsuploader\mapsuploader.exe C:\mapsuploader\mapper.csv

Open in new window

0
 

Author Closing Comment

by:ClaytonGlass
ID: 40022259
Thank you!
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question