#!/bin/bashif[-e$1]then echo "Directory exists" else{ echo "Directory does not exist, whether create 1 is 2 No" read-p " Please enter 1 or 2: "mulu if[ $mulu -eq1] then mkdir$1 elif[ $mulu -eq2] then exit0 fi }fiCommand Directory AddressThis article is from the "Tommy Lin" blog, so be sure to keep this source http://linyingyong.blog.51cto.com/6609544/1794
/** * Write a program to copy all the. java files in the D:\java directory to the D:\jad directory and change the extension of the original file from. java to. jad.
* *: The Listfiles method accepts a FileFilter object, the FileFilter object is the policy object of the filter, and different people provide different filefilter implementations, that is, different filtering strategies are provided.
* * */pa
/ ic_launcher.png mipmap-hdpi/ ic_launcher.png mipmap-xhdpi/ ic_ Launcher.png mipmap-xxhdpi/ ic_launcher.png mipmap-xxxhdpi/ ic_launcher.png # App icon used On Nexus 6 device launcher Choosing to add xxxhdpi versions for the rest of your assets would provide a sharper visual experience on the Nexus 6, but Does increase apk size, so your should make a appropriate decision for your app. res/ drawable-mdpi/ ic_sunny.png drawable-hdpi/ ic_sunny
/ ic_launcher.png mipmap-hdpi/ ic_launcher.png mipmap-xhdpi/ ic_launcher.png mipmap-xxhdpi/ ic_launcher.png mipmap-xxxhdpi/ ic_launcher.png # App icon used on Nexus 6 device launcherChoosing to add xxxhdpi versions for the rest of your assets would provide a sharper visual experience on the Nexus 6, but Does increase apk size, so your should make a appropriate decision for your app.res/ drawable-mdpi/ ic_sunny.png drawable-hdpi/ ic_sunny.png
/ ic_launcher.png # App icon used on Nexus 6 device launcherChoosing to add xxxhdpi versions for the rest of your assets would provide a sharper visual experience on the Nexus 6, but Does increase apk size, so your should make a appropriate decision for your app.res/ drawable-mdpi/ ic_sunny.png drawable-hdpi/ ic_sunny.png drawable-xhdpi/ ic_sunny.png drawable-xxhdpi/ # Fall back to these if xxxhdpi versions aren’t available ic_sunny.png drawable-xxxhdp
On GitHub, I saw some laravel5 demon, and found that many people didn't use the service directory.
Reply content:
On GitHub, I saw some laravel5 demon, and found that many people didn't use the service directory.
It's very detailed here.
Http://laravel.com/docs/5.0/structure
Is it because of all the tutorials I've seen? O (╯-╰) o
A joke.
Laravel 4 ERA This Services folder is built on its
The ext directory is not generated in the php5.2.8 installation directory, I choose to install it all
There's no extension=php_mysql.dll in php.ini, Extension=php_mysqli.dll these things.
Then after the smooth installation of MySQL, in this case these two can be configured, why the lack of these things?
------Solution--------------------
Even the database is definitely not possible. Learn the words sugges
Because the computer is bad can only hear the sound! Wait for the video to be sent to fillUID 0-65535Normal Users: 1-60000System users:1-499Login User:ResearcherTo add a user groupGroupadd-g 521-r AdmindAdd user group, genus Group, shell, affiliate groupUseradd-r admin-u 520-g 521-d/home/centos/admin/-s/bin/bash-g 0View the UID of the owning userId-u Admin520Owning group:Id-g Admin521Affiliated groups:Id-g Admin521 0 500Add Password:passwd AdminPassword: adminHere's the problem: no permissions!c
' I wrote a function that traverses the directory and the files in the directory,
%>
function Bianli (path)
Set Fso=server. CreateObject ("Scripting.FileSystemObject")
On Error Resume Next
Set OBJFOLDER=FSO. GetFolder (PATH)
Set Objsubfolders=objfolder.subfolders
For each objsubfolder in Objsubfolders
Nowpath=path + "\" + objsubfolder.name
Response.Write Nowpath
Set Obj
The project needs to write a function that traverses all the files in the specified directory, and the subdirectories in that directory are traversed. Output The property information of the file and store it.
Think of the need, is not a ls-al command, to achieve the relevant properties of the good, plus a traversal OK.
In the process of the project, it is easy to manipulate, using JSON format storage, but
'-------------------------
'--check if the directory exists
'----------------------
Function Checkdir (ByVal folderpath)
Dim fso
Set FSO = Server.CreateObject ("Scripting.FileSystemObject")
If FSO. FolderExists (Server.MapPath (folderpath)) Then
' Existence
Checkdir = True
Else
' does not exist
Checkdir = False
End If
Set FSO = Nothing
End Function
'-------------------------
'--Create a directory
'--------
String Server.MapPath (String path)Returns the physical file path corresponding to the specified virtual path on the Web server.server.mappath (request.servervariables["Path_info"])server.mappath ("/")server.mappath ("")server.mappath (".")server.mappath (".. /")server.mappath ("..") Page.Request.ApplicationPathThe results of the above code are as follows:c:/inetpub/wwwroot/englishclub/manage/webform1.aspx£c:/inetpub/wwwroot/c:/inetpub/wwwroot/englishclub/managec:/inetpub/ww
To determine if a directory exists and create a directory:
testwhetherthedirexist cstringm_dir; if (M_dir. Right (1) == "//") m_dir=m_dir. Left (M_dir. GetLength ()-1); if (GetFileAttributes (m_dir) ==file_attribute_directory) return ture; else createalldirectory (m_dir); //functioncreatealldirectory//recursivefunction void Createalldirectory (Cstringdir) {if (Dir.right (1) == "//") Dir =dir.left (Dir.g
Steps:
1. Traverse Directory and subdirectories
2. Use Scandir to determine whether the directory is empty, empty, and use rmdir to delete it.
Using a shell is a lot simpler:
Find target folder-mindepth 1-depth-empty-type d-exec rm-r {} \;
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/PHP/
Label:After the database sql2008 installed, regardless of backup or restore, can only see the C drive, manually enter the path, the error is as follows: when attempting to open or create a physical file ' d:\ database \db.mdf ', the creation file encounters operating system error 5 (Access denied. )Workaround:In all Programs-sql Server 2008-Configuration Tools-"SQL Server Configuration Manager", click on "SQL Server 2008 Services", right key ' properties '--' login tab ', built-in account select
First of all to talk about my thinking, to copy a directory of all the files to another directory, we do not know what the directory structure is, and do not know how many layers of the directory, the number of files, so we would like to use the loop, for! But we do not know how many layers, so the cycle can not meet o
Steps1Get the path to the SD cardFile root =environment.getexternalstoragedirectory ();2Determine the path to the file to be writtenString path =root.getabsolutepath () + "/test2" + "/TEST3";3and turn the path into file.File file =new file (path);4 Creating a DirectoryFile.mkdir ();5 write the specified file in the specified directory aboveFile File1 = new file (file, "Test.png");Be sure to pay attention to the difference between path and file, and mu
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.