Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to ask how can I copy files from PC to MAC using C#. Also my application will create new folder when needed and copy / move files in them
By which technology you want to move files ?
1- Over the network ? using Directory access protocols ?
2- Through Web ?
Each has different aspects. as for network you just need to have access to mac on windows computer and tell them path. using **SYSTEM.IO** name space you can easily copy files from one directory[Windows] to other[MAC] using their path. Window will take care of permissions but be sure the user which you are using to access has write permission to folder where you are copying files.
Through web you might need to implement web programming to read and write each file you post.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm developing a small app in winforms using dotnet 5 to upload files to a container in the azure portal.. by the way it's working fine, but now i'd like to develop a service to upload a folder (not a single file), but cant figure out how to do it. It's not like to upload files. Somehow it's different and I've been looking for it for so long but cant find a solution.
Does anyone have an ideia?
Cheers
If you are trying to upload an entire folder through your service programmatically, note that it is not supported.
Simply, you can create your blob called folder/1.txt for example, and it will work. No need to create a directory. So, to sum it up, you can create a folder like this and start uploading your files in that folder.
Check out Microsoft Azure: How to create sub directory in a blob container for more details.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am wondering is there is anyway for the OS to delete automatically created temp directories.
I am working with an application in C sharp and I create a directory in the temp directory (I get the address with the GetTempPath()), I put a bunch of files in this temp directory.
The problem is, I want that this temp directory to be deleted (with all its content) when the files are no more used (when exactly, I don't care, after logging out or restarting the OS it would be a good solution) in order not to saturate the memory because each time I open a temp directory I open it with a different (random) name, which is necessary in my case. The directory and files still exist after a few days, I checked, so I guess there is something that needs to be done when creating it in order to tell the OS to delete it.
Would it be possible?
thanks,
Josh
Well - one way, would be to check the Delete temporary files that my apps aren't using box in settings (windows 10)
just type in 'storage sense' in the windows search bar.
Also see: https://answers.microsoft.com/en-us/windows/forum/all/storage-sense-configuration-for-deleting-temporary/321616d1-e6a7-413a-8246-28f88f5ecc4e
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am having an Web Application(ASP.NET MVC, C#), in which I have a functionality of uploading an excel which contains image path. So I need to know can I access the image files from the application?
PS: Images and Excel will be in the user system.
You could make the users send the real images within the file instead of sending only the paths. This would potentially generate a huge file to upload, but I don't know you application.
If image is at user location then there is no way you can access it (how insecure it would be if any website can access your image file in your system)
So your will need user to upload image as well inorder to use it
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
When you send an application to someone, using another computer, besides the application itself, do I have to send the Resources File too? And if I am using a DataBase do I have to send the Database.mdf file too? And what else would you have to send to make sure your application works on another computers?
Sorry if this question is a repeated one, but most of the others just ask for a single item, either the Resources or something else. But I would like to know about everything you have to send.
Thanks a lot !
it depends on your approach. i think you have a software with database and... that you want to sell and make it owrk on other users device. you can make you app make a new database on first start. you can include database files if its local and add to user app directory and... it all depends on you packaging method and tool.
or maybe you want let someone continue the project. so you can give other developer a back up .bak format or export database files from sql server management studio and other developer can attach them to the other machine project
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
AFAIK attackers can overwrite files which have CHMOD values 777 on linux servers. Today my web site which created by myself using ASP.NET has been hacked. My Site.master page has been appended with lots of backlinks and there was a folder named as Sayers which has many html files (probably include search keys).
I could easily delete the folder and restore the original Site.master file.
I do not have SQL injection problem. Even if so I would have seen some additions or changes in the records. There is nothing. There are only changed files and added folder.
I have updated my FTP password. I am 100% sure that I do not use a third party extension. All the code is handmade (: So I want to know how to prevent this to be done again. Also what could be the vulnerability about the website. I also want to know if it is a server side problem or my problem.
I am using a hosting company's service. I use FTP (21), not secure.