I have set-up a SkyDrive account to use as an off-site backup so when I have finished a day's work I copy changed files (eg. from c:\myfiles) to my SkyDrive folder (mapped to S:), which then synchronises the files with the 'cloud' versions. I never modify files directly in S:.
Questions:
1. When a file is updated in the SkyDrive folder, does the synchronisation re-send the whole file, or only the changed parts of the file (ie. is it a full or incremental update?)
2. When I see files in the SkyDrive folder as S:\ in Windows Explorer, are they duplicates of the original files (eg. copied from c:\myfiles) or just a reference to the original for syncing with the 'cloud' versions?
Any help would be appreciated.
Alan Harris-Reid
This is possibly because of the files on drive S: are duplicates. At least that is my experience.
Related
This question already has an answer here:
Download file with today's date in its name from remote server with WinSCP [closed]
(1 answer)
Closed last year.
So everyday I download multiple .zip files from an SFTP server. Also everyday our client uploads new .zip files to this SFTP server, but is not willing to delete the old files.
So I download the same files of the last few days + the files which got uploaded today.
I tried a lot but didn't have any success.
This is my short script right now (which downloads way to many files and eats my storage space up):
open sftp://user:password#sftp-server.com/ -hostkey=*
synchronize local D:/Test\Download /sftp-server/PDF-files/
I couldn't find an option to download files per date, so maybe you can help me further.
Also important, the .zip files are named:
"name_clientname_YYYYMMDD_NumberOfUploads.zip"
I tried to add
*%TIMESTAMP#yyyymmdd%*.zip
at the end of the path of the files, but that didn't work out.
Don't use synchronise if you are deleting the old files from your local copy. Select files based on timestamp instead:
From the winscp site: How do I transfer new/modified files only?
The appropriate get syntax (close to what you tried) seems to be something like:
open sftp://user:password#sftp-server.com/ -hostkey=*
get -filemask="*.zip>today" /remote-folder/* D:\local-folder\
where the filemask constraint is as specified in: https://winscp.net/eng/docs/file_mask#size_time
This question explained what the *.VC.db files are:
What is the *.VC.db file in Visual Studio projects?
Now I would like to know how to specify which folder that those files are put into, or make them hidden.
I regularly make a backup of my source and project files, and I don't want to waste my time and disk space backing up temporary files.
In one folder, I have a few projects that add up to 150 kB, and the two VC.db files are 84 MB.
Isn't there some way to specify where the VC.db files are placed, as we can do with the object files?
I just discovered that the way to set the folder for the *.VC.DB files is the same as for the IPCH files, as described here:
How to change ipch path in Visual Studio 2010
I also specified a folder for the "fallback location" rather than leave it blank, which sends the files to whatever you have set for your %TEMP% folder.
I have a config.txt file in my VS 2013 project. Here is its permissions for ALL APPLICATION PACKAGES :
When I get a setup.exe by compiling an InstallShield LE project inside my solution, and when I run setup.exe, I get this config.txt under Program Files with these permissions :
I want all permissions to be allowed after extracting setup.exe. How can I do that? Thanks
By default the ProgramFiles folder and all subdirectories and files have only Read and Read&Execute permissions for security purposes. So, all files which copies to this folder inherite these permissions.
To change file or folder permissions with help of InstallShield, you could refer to the approtiate documentation. Also it could be achived by launching different tools for working with permissions, like subinacl.exe, icacls.exe, etc with help of custom actions.
But, as mentioned Michael Urman in comments, it's bad idea to place config files with write access under ProgramFiles (and other system folders), because of possible security issues.
So, I also reccomend to refrain from using this logic and store these files in User profile folders.
I have a lot of subdirectories containing a lot of images (millions) on S3. Having the files in these subdirectories has turned out to be a lot of trouble, and since all file names are actually unique, there is no reason why they should reside in subdirectories. So I need to find a fast and scalable way to move all files from the subdirectories into one common directory or alternatively delete the sub directories without deleting the files.
Is there a way to do this?
I'm on ruby, but open to almost anything
I have added a comment to your other question, explaining why S3 does not have folders, but file name prefixes instead (See Amazon AWS IOS SDK: How to list ALL file names in a FOLDER).
With that in mind, you will probably need to use a combination of two S3 API calls in order to achieve what you want: copy a file to a new one (removing the prefix from the file name) and deleting the original. Maybe there is a Ruby S3 SDK or framework out there exposing a rename feature, but under the hood it will likely be a copy/delete.
Related question: Amazon S3 boto: How do you rename a file in a bucket?
I'm creating an AIR app that will load an XML file (that can be edited by the user). It will load certain images specified by the XML file.
I'm currently using File.desktopDirectory.resolvePath() to access the XML file and the images from the desktop.
The AS3 reference for the File class specifies these static properties to access files.
File.applicationStorageDirectory—a storage directory unique to each installed AIR application
File.applicationDirectory—the read-only directory where the application is installed (along with any installed assets)
File.desktopDirectory—the user's desktop directory
File.documentsDirectory—the user's documents directory
File.userDirectory—the user directory
Using these would guarantee that the directories resolve correctly for different OS platforms.
So, is my current approach of just placing the XML file and the images(under subfolders) on the desktop the way to go? The user needs to be able to access the XML file to edit it and the folders to add/remove images. Is there an alternative to doing this? I don't think I can put it in the applicationDirectory, b/c the documentation warns against putting anything there that may change.