1. hide files or folders
If you don't want some folders or files to be seen by others, you can hide them! The following is the specific method of action.
Step 1: In the My Computer window, right-click the file or folder and choose Properties from the pop-up shortcut menu (see Figure 1, left) to open the File Properties dialog box.
Step 2: Check the "Hide" chec
Linux basics, Linux file and folder permissions, do not have 777 permissions. Online tutorials are too complex?? The プ of the horse flies?..
First, view Linux file permissions
Ls-l (General)LL (Ubuntu applies, equal to Ls-al)
Second, the permission designator
R (Read), W (write), X (Execute)4 (Read), 2 (write), 1 (Execute)
The following examples illustrate:
In order to keep files in a computer XP system clean and organized, and to save disk space, you should often delete files and folders that have not been used. In addition, files and folders that are mistakenly deleted should be restored in a timely manner.
1. delete files or folders
Step 1: Open the folder window of the file or folder you want to delete, select
In rsync synchronization settings, if we do not want to synchronize a folder, we can use exclude to exclude the specified folder. Next, I will introduce you to the specific implementation method.
Very common: I want to synchronize/usr/boot/Under/, but I don't want to copy/proc/tmp folders.
If you want to avoid a specific path, add-exclude directly.
For example,-exclude "proc"
-Exclude 'Sources'
Note: the di
encrypting, simply right-click the file or folder that you want to encrypt. Then select Properties, click the Advanced button on the General tab of the Properties dialog box, select the Encrypt content to protect data check box on the Advanced Properties dialog box, and confirm that you can encrypt the file if the folder
Description: We usually encounter this problem during development. For example, a file or folder under the root directory of the project must be accessed after the user logs in. If the user accesses the file or files in the folder without logon, the user can directly block the redirection to the corresponding login pag
I believe you vpser in the use of VPS will often in different VPS between the backup data or transfer data, most of the time the VPS has installed Nginx or similar Web server, the files will be transferred directly to the Web server folder. Then run on the target machine: wget http://www.vpser.net/testfile.zip. The SCP command comes in handy when the Web server and FTP server are not installed on the VPS or if the method is more cumbersome.First, what
Below is a collection of common ASP tutorials in the development of the file and folder operation functions, there are file creation, deletion and folder deletion, create and other functions.
' File action function: Write filePrivate Sub WriteFile (Filename,text)Dim fso,
Tag: Folder file exists and dir file directory parameter is judged#shell判断文件夹是否存在 # If the folder does not exist, create a folder if [!-D "/myfolder"]; Then Mkdir/myfolderfi#shell determine the file, whether the directory exists
Given a folder in the actual project, there is not much need to get all the files in this folder, more to find or delete a specific file
Import Java.io.File;Import java.util.ArrayList;
public class Filetest {private static arraylistpublic static void Main (string[] args) throws Exception {String FilePath = "D:/xinxi";GetFiles (FilePath);}/** Recursively get all
Free this afternoon, the computer and DSM to clean up the files and information, so want to put a few disks in the computer "map" to the DSM file station, in order to facilitate the removal of data. This "mapping" is through the DSM File Station "load Remote folder" to achieve, as early as the DSM version or 4.** has been successfully used, but do not know is bec
="executable program |*.exe| TXT text |*.txt| picture file |*.jpg| All files |*.*";//types that can be saved if(Openfiledialog1.showdialog () = = DialogResult.OK)//clicked on the open { if(Savefiledialog1.showdialog () = = DialogResult.OK)//Description Point Yes is confirm save{file.copy (Openfiledialog1.filename, Savefiledialog1.filename,true); MessageBox.Show ("Save Complete"); } }#endregion }
);
Ftpclient.setfiletype (Ftpclient.binary_file_type);
Ftpclient.storefile (Srcfile.getname (), FIS);
}else if (srcfile.isdirectory ()) {//As long as it is a folder, create the address of the current folder.
Ftpclient.makedirectory (Ftprepath+file.separator+srcfile.getname ());
file[] files = srcfile.listfil
Linux Delete Folder commandLinux Delete directory is very simple, many people are still accustomed to use rmdir, but once the directory is not empty, it fell into deep distress, now use the RM-RF command.Direct RM is available, but add two parameters-rf that is: RM-RF directory nameDelete directory, file rm (remove)Feature Description: Delete files or directories.Syntax: RM [-dfirv][--help][--version][
")) { $strDirName =$_session["Currdir"]; $strDirName =rtrim ($strDirName, "/"); $listDir =explode ("/", $strDirName); $nBackLength = strlen (End ($listDir)); $strDirName =substr ($strDirName, 0,0-$ Nbacklength); if ($strDirName == ") $strDirName ="/home "; } else $strDirName = "/Home"; BreakThe last-level directory name is obtained by parsing the string and is limited to/home.In addition, the front end can be implemented by jquery to preload the first
1, directly view the permissions of the file or folder command: >>ll or >>ls-l R for Read permissions, W Write permission, x for Execute permissions The first representative file type,-the representative is a normal file, d means that the folder permissions are divided into
C # operations on files and folders Author: Author name Source: this site for sorting release: 12:50:39
1. Get the folder list
/// /// Obtain the file list in the folder/// /// /// /// ///
Public String [] getfilelist (string path, string searchpattern, bool searchchild){// Determine whether a folder exis
Recently, programs are frequently written to deal with file operations. This is relatively weak, so you can find a good article on Baidu. This is the original article portal, I made some changes to the original article to find and delete folders and files, and other functions are implemented in the OS module. Before using this module,
The import method is as follows:
Import OS
1. Obtain the current directory
S = OS. getcwd ()
# The current directory
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.