Jump to content

How to copy files in sharedplace


jcaspar
 Share

Recommended Posts

Hello :( !

I'm trying to copy datas in a shared place but my solution doesn't seem to function

should i use another function ?

Thanks for your answers and tricks :mellow:

RunAs("administrateur",@ComputerName,"xxxx",4,@SystemDir,@SW_HIDE)
FileCopy("c:\APPLI\*.*","\\PCPERSO$")
Link to comment
Share on other sites

Hello :( !

I'm trying to copy datas in a shared place but my solution doesn't seem to function

should i use another function ?

Thanks for your answers and tricks :mellow:

RunAs("administrateur",@ComputerName,"xxxx",4,@SystemDir,@SW_HIDE)
 FileCopy("c:\APPLI\*.*","\\PCPERSO$")
Try adding a trailing backslash to your destination.

RunAs("administrateur",@ComputerName,"xxxx",4,@SystemDir,@SW_HIDE)
 FileCopy("c:\APPLI\*.*","\\PCPERSO$\")

Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size]

Link to comment
Share on other sites

Hello :( !

I'm trying to copy datas in a shared place but my solution doesn't seem to function

should i use another function ?

Thanks for your answers and tricks :mellow:

RunAs("administrateur",@ComputerName,"xxxx",4,@SystemDir,@SW_HIDE)
FileCopy("c:\APPLI\*.*","\\PCPERSO$")

Hi there,

Try to and a real share

RunAs("administrateur",@ComputerName,"xxxx",4,@SystemDir,@SW_HIDE)
FileCopy("c:\APPLI\*.*","\\PCPERSO\SHARE$")

And check if the local user that is running the script have write permissions on remote share

Cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...