Using Automator to copy files from a Windows network
This has been covered before, but the solution didn't work for me, so excuse the mainly copy-and-paste article:
I wrote an automator workflow to copy a chosen file located on a PC on the local network.
Here is the workflow:
Get Specified Servers
Mount Servers
Ask for Finder Items
Copy Finder Items
The workflow executes fine up until the workflow actually finishes copying all the files. The automator complains that the Copy Finder Items errors with the following message:
Can't read directory contents: /Volumes/Files
The other thread suggests choosing "Ignore Input" for the "Ask for Finder Items" action, which I did. But now I have a different error:
Couldn't create: /Users/{my name}/Desktop/filename.xlsx
Any ideas? Thanks!
This has been covered before, but the solution didn't work for me, so excuse the mainly copy-and-paste article:
I wrote an automator workflow to copy a chosen file located on a PC on the local network.
Here is the workflow:
Get Specified Servers
Mount Servers
Ask for Finder Items
Copy Finder Items
The workflow executes fine up until the workflow actually finishes copying all the files. The automator complains that the Copy Finder Items errors with the following message:
Can't read directory contents: /Volumes/Files
The other thread suggests choosing "Ignore Input" for the "Ask for Finder Items" action, which I did. But now I have a different error:
Couldn't create: /Users/{my name}/Desktop/filename.xlsx
Any ideas? Thanks!
Similar Messages
-
How can I use JAVA to copya file from a location to another location?
Hello all,
I am planning to design a web page (let say an HTML has a form that post fields to a jsp page) that allow me to select a file and then copy it to another location like what we see in email attachement.
Is the any related java class that i can use for this matter or ready JavaBean?
Thanks in advance
YahyajspSmartUpload
look for package named com.jspsmart.upload.
Very easy to use to pull a file from a person's pc up to where the form is posted to. You will need to setup your form to type to be multi-part form. Use an input type of file to generate the file browse button. -
Retaining date/time stamp when copying files from a backup network drive
How do I retain the date/time stamp when copying files from a backup such as a external drive or a network drive?
i don't trust MA at all. known to create a lot of problems.
instead, see the green box in this user tip. -
I am experiencing a persistant error -8058 when attempting to copy a file or folder from any windows sharepoints to any other server location or to my desktop or locals. Am I the only one or are the others with the same issue since updating to 10.9?
I have tried the finder plist removal suggestion- unsuccessfulI am fairly certain that would not work for me as that is my usaul manner of mounting shares, smb:// or cif://. The enterprise servers do not automount so I commandK. Yesterday when I was troubleshooting 10.9 issues I had to have tech support unlock my account a dozen or more times. So I'm gonna give it a rest until I see an 10.9 update. In my case I don't think Mavericks is ready for enterprise/business use. I am 1 mac vs 350+ PCs.
Thanks for you help! -
Using robocopy to copy files from a network share over a WinRS command line session
Hello,
Preface: Using server 2008 enterprise.
I can't seem to get robocopy to function over WinRS and I'm not sure where the problem actually lies. Running robocopy locally on the computer does work fine, but as soon as I try to run it through a remote command prompt through the WinRS client or directly with the WinRS client I get an access denied message (error 5).
I've tried using runas while logged into the remote command prompt as well, thinking that it could have been some sort of permissions inheritence issue.
I've checked the permissions on the remote file share, I've even given 'Everyone', 'Anonymous Logon' and the computer's active directory account full control over the folder and the file I'm trying to copy, but still get the access denied error.
I've tried using /COPY:DT since I read that usually resolved error 5 issues.
None of these things have worked.
I'm kind of out of ideas, I've read some blogs of people who have written powershell scripts which use winrm/robocopy so I figure I'm missing something stupid. Or maybe I've stumbled upon a bug?
C:\>robocopy \\192.168.100.1\share c:\test example.exe
ROBOCOPY :: Robust File Copy for Windows
Started : Mon Feb 09 17:35:32 2009
2009/02/09 17:35:32 ERROR 5 (0x00000005) Getting File System Type of Source \\192.168.100.1\share\
Access is denied.
Source - \\192.168.100.1\share\
Dest : c:\test\
Files : example.exe
Options : /COPY:DAT /R:1000000 /W:30
2009/02/09 17:35:32 ERROR 5 (0x00000005) Accessing Source Directory \\192.168.100.1\share\
Access is denied.Yep, I verified permissions on them all :(
To maybe complicate the issue, I looked at the environment variables for myself while logged in locally to the computer and through WinRS and they look to be the same.
EDIT: Out of pure frustration I wrote a quick console application which impersonates the currently logged in user and copies a file from the network share I'm trying to access to the local computer. The application properly impersonates the user - but does not copy the files while it's run through WinRM. When you run the application as a locally logged in user it works just fine.
WinRM must be behaving goofy :(
This is the output of the following application:
C:\Windows\System32>test.exe
Name: domain\loggedinuser
IsAuthenticated: True
User: {GUID}
AuthenticationType: Kerberos
Destination directory doesn't exist, creating new directory..
Undoing impersonation..
No exceptions, no nothing :(
Imports System.IO
Imports System.IO.File
Module Module1
Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext
Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity
Dim cpr As New copyProgress(AddressOf FileCopyProgress)
Dim destinationDir As DirectoryInfo = New DirectoryInfo("c:\destination\")
Private Delegate Function copyProgress(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32
Private Declare Auto Function CopyFile Lib "kernel32.dll" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal lpProgressRoutine As copyProgress, ByVal lpData As Int32, ByVal lpBool As Int32, ByVal dwCopyFlags As Int32) As Int32
Private Function FileCopyProgress(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32
End Function
Private Function FileCopyProgress2(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32
End Function
Sub Main()
Try
currentWindowsIdentity = CType(System.Security.Principal.WindowsIdentity.GetCurrent, System.Security.Principal.WindowsIdentity)
impersonationContext = currentWindowsIdentity.Impersonate()
Console.WriteLine("Name: " & currentWindowsIdentity.Name)
Console.WriteLine("IsAuthenticated: " & currentWindowsIdentity.IsAuthenticated)
Console.WriteLine("User: " & currentWindowsIdentity.User.ToString)
Console.WriteLine("AuthenticationType: " & currentWindowsIdentity.AuthenticationType)
If Not destinationDir.Exists Then
Console.WriteLine("Destination directory doesn't exist, creating new directory..")
destinationDir.Create()
End If
CopyFile(Path.Combine("\\192.168.100.1\share\", "example.exe"), Path.Combine("c:\destination\", "example.exe"), cpr, 0, 0, 0)
Catch ex As Exception
Console.WriteLine(ex.ToString)
Finally
Console.WriteLine("Undoing impersonation..")
impersonationContext.Undo()
End Try
Console.ReadKey()
End Sub
End Module -
Using scp to copy files from remote server to mac from a newbie
Hi am a new poster to this forum and getting (re)acquainted with the unix world using terminal on the Mac. I am part of webteam for a large website run by a nonprofit where I have administrative access. I hope that this forum is the correct venue for my question.
The other day I used terminal tsch to logg onto a remote server where I have admin privaleges. One of the other admins and I were in the process of experimenting with using either rsync or scp to "backup" the server. We are experimenting with different backup strategies over and above those supplied by our web host. After finding out how to open port 22 on my modem and setting services in sharing to allow for remote log on, I logged on to the remote server and ran this command (suggested by another admin):
scp -r -p -v /remotefolder [email protected]:/Users/drktyler/Documents/serverBU/
Unfortunately I had severely underestimated the amount of time it would take to perform scp and needed to terminate the scp job. For example, I only got 100 MB onto my Mac in one hour (normally takes about 6 mintues to download a 100 MB file from the internet) I tried to kill the job by doing:
ctrl -z
ls ps
kill (scp pid #)
This did not work. And I forgot about trying ctrl-c <blush>
I was able to exit my session on the remote server which "exited" the scp job.
Oh, before running scp, I did try rsync and it did not work. Unfortunately, I had not set my terminal session to an unlimited buffer size, so the early part of my session rolled off the terminal screen. This means I have no idea what the error was.
This morning the other admin was performing some backups on the remote server and noticed that there was a an unexplained directory on the remote server named:
mymacuserid
It had what he called some rpms. I am not exactly sure what a rpms cache files are, but I think that rpms has some relatationship to the RPM package manager used by many linux systems. I could not account for how the mymacuserid directory got on the remote server because I did not put it there and my log in id to the remote server bears no resemblance to my Mac user id.
We don't believe that this directory did any harm to the remote server, but I sure as heck would like to know how it got there.
My question is if there was something about my scp command that
(1) created this "temporary" mymacuserid directory on the remote server
(2) did the way I ended the scp job by exiting the terminal mean that this temporary directory was not "cleaned up."?
(3) what other options might have been available to me to kill the job and clean up after the job? ctrl-c while logged onto the remote server? opening up a second terminal window and killing the ssh job?
(4) is scp normally that slow?
My Mac: Mac Mini, 1.66 GHz Intel Core Duo, Memory: 1.5 GB 667 MHz DDR2 SDRAM, Mac OS 10.4.8
Remote server: CPU AuthenticAMD, AMD Athlon(TM) XP 2600+
Version psa v8.1.1_build81070716.12 os_CentOS 4.2
OS Linux 2.6.9-55.0.2.EL {CentOS is built from Red Hat Enterprise Linux}
Respectfully yours,
treehugger from njJ.V. Thanks so much for your very helpful response!
The other admin who was trying scp over the weekend also reported that the job ran very slowly, so I suspect the slow response time may be on the remote server end. I do appreciate knowing that you have gotten 80% of your advertised DSL speed with scp.
Thank-you for being so polite and gentle in your response. No I did not know that if the remote patname has white space in it, that I need to quote the whole path and escape any white space with preceding backslashes as you showed in your rsync example.
Finally, as for the rogue elements being left on the server, I figured out that these rogue elements were left on the server the day before I did the aborted scp job because I had to quit the terminal in the middle of an active rsync job while logged onto the remote terminal. When I went onto the server this morning, I checked the timestamps on the rogue files and the timestamps match up.
The other admin has finally succeeded in doing a full server back-up (in addition to the back-up using the back-up utility provided by our web host). So, for the moment we are in pretty good shape. Of course, I'm not sure that I could replicate what he did. <shrug>
Thanks again. I'm glad I posted on this forum as I have always learned a lot by reading the apple forums I suspect that I will be posting again.
T.H.
P.S. Please forgive me for not including copies of your original message in my reply. There is probably a setting that I need to change. -
I have noticed that when using Tigers disk utility to format an external USB flash drive I only have the choice of FAT ( when formatting for use on a Windows machine ) and not FAT32. I have found that USB FLASH drives formatted as FAT do not always work on Windows machines. Why? How can I use Tiger to format for FAT32?
I think it depends on the size of the Flash Drive as to whether it uses FAT16 or FAT32.
Can you format it FAT32 on the PC?
Other options would be NTFS or Mac OS Extended...
NTFS-3G Stable Read/Write Driver...
http://www.ntfs-3g.org/
MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
http://www.osnews.com/story/16930
MacDrive for the PCs... allows them to Read/Write HFS+...
http://www.mediafour.com/products/macdrive/ -
Hi
I am building a SharePoint hosted app which uses a REST Call to get file details of a file held in a host web library. Ok if want to copy that file to another a library held in another HNSC. Surely this is possible subject to the app manifest permission
set to tenant .
https://msdn.microsoft.com/office/office365/api/files-rest-operations#Folder6
Daniel, WSLReken
Yes it is difficult. I coded up 3 requests in a SharePoint hosted app
1) get file properties
2) readfile ( binarycontent)
3) write file (binarycontent) to library in another HNSC
1- 2 works fine but I am struggling with the 3)
To stop me from despairing ;-( I thought I would modify my app to simply do a local copy ...
However, this not as simple as it looks.....
(BTW this may be better discussed in a new post....)
listurldir = "/appsdev/Marketing Lib;
itemurl = "/Marketing Lib/betterlivingwithoutprogramming.pdf";
filename = "betterlivingwithoutprogramming.pdf";
// Get file to Copy This works with a GET and no Header
var urlGetLocalFile = appweburl +
"/_api/SP.AppContextSite(@target)/web/folders/GetByUrl('" + listurldir + "')/Files/getbyurl('" + filename + "')?@target='" + hostweburl + "'";
executor.executeAsync(
url: urlGetLocalFile,
method: "GET",
success: Function.createDelegate(this, function (data, errorCode, errorMessage) {
// binary data available in data.body
deferred.resolve(data, errorCode, errorMessage);
error: Function.createDelegate(this, function (data, errorCode, errorMessage) {
deferred.reject(data, errorCode, errorMessage);
This works and finds my file ...... ok so far so good lets do a local copy with
CopyTo
localtargetfilepath = "/appsdev/Shared Documents/BeterLivingwithoutanyProgrammingever.pdf"var urlWriteLocalFile = appweburl +
"/_api/SP.AppContextSite(@target)/web/folders/GetByUrl('" + listurldir + "')/Files/getbyurl('" + filename + "')/copyTo(strNewUrl='" + localtargetfilepath + "', bOverWrite=true)?@target='" + hostweburl + "'";
executor.executeAsync(
url: urlWriteLocalFile,
method: "POST",
success: Function.createDelegate(this, function (data, errorCode, errorMessage) {
// binary data available in data.body
deferred.resolve(data, errorCode, errorMessage);
error: Function.createDelegate(this, function (data, errorCode, errorMessage) {
deferred.reject(data, errorCode, errorMessage);
Unfortunately, I can't get passed this error
I have changed the HtpRuntime paramenters as in maxrequestlength and maxurlLength/.
Tried various header combinations with one or more of the following headers
method: "POST",
headers: {
"Accept": "application/json; odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val()
binaryStringResponseBody: true,
However, I simply can't get passed the error
Any ideas anyone?
Daniel, WSL
Freelance consultant -
I want to set up an Automator workflow to shcedule automatic backups of my Photos / document to my server.
Thanks any advice would be helpful
KeithWe've Googled & we've Binged, searched high and low and we still cannot find out about the calander as we don't use Google for anything other than an occasional issues as their privacy issues bother us, even though we have nothing to hide . We don't have Outlook either as it does not come with my Microsoft Windows Teacher & Student.
As for the pictures/videos, most of them came over, but of course the ones I want the mosts didn't transfer from my BlackBerry curve to my iPhone4
But thank you for your help !
If anyone else is familar with this, no disrespect to razmee209 as I appreciate the help he/she has give me and has taken the time to help me, which I have no words to express my full gratitude for the help! -
Unable to Copy File From Terminal Server to Client Share
Hi
For years client have been able to copy files from our Windows 2003 Terminal Server to their local workstation using:
copy myfile \\tsclient\mydrive\myfolder
However we upgraded to Windows 2012 Server R2 and now Windows 7 Pro clients cannot copy files. The copy function creates the file name in their local folder but no content is sent after maybe 20 minutes or so the copy function times out and they get an
error message saying that the application was unable to write to the file. I have tried this function with my Windows 8.1 workstation and the file copies properly and it works fine for older Windows XP clients. Does anyone know why Windows 7 clients
are experiencing this issue.
Thanks
SimonHi Simon,
Initially please use latest RDP version 8.1 for windows 7 and check result.
What’s the file size which you are copying?
Does this happens for all users and on all computers?
You can try below method might resolve your case.
1. Login to remote computer using Remote Desktop (RDP).
2. Open Task Manager in the remote machine
3. Click the "Process" tab
4. Locate a program called "rdpclip.exe"
5. Right click and select "End process" to kill this program
6. Click on "File" menu in the task manager and select "New Task (Run)"
7. Type rdpclip.exe and press the button to start the process.
By killing existing instance of the rdpclip.exe and restarting the program, you can get your copy paste work again in your remote desktop.
Hope it helps!
Thanks.
Dharmesh Solanki
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Copy File from Terminal Server to Workstation Failure
Hi
For years client have been able to copy files from our Windows 2003 Terminal Server to their local workstation using:
copy myfile \\tsclient\mydrive\myfolder
However we upgraded to Windows 2012 Server R2 and now Windows 7 Pro clients cannot copy files. The copy function creates the file name in their local folder but no content is sent after maybe 20 minutes or so the copy function times out and they get
an error message saying that the application was unable to write to the file. I have tried this function with my Windows 8.1 workstation and the file copies properly and it works fine for older Windows XP clients. Does anyone know why Windows 7
clients are experiencing this issue.
Thanks
SimonHi Simon,
The copy command should also work on the Windows 7 clients. Please provide the detailed error message when run the command on the Windows 7 clients.
You could also use robocopy command to achieve this.
Robocopy
https://technet.microsoft.com/en-us/library/cc733145.aspx?f=255&MSPPError=-2147217396
Best Regards,
Mandy
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Time capsule crash when copying files from it
Hi, I'm trying to copy files from a time capsule to a windows 7 pc. When I do that the time capsule crashes. I can copy files from the windows 7 pc to the time capsule without problems. Has anybody got a clue? I just bought the time capsule, so it has the latest versions.
What do you see that you interpret as a Time Capsule crash? You can use AirPort Utility to look at the log file of the Time Capsule. Go into "Manual Setup", then invoke Base Station > Logs and Statistics. There might be a message in the log that helps explain the problem.
-
Using ARD to copy files remotely?
Hi,
I was thinking it is possible to use ARD to copy files from my home imac, when I am in the office using my macbook? Or this can only be done when I am on the same network? Thanks in advance.Should work fine provided you have ARD fully working between the two sites.
-
How can I use my time capsule to save files from my windows PC (Windows 8.1)?
I have been to see the iStore close to where I live but I am frustrated to say that they are no help what so ever. The technical desk there freely admits that they do not how to do it and all they say is "apparently it is easy. Just follow the instructions on screen" which helps me no end!
I have the Time Capsule set up on my mac and want to use part of the disc to save my files from my Windows PC (running Windows 8.1) that is on the same home network.
I have found the apple forums so helpful in the past that I am pinning on my hopes on anyone that can help me via the forum now!Load the airport utility for windows. Sadly the most recent one is old.
http://support.apple.com/kb/dl1547
Although it is for windows 7 it does work on 8 and 8.1 .. tell us if you have problems loading it. Some people find it won't work without using safe mode.
The utility will not help a lot to setup the latest model TC.. it is fine for Gen4 and earlier. But it does load bonjour for windows and a disk access agent.
The TC should run simple names.. Short.. keep them below 10 characters if you can. No spaces and pure alphanumeric.
That includes the base station name and wireless name.
Once all of that is correct, open windows explorer and type in the address bar.
\\TCname or \\TCipaddress where you replace TCname with the new short name or TCipaddress with obviously its actual IP.
You will then get a request for username and password. Username is whatever.. admin will do. Password type in your disk access password.. public by default.
TC is not designed to allow partitions so you cannot partition the TC disk. Create a folder and simply copy and paste your files to the folder.
NOTE:: The TC cannot back itself up. So make sure you do not move files to the TC without having another copy.
NOTE:: The TC does not happily mix TM backups and data.
See http://pondini.org/TM/Home.html For info about TM and the TC.
This area in particular.
Q3 http://pondini.org/TM/Time_Capsule.html
On mixing data and backups. -
Windows 8.1 will not copy files from intranet site.
I am using Windows 8.1 and I am trying to copy files from an Apple Time Capsule disk to a local hard drive. First I got the message box that said "Your Internet security settings suggest that one or more files may be harmful. Do you want to use it
anyway?" and when I said okay nothing would copy. I went into my Internet options and added the Time Capsule disk to my site list in the Local Intranet Zone and reconnected the shared drive. Now I don't get the error box but it doesn't copy
anything either. It does nothing. Any suggestions would be appreciated.
Benjamin Greco Jr.I suggest you to run a malware check..
May be its due to this malware "ZeroAccess rootkit/Sirefef"... What it does is it will block downloading and it will block you from visiting to some site...
Download and transfer this....
Use one scanner at a time
Download hitman pro 3.7 from uninfected pc and transfer to you pc and install (shareware and can be activated for 30 days free)and have a
full system scan.. http://www.surfright.nl/en
alternatively you can use hitmanprokickstart usb bootable
http://www.surfright.nl/en/kickstart
And/or
use malwarebyte downloaded from uninfected pc and transfer to you pc and install and have a full system scan http://www.malwarebytes.org/products/malwarebytes_free/
And/or
use adwcleanerand downloaded from uninfected pc and transfer to you pc and install and ave
a full system scan..http://www.bleepingcomputer.com/download/adwcleaner/dl/125/)
And/or
use Junkware Removal Tool downloaded from uninfected pc and transfer to you pc and install andhave a full system scan
http://www.bleepingcomputer.com/download/junkware-removal-tool/dl/131/
And/or use TDSS Killer downloaded from uninfected pc and transfer to you pc and
install andhave a full system scan..: http://www.bleepingcomputer.com/virus-removal/remove-tdss-tdl3-alureon-rootkit-using-tdsskiller
additional info
If everything fails, you can use offline bootable resccue cd and do a full system scan...
https://support.kaspersky.com/viruses/rescuedisk
http://windows.microsoft.com/en-us/windows/windows-defender-offline-faq
How to create a defender offline bootable cd/pendrive
http://www.pcandtablet.com/windows-8-antivirus-and-security/546/how-to-create-a-windows-defender-offline-usb-stick-to-remove-malware-on-windows-8-a.html
Hetti Arachchige V Aravinda | Network & System Administrator (B.Sc, Microsoft Small Business Specialist, MCP, MCTS, MCSA, MCSE,MCITP, CCNA, CEH, MBCS)
Maybe you are looking for
-
Computer not responding to Graphics Card/Freezes up in Games
Hello All. Recently I've updated my Drivers, and almost everygame I've played has just been freezing after 10 Mins of gameplay. It stay's on the screen for about 2 Mins, then closes off along with the app it was running on (Steam). Before i had u
-
I have just subscribed to iTunes Match, and get the above error message. I have signed out and signed in several times, and still get the same message. Can anyone help with a solution?
-
Service tax process for EHP4 package
Hi sap gurus, I need a detail process of service tax for ehp4. On this level in ecc 6.0 Note 921634 is fully aplicable. Also provide the total gl account required. Warm Regards
-
Max memory, and 1.3 vs 1.4
Hi Guys. I have a windows 2000 computer, with 2Gb of memory, running Sun's JVMs. I'm using JRE 1.4.2_4, and I can only allocate 1.2Gb of memory (With the JVM switches). Any more and I get a 'cannot allocate memory' error. How can I get more memory? I
-
I have a Sony Viao with Windows XP. I am having serious issues with installing iTunes... I have tried installing the Quicktime by itself, turned off the sercuirty stuff and did the deleted the temp folder... I still get 2 error messages 1) Error 1316