748 questions
Advice
0
votes
2
replies
54
views
Get cmd file for copying Files
i need to make cmd file that copying "Merge.txt" from the same path directory of cmd file to "D:\StackFlow\"
Note: i want to copy that file whenever i changed the directory source
1
vote
1
answer
101
views
Powershell copy-item replaced a directory with a file
I'm using a command similar to the one below to copy a file to a directory:
copy-item 'C:\\some\\source\\directory\filename.txt' -Destination 'T:\some\destination\dir'
C:\ is a local disk. T:\ is a ...
0
votes
0
answers
55
views
Python shutil.copy, I want to only delete the original file only after I make sure the new file is copied, is it overstressful for the HDD?
Background, I am going to recompress 20 million (or 20TB) image files with cjpegli. A new temp file will be created first (probably on a RAMDISK), the filesizes compared, and only when compression ...
1
vote
1
answer
58
views
Access denied on write a file in wwwroot folder by ASP.NET Core
I try to upload a file to a website (wwwroot folder) using this code:
string folderPath = Path.Combine(_env.WebRootPath, "Attach", persianDate);
bool folderExists = Directory.Exists(...
0
votes
1
answer
188
views
TypeError: mode must be int32 or null/undefined in Node JS issue when connecting to mongodb
Below is the Node.js project
api
swagger.yaml - having visual representation of the API and its documentation
controllers
entityApi.js file - APIs - create,delete,list,patch api
service
...
0
votes
1
answer
293
views
TypeError: SSHHook.__init__() got an unexpected keyword argument 'host_proxy_cmd' while using SFTPToGCSOperator in airflow
I'm currently working on transferring files from SFTP to Google Cloud using the SFTPToGCSOperator in Apache Airflow. I’ve set up a connection in the Airflow UI, and the credentials work perfectly when ...
-1
votes
1
answer
149
views
How to automate "Retry" on error when copying a file with the Windows Explorer COM model?
I'm automating specific copy operations (that can't be done via normal filesystem copy) with Windows Explorer COM:
import pythoncom
from win32comext.shell import shell
fo = pythoncom.CoCreateInstance(...
0
votes
2
answers
68
views
Copying an excel file and immediately launching a userform within the new file
I have code to present the user with a simple userform with 2 textboxes. It then copies an excel file to a specific location on the server and names it appropriately per the user inputs. That part all ...
1
vote
0
answers
122
views
write syscall with mmaped buffer
I work with large files and as a result of development I had to copy large files (about 10 gigabytes) in C code.
In this regard, the question arose: how effective is the combination of map()+write() (...
0
votes
1
answer
95
views
Adding a CustomAction with Binary to copy file
When someone upgrades to the newer version of the software, I want to copy the file (UpgradeScripts.sql) and paste it in the ProgramFiles/Pharm/Database folder on the installed PC. I am using Wix ...
1
vote
1
answer
218
views
Jenkins Pipeline - sshPut - Copy all files and folders
I want to copy all files and folders from current directory to Windows machine. Is there anyway to do this using sshPut command?
sshPut remote: remote, filterRegex: '.*', from: './', into: 'D:\DATA'
...
0
votes
1
answer
278
views
GetFile doesn't work with files which names contain of special characters
I have a VBA macro that loops through the files in a specified path, chooses the file with the newest date and writes the path of the file into a variable "FileToCopy".
Unfortunately if the ...
1
vote
0
answers
38
views
Issues with Setting Alternate Data Streams (ADS) in VB.NET for a Windows Service
I am developing a Windows Service in VB.NET that copies files and directories from one location to another. To avoid copying the same files multiple times, I am using Alternate Data Streams (ADS) to ...
0
votes
0
answers
92
views
Use Colab to copy / rename Google Drive files
I have created 3 google sides templates (Z_WRx1_x.gslides,Z_WRx2_x.gslides,Z_WRx3_x.gslides). I want to make copies of them for several chapters in a book.
I've mounted Google Drive, but cannot get ...
0
votes
1
answer
153
views
Copy HyperVM Iotedge docker container offline files into Local Drive
I'm having a Windows 10 host with Hyper-V Linux VM having IOT EdgeAgent and EdgeHub modules installed.
I have provided storageFolder mount to EdgeAgent & Hub to store offline files at var/iotedge/...