7 Replies - 548 Views - Last Post: 03 October 2012 - 09:26 AM Rate Topic: -----

#1 gayanandu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-September 09

Problem on Hiding video files

Posted 02 October 2012 - 12:19 AM

I am new one to C# programming I have developed an application to display different video clips all the clips are put into a folder. when I install another computer using the setup file all these clips are put into a folder inside the program folder. user can see the clips in the folder. my problem is those clips inside the folder should be invisible to the user OR cannot be copies please any one help me....
Is This A Good Question/Topic? 0
  • +

Replies To: Problem on Hiding video files

#2 MrShoes  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 314
  • View blog
  • Posts: 490
  • Joined: 13-June 12

Re: Problem on Hiding video files

Posted 02 October 2012 - 12:34 AM

Invisible through Windows, or invisible through your application?

"when I install another computer using the setup file" - is it just me that doesn't get this? Sorry, don't know what you mean.
Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5676
  • View blog
  • Posts: 12,201
  • Joined: 02-June 10

Re: Problem on Hiding video files

Posted 02 October 2012 - 12:56 AM

Dude, won't happen. Its their computer. They are owner and god of it. If they have set permissions in explorer to show hidden and system files there's nothing you can do.

You would want someone to have that power over a computer that YOU own.
Was This Post Helpful? 2
  • +
  • -

#4 CasiOo  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1424
  • View blog
  • Posts: 3,166
  • Joined: 05-April 11

Re: Problem on Hiding video files

Posted 02 October 2012 - 12:58 AM

You want the files to be hidden?

You can use the File class for that.
File.setAttributes("path", FileAttributes.Hidden);


Was This Post Helpful? 0
  • +
  • -

#5 Curtis Rutland  Icon User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4577
  • View blog
  • Posts: 8,019
  • Joined: 08-June 10

Re: Problem on Hiding video files

Posted 02 October 2012 - 08:41 AM

I think everyone's kinda missed the point. If these videos are resources to the application, they can be embedded as part of the assembly by setting the Build Action property of the file (from the Solution Explorer) to "Embedded Resource". They'll be part of the .exe and not visible in the folder, though it's possible to decompile or deconstruct the .exe with the proper programs.

Of course, now you have to load the videos from the assembly's manifest resource stream, which is doable but not as simple as loading from the file system.
Was This Post Helpful? 3
  • +
  • -

#6 teyrebaz  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 19
  • Joined: 14-January 12

Re: Problem on Hiding video files

Posted 02 October 2012 - 10:46 AM

OR u can upload those videos anywhere and streaming on your app.
Was This Post Helpful? 0
  • +
  • -

#7 Curtis Rutland  Icon User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4577
  • View blog
  • Posts: 8,019
  • Joined: 08-June 10

Re: Problem on Hiding video files

Posted 02 October 2012 - 11:52 AM

Yeah, it's a great idea to burn up people's bandwidth, and rely on online resources that don't have to be online.
Was This Post Helpful? 1
  • +
  • -

#8 teyrebaz  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 19
  • Joined: 14-January 12

Re: Problem on Hiding video files

Posted 03 October 2012 - 09:26 AM

View PostCurtis Rutland, on 02 October 2012 - 11:52 AM, said:

Yeah, it's a great idea to burn up people's bandwidth, and rely on online resources that don't have to be online.


you right.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1