Jump to content

Create Folder in C with C#

- - - - -

  • Please log in to reply
4 replies to this topic

#1
areej

areej

    Newbie

  • Members
  • Pip
  • 5 posts
Hi
I'm sorry because my English is very bad ;);)


I want to do Back Up System


Not only raise and download files


But I mean the dates set up files and etc ...

Second and more importantly

I want the user on my site ..When the press of a button... Implants in his computer folder (in Document in C) " Not in the server site."

Then give him a message "The folder name .... Created automatically in your computer .. Place the folder of your project

Whenever the user is logged on ... Look at this folder and raise them inside the folders

Only ^^

I do not know what extent the idea difficulty programmatically ... Can I apply?? Help me

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
1) There are already backup programs for Windows available. This is a lot more complicated than just copying files. You also have to copy the registry, and various other settings, that generally can't be copied while in use.

2) If you're doing this from a website, most browsers are NOT going to let you do that. It would be a massive security hole.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
areej

areej

    Newbie

  • Members
  • Pip
  • 5 posts
Thanks
But I did not understand..;) why this is a security risk??
When the site create Folder in the user's computer that is a security risk?:confused:

Can you explain more?^^

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Think about it: if the user does not interact with the process, you could be saving ANYTHING in the root folder, such as an auto-downloader for a virus. On some versions of Windows, a user-level process isn't even allowed to write to the root folder.

Now, if you want to save it to the user's Documents folder (which may or may not be on C), that's different, and less of a risk. Most browsers, however, still won't allow that without some interaction with the user.

Another thing: what if your user is on a Mac or iPad? What should happen then?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
areej

areej

    Newbie

  • Members
  • Pip
  • 5 posts
Thanks

I understand now^^




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users