Questions tagged [filecopy]

17 questions
1
vote
1 answer

Queue File Copy Operation using C# Queue

I'm trying to create a file copy application. I have a BackgroudWorker doing the work and it works fine so far. How it works, I have a form, Source and Destination Folder fields and a Copy button. The Copy button triggers the Copy operation using…
Chris
  • 27
  • 7
1
vote
0 answers

VBA FileCopy "freezes" form

Actually I have coded the following macro based on FileCopy method. 'MyObject copy function: Public Function OutputFile(ByVal SrcPath As String, ByVal TrgPath As String) As Boolean If pDoesFileExist(SrcPath) Then '<= Internal private function…
0
votes
1 answer

C# Console project. How do i repeat 3 messages during file.copy action

FYI this is my 1st ever C# Project so forgive me any shortcomings This is my current code is.. if (File.Exists(InstallFolder + StrFilename)) { Console.WriteLine("\r\nSQS App Found"); …
John G
  • 1
  • 4
0
votes
0 answers

Why is macro stopped when triggered from another workbook that is closed after macro start

I am trying to do autobackup macro and I'm using FileCopy function. For that the workbook for backup must be closed or opened read-only (win permission). My thought was to use another workbook "autosave-handler" to run macro to close backuping…
Kraapt
  • 1
  • 2
0
votes
1 answer

Files.copy() in Java throws java.nio.file.NoSuchFileException

I'm trying to read a MultiPartFile. The File is converted into an input stream and stored in a temporary location to be uploaded to S3. The Files.copy() function is throwing the exception and I can't figure out the issue. InputStream inputStream =…
Aditya K
  • 47
  • 7
0
votes
0 answers

ADF Copy Files and store meta data

I'm new to ADF but know a few things about copying data from source to destination like files etc. My requirement is to copy files from source to destination and while doing this activity , i want to store the current file's metadata like (filename…
bharathN
  • 11
  • 3
0
votes
0 answers

Rsync from local linux to remote windows server

I am trying to copy files from local Linux server to remote windows file server using rysnc and sshpass but getting error code rsync --rsh='/usr/bin/sshpass -p 'password' ssh -p 139 -o StrictHostKeyChecking=no -l user' /x/y/z/ user@x.x.x.x:/a/b/c/…
khushi
  • 1
  • 7
0
votes
0 answers

multithreaded file copying

I wrote a c++ code to multithreaded copying a file to another directory in linux. but doesn't work(just it made an empty file in directory). I don't know what's the problem? I think my tread has no right access to write in the shared file. but don't…
Zahra
  • 1
  • 2
0
votes
1 answer

vba wscript.shell copy file from folder to another folder based on cell path or filename

I want to do it with vba wscript.shell because copying files is faster and I want to copy files based on path or filename in excel cell based on the selection in column "E" and output the destination folder using "msoFileDialogFolderPicker" I have…
roy
  • 693
  • 2
  • 11
0
votes
1 answer

Copy file from folder to another folder with specific file name from textbox

I'm trying to create a copy button for files with this specific function: When I write in the textbox for example "KL5050" and then press the copy button, I want to copy the file KL5050 from a specific folder and paste it to another specific folder…
fjleon
  • 5
  • 2
0
votes
1 answer

export generated excel variable to real excel file

this is how I generated Excel variable: Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application(); Microsoft.Office.Interop.Excel.Workbook excelworkBook; Microsoft.Office.Interop.Excel.Worksheet…
MHD
  • 25
  • 9
0
votes
1 answer

c# copy file from textbox to selected directory

I'm working with c# on wpf and running into a problem where I select some files and their filenames go into my my 'filespicked' textbox. I then have a button that is supposed to copy the files, the same ones that were selected in the textbox, to…
0
votes
2 answers

System.IO.FileNotFoundException for shared printer

I have got this exception System.IO.FileNotFoundException: ''\DESKTOP-4RSBKAU\GC420t' file not found.' while trying to execute the below code in vb.net FileCopy("C:\Users\odeni\Documents\kairos\ada dispensing\ADASoft\label\etkdeneme3.prn",…
odslr
  • 3
  • 2
0
votes
0 answers

Powershell : File Copy : If File name contains special characters then not able to copy

Windows 10 64 BIT Scenario: copy files in a directory and subdirectory to the destination directory. File Type: Only pdf Issue: When the file name has special characters not able to copy Tried below code not working #Get all files and not the…
Nash
  • 99
  • 2
  • 9
0
votes
1 answer

VBA FileCopy inside a loop fails after one successful copy; Problem: How to Close files before next use?

.................................................................................................................................................................. Late-breaking news... P.P.S. I just read that FileSystem.FileCopy is better than just…
DSlomer64
  • 4,234
  • 4
  • 53
  • 88
1
2