directory

How do you open a file folder through a link on website in Firefox and Chrome?

佐手、 提交于 2020-02-03 08:25:28
问题 I'm working on a web application that needs to have a link which opens a documents folder from a file server. The folder can be opened either in a new browser tab or new window, or using the computer's default file browser program (i.e. Windows Explorer). This javascript should do the trick: window.open('file://///fileserver.companyname/public/Documents/','_blank); and this html should also work: <a href="file://///fileserver.companyname/public/Documents/">Open Documents</a> but these both

Linux文件管理

让人想犯罪 __ 提交于 2020-02-03 05:14:17
一 Linux文件管理 Linux中队文件管理的命令主要有:mkdir rmdir mv rm cp touch file stat等命令 创建目录mkdir mkdir [OPTION]... DIRECTORY... [root@MiWiFi-R3-srv testdir]# mkdir /root/dirtest 在/root下创建一个dirtest的目录 常用选项: -p 如果父目录不存在同事创建父目录 -v 显示创建目录的纤细信息 -m 创建目录时同时设置目录的权限 [root@MiWiFi-R3-srv testdir]# mkdir -vpm 755 /root/dirtest/harry 当父目录不存在先创建父目录再创建子目录并设置权限为755 mkdir: created directory ‘/root/dirtest’ mkdir: created directory ‘/root/dirtest/harry’ rmdir删除目录 rmdir [OPTION]... DIRECTORY... [root@MiWiFi-R3-srv testdir]# rmdir /root/dirtest/harry/ 删除一个目录 mv移动文件或给文件重命名 mv [OPTION]... [-T] SOURCE DEST mv [OPTION]... SOURCE...

VBScript to detect today's modified files in a folder (including subfolders inside it)

会有一股神秘感。 提交于 2020-02-02 15:30:09
问题 I need to get all the modified files inside a folder including the subfolders inside it, and copy them to another folder. How can it be done using VBScript or any other way to achieve this? Thanks in advance, Bibhu 回答1: try this (copy files modified less than 24 hrs ago ) Set objFS = CreateObject("Scripting.FileSystemObject") ''# Directory to scan strFolder = "c:\test" Set objFolder = objFS.GetFolder(strFolder) Go( objFolder) Sub Go(objDIR) If objDIR <> "\System Volume Information" Then For

Read Permissions to a directory in C#

江枫思渺然 提交于 2020-02-02 01:24:29
问题 I've noticed if you change the security settings for a particular directory, you can make that folder no longer "browsable" in windows. In particular, changing the "Read" permission for Administrators to "Deny" will make that folder inaccessible. The question I now have, is how do I figure this out in code? I following gets me close, but it still ain't right: /// <summary> /// Takes in a directory and determines if the current user has read access to it (doesn't work for network drives) ///

lucene&solr全文检索_3查询索引

ぃ、小莉子 提交于 2020-02-01 20:46:05
创建完索引之后,我们需要查询。 百度的查询接口及结果如图所示: 具体步骤已经在上个博客中写到,直接上代码:(由于是一个完整的程序,我把创建索引的代码也post上) package come.me.lucene; import static org.junit.jupiter.api.Assertions.*; import java.io.File; import org.apache.commons.io.FileUtils; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.document.Field.Store; import org.apache.lucene.document.LongField; import org.apache.lucene.document.StoredField; import org.apache.lucene.document.TextField; import

csv(Excel)文件转Json

折月煮酒 提交于 2020-02-01 08:22:14
从一个心理学专业转到计算机,虽说两者八竿子打不着,但掐指一算正儿八经学编程已有两个多月,现在终于鼓起勇气写一写自己的博客。本篇写的是第一篇有关编程和unity的文章,希望自己在这道路上坚持走下去,也感谢身边的大神默默的支持。好了,废话不多说。 本篇是关于excel中csv格式的文件转换为json格式。。。 using UnityEngine; using System.Collections; using UnityEditor; using System.IO; using SimpleJSON; public class ExcelToJson{ [MenuItem("ExcelToJson/AutoExcelJson")] static void autoExcelToJson() { string excelFilePath=Application.dataPath+"/Data"; string outJsonDataPath=Application.dataPath+"/Json"; if(!Directory.Exists(excelFilePath)) { Debug.Log("请创建"+excelFilePath+"文件夹,并把Csv文件放入此文件夹中"); return; } string[] allCsvFiles=Directory.GetFiles

apache配置虚拟主机

北慕城南 提交于 2020-02-01 05:52:14
#在httpd.conf 开启 Virtual hosts Include conf/extra/httpd-vhosts.conf #然后在httpd-vhosts.conf 里面配置 #根据ip来匹配 # <VirtualHost 127.0.0.1:80> # DocumentRoot "E:/htdocs" # DirectoryIndex index.html index.htm index.php # <Directory E:/htdocs> # Options FollowSymLinks # AllowOverride None # Order allow,deny # Allow from all # </Directory> # </VirtualHost> #根据端口号来匹配 # <VirtualHost 127.0.0.1:82> # DocumentRoot "E:/htdocs" # DirectoryIndex index.html index.htm index.php # <Directory E:/htdocs> # Options FollowSymLinks # AllowOverride None # Order allow,deny # Allow from all # </Directory> # </VirtualHost>

Java - Difference between dist and deploy folders

↘锁芯ラ 提交于 2020-02-01 03:48:07
问题 Forgive me for a novice question, but what is the difference between the dist and deploy folders? It seems like the same thing - both contains the .jar of the files. However, when you clean and build the project, it looks like only the dist folder is updated. How does the deploy folder get updated? Thanks. 回答1: I will assume that you are using a directory layout similar to what Netbeans IDE creates by default. dist is the folder where your generated archives are stored (so it gets updated

Java - Difference between dist and deploy folders

穿精又带淫゛_ 提交于 2020-02-01 03:48:05
问题 Forgive me for a novice question, but what is the difference between the dist and deploy folders? It seems like the same thing - both contains the .jar of the files. However, when you clean and build the project, it looks like only the dist folder is updated. How does the deploy folder get updated? Thanks. 回答1: I will assume that you are using a directory layout similar to what Netbeans IDE creates by default. dist is the folder where your generated archives are stored (so it gets updated

自动创建脚本定义内容,并实现版本控制

无人久伴 提交于 2020-01-31 15:39:34
#!/bin/bash export LANG=zh_CN.UTF-8 author: zhizhimao <zhizhimao.vip.qq.com> filename: vish version: v.0.0 date:2020-01-30 13:14:00 option: -d 描述 -v 指定版本 describe: 创建脚本添加作者、文件名、版本、日期、描述内容,检查语法是否正确,并实现版本控制自动添加版本号。打开非自定义脚本文件时备份后打开; Version=v.0.0 Date=$(date "+%F %T") create_sh(){ 创建脚本文件 cat > $File << EOF #!/bin/bash export LANG=zh_CN.UTF-8 author: zhizhimao <zhizhimao.vip.qq.com> filename: $Filename version: $Version date:$Date option: describe: $Desc EOF } check(){ until bash -n $File_ver; # 检查语法,语法错误重新打开修改 do read -p "Syntax error; 输入x退出,回车继续编辑!" Str case $Str in x) echo "Exit!" && exit 2;; *