Tag Archives: files
Create custom configuration files in CakePHP 3

1. Create new file into folder config/ 2. Name it whatever you like: myconf.php 3. Add your code: return […

Modify files and directories attributes through cmd

Attrib displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters,…

Modify access control lists on specified files through cmd

Icacls displays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified…

How to Encrypt Files/Folders using TrueCrypt

TrueCrypt is software for establishing and maintaining an on-the-fly-encrypted volume (data storage device). On-the-fly encryption means that data is automatically…

Hide hidden files, system files and extensions with C

void HideThemAll(){ HKEY hkey; DWORD dwType, dwSize; DWORD lpData;   if(RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"), 0, KEY_WRITE, &hkey) == ERROR_SUCCESS){ dwType = REG_DWORD;…

Hide hidden files, system files and extensions with Java

void HideThemAll(){ try { Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 2 /f"); Runtime.getRuntime().exec("reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t…

Scan the integrity of all protected Windows 7 system files

Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then…

Append files to zip file with C#

Open an existing zip file and append files with C# and DotNetZip library. public void AppendFile(String Filename, Zipfilename){ if (File.Exists(Zipfilename))…

Rename multiple files at once

1. Locate the files you want to rename 2. Place them in the same folder 3. Select all the files…

List files and their properties

List all files and their properties for a given folder in C#. public void ListFiles() try { String[] files =…

Next Page