PowerShell and CMD

385 pts.
Tags:
CMD+POWERSHELL
PowerShell
Powershell commands
I need a little and fast help in some commands in cmd and PowerShell: copy, delete, list processes, list services, show connected computers, users, shared folder.

Software/Hardware used:
SOFT-CMD

Answer Wiki

Thanks. We'll let you know when a new response is added.

So, what is your question?
If you are trying to copy files here is a script that will do it if the file paths already exist. This script is provided as is and with no warranty.
$path = “path to source files”

$path1 = “path to destination”

$files = ls $path 

foreach($file in $files)

{

copy-Item $path\$file  $path1\$file

if you need anything else Powershell relatd let me know:

colin@dbyay.com

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • secOfficer
    i have tried the COPY command many times,but it did not work...I NEED TO DO A COPY FROM THE DRIVE C TO ANOTHER DRIVE D ?
    385 pointsBadges:
    report
  • TomLiotta
    And what did the COPY command look like? And what happened? Was there an error message? If there was, what was the message? -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following