一个文件夹遍历工具

网站目录遍历软件 网站目录遍历软件 扫描 遍历网站 参看服务器类型 数据库类型 立即下载
using System;
using System.IO;

namespace csmyDir
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string baseDir;
			if (args.Length != 1) {
				Console.WriteLine ("Usage: myDir ");
				return;
			}
			baseDir = args [0];
			myDir (baseDir);
		}


		public static void myDir(string strBaseDir)
		{
			Int16 i;
			DirectoryInfo di;
			DirectoryInfo[] diA;
			FileInfo[] fiA;

			di = new DirectoryInfo (strBaseDir);

			fiA = new FileInfo[0];
			diA = new DirectoryInfo[0];

			Console.WriteLine ();
			Console.WriteLine ("myDir::Base->" + strBaseDir);

			try {
				fiA = di.GetFiles ();
				diA = di.GetDirectories ();
			} catch (Exception ex) {
				string msg;
				msg = ex.Message;
				Console.Write ("myDir::Bad->");
				Console.Write (strBaseDir);
				Console.Write (",Msg->");
				Console.Write (msg);
				Console.WriteLine ();
			}
				
			for (i = 0; i < fiA.Length; i++) {
				Console.Write ("myDir::Name->");
				Console.Write (fiA [i].FullName);
				Console.Write (",");
				Console.Write ("Size->" + fiA [i].Length.ToString () + ",");
				Console.Write ("Crea->" + fiA [i].CreationTime+",");
				Console.Write ("Last->" + fiA [i].LastWriteTime);
				Console.WriteLine ();
			}

			for (i = 0; i < diA.Length; i++) {
				Console.Write ("myDir::");
				Console.Write ("Name->"+diA[i].FullName+",");
				Console.Write ("Size->Dir,");
				Console.Write ("Crea->" + diA[i].CreationTime+",");
				Console.Write ("Last->" + diA[i].LastWriteTime);
				Console.WriteLine();
				myDir (diA [i].FullName);
			}
		}
	}
}

输出格式如下:

myDir::Name->D:\Program Files\Windows NT\Pinball\SOUND999.WAV,Size->6742,Crea->2
010/5/26 23:34:44,Last->2008/4/30 0:00:00
myDir::Name->D:\Program Files\Windows NT\Pinball\table.bmp,Size->339178,Crea->20
10/5/26 23:34:44,Last->2008/4/30 0:00:00
myDir::Name->D:\Program Files\Windows NT\Pinball\wavemix.inf,Size->2687,Crea->20
10/5/26 23:34:44,Last->2008/4/30 0:00:00
myDir::Name->D:\Program Files\WindowsUpdate,Size->Dir,Crea->2010/5/26 23:37:13,L
ast->2010/5/26 23:37:14
myDir::Base->D:\Program Files\WindowsUpdate
myDir::Name->D:\qycache,Size->Dir,Crea->2015/8/30 18:01:38,Last->2015/8/30 18:01
:38
myDir::Base->D:\qycache
myDir::Name->D:\qycache\iqiyi.pgf,Size->720896,Crea->2015/8/30 18:01:38,Last->20
15/8/30 18:01:44
myDir::Name->D:\System Volume Information,Size->Dir,Crea->2015/5/5 23:16:38,Last
->2015/5/5 23:21:08
myDir::Base->D:\System Volume Information
myDir::Bad->D:\System Volume Information,Msg->对路径“D:\System Volume Informati
on”的访问被拒绝。
D:\>

命令行:myDir <基目录>
格式:程序名::属性名称->属性内容,属性名称->属性内容,...

超级内存遍历工具 立即下载

相关推荐

游戏数据遍历工具V1.3 完美中文版

游戏数据遍历工具V1.3

探索Web目录遍历利器:DirSearch

探索Web目录遍历利器:DirSearch 去发现同类优质开源项目:https://gitcode.com/ 在网络安全和渗透测试领域,了解网站的文件结构和未公开资源是至关重要的。 是一个强大的Python工具,专为自动化目录扫描和潜在漏洞发现而设计。这个项目由Mauro Soria开发,可帮助安全研究员、开发者和系统管理员快速找到公开或未授权的Web目录。 项目简介 DirSearch是一个轻量...

gitblog_00025的博客 1028

网站文件夹目录遍历

python3.6编写,网站目录遍历程序,可以扫描目标网站所有的文件和文件夹,目录遍历爬虫

如何使用CrawlBox遍历爆破Web主机目录

CrawlBox是一款功能强大的Web主机目录遍历与爆破工具,在该工具的帮助下,广大研究人员可以轻松对目标Web主机/站点执行目录遍历,并以此来检测Web服务器的安全性。由于该工具基于Python 3开发,因此我们首先需要在本地设备上安装并配置好Python 3环境。该工具兼容Python 2.7.6和Python 3.8+环境。-v, --version:显示工具版本信息和退出;-d DELAY:设置每次请求之间的延迟间隔时间;-h, --help:显示工具帮助信息和退出;本项目的开发与发布遵循。

MachineGunJoe666 464

FPGA之全数字锁相环(DPLL)

1. 数字锁相环的基本原理和组成 1.1 锁相环(PLL)的简介 锁相环最开始并不是用在数字电路中,而是模拟短路中。对于模拟电路中的锁相环,大家可以参考这篇文章稍微看一下,数字和模拟只是实现的方法不同,但是原理、步骤还是共同的。关于模拟PLL。可以参考一片文章: http://www.sohu.com/a/190569594_464086 首先在学习数字锁相环之前,我们应该先了解什么是锁相环?锁相...

DBLLLLLLLL的博客 5万+

PX4笔记系列(二)vtol_att_control中的tiltrotor解析

update_vtol_state() 注释:采用两段切换的简单逻辑来进行过渡 当切换过渡开关后,飞机将会开始倾转动力,逐渐加速,当飞机获得足够速度后动力将会完全打到向前的位置。对于过渡返回阶段动力则是简单地倾转回来。 如果(不在向前过渡指令下): 当前vtol飞行模式: 1、旋翼模式 无操作 2、固定翼模式 令vtol飞行模式切换到过渡返回模式 3、P1过渡模式 进入过渡失败安全返回至旋翼模式 4、P2过渡模式 进入过渡失败安全返回至旋翼模式 5、过渡返回模式 记录过渡返回时间=当前时间-过渡开始

hypersonicss的博客 1884

目录遍历和文件读取/下载

目录遍历和文件读取/下载

qq_39511050的博客 1181

Fluent基于低氧舱气体交换仿真(氮气与空气混合)

一、背景概述 模拟低氧舱充氮气和排除混合气体的过程,假设注入95%的氮气,舱内原有气体为空气,压力为标准大气压,温度为300K。观察气体注入过程中,舱内平均氮气和氧气浓度的变化。 二、Fluent设置 Setup 1、General type选择压力基 绝对速度 瞬态 重力勾选 2、Model 能量方程开启 组分运输开启,设置方法如下: 选择后OK,view就会变成Edit,点击Edit。然后再次点击Edit。 将组分中的非氮气氧气和空气的气体移除,右边选项需要将空气放在最后一位。 3、Materi

qq_35535616的博客 1万+

c# 遍历文件夹深度_C# 入门级实战 编写一个文件路径检索工具

0. 前言这是对C# 基础系列的一个总结,现在我们利用之前学到的知识做一个小小的工具来给我们使用。如果有看过IO篇的小伙伴,应该有印象。当时我提过一个场景描述,我们在平时使用系统的时候,经常会为了找某个文件的位置而烦恼。那么我们现在尝试写一个控制台程序来帮助我们找文件的具体位置。1. 分析好,大家应该初步了解了需求内容。然后让我们来做一个简单的需求分析:简单分析一下需求包括哪些功能点规划各个功能点...

weixin_32095133的博客 240

大数据ZooKeeper(一):ZooKeeper基本知识

Zookeeper是一个分布式协调服务的开源框架。主要用来解决分布式集群中应用系统的一致性问题。ZooKeeper本质上是一个。

Lansonli(蓝深李)的博客 3154

RK3588 MPP,RGA,DRM,QT之RGA

RK3588多路视频采用RGA来进行混合成一帧

dreamliweiming的博客 4270

一个简单的遍历查询指定文件夹的文件,找出漏掉的文件的工具

利用python编制一个简单的遍历查询指定文件夹的文件,找出漏掉的文件的工具。

qq_42922616的博客 264

图解联合概率密度、边缘概率密度、条件概率密度之间的关系

简要图解联合概率密度、边缘概率密度、条件概率密度之间的关系

一个搬运知识的笨小孩 2万+

python小工具——遍历指定文件夹将指定文件放入其每一个子文件夹

这段代码创建了一个简单的图形用户界面,其中包含选择文件和选择文件夹的按钮,以及一个用于显示结果的标签。当用户选择文件和文件夹后,点击"放置文件"按钮将会将指定的文件放入每一个子文件夹中。替换为保存代码的文件名。执行此命令后,将生成一个可执行文件,可以将其分发给其他人使用。遍历指定文件夹将指定文件放入其每一个子文件夹。我将使用Python的。库来创建图形用户界面(GUI),并使用。库将代码打包为可执行文件(exe)。

WY_记录 386

048、NPU的批处理(Batching):提高吞吐量的技巧

摘要: NPU批处理通过合并多个输入样本提升计算效率,但需注意硬件特性与数据布局。关键点包括:1) 批处理引擎需填充对齐,非2的幂次可能降低性能;2) 访存开销分摊是主要收益,但DDR带宽可能成为瓶颈;3) 内存需连续且对齐,排列格式(NHWC/NCHW)因NPU而异;4) 动态批处理灵活但性能损失10-20%;5) 批处理可能放大量化误差。调优需实测硬件限制,平衡吞吐与延迟,并考虑功耗影响。批处理对小模型收益有限,适合大模型优化。

m0_50546716的博客 33

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

基于java swing的文件遍历工具

    IT从业人员的电脑往往是一团乱麻,常常需要遍历文件夹搜索指定格式的文件。这里使用JAVAswing技术,设计开发一款文件遍历工具,涉及到文件夹遍历,GridBagConstraints布局管理器的使用,多线程,以及表格构建JTable的使用。首先我们定义了GridBagConstraints的子类GBC,只是为了调用GridBagConstraints时代码更美观和整洁。GBC子类的实现摘...

qq_20694641的博客 592

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

java文件夹遍历小工具

文件夹遍历在程序中经常用到, 写了个小程序, 免得每次都重新写, 太麻烦了! /** * */ package com.qefee.tool.io; import java.io.File; import java.io.IOException; import java.util.LinkedList; import com.qefee.tool.io.command.File

aotian16的专栏 1225

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

python 遍历指定文件夹,删除指定文件以及空文件夹

写了一小工具,功能和简介在代码块里 #__Author:PHvan #date: 2019/12/3 # 工具功能: # 遍历指定文件夹,留下需要的文件(使用后缀名识别),并且删除空文件夹 # 随后删除指定文件夹。 # 水平较低,不足之处请多指出 import os import sys import shutil def fileFilter(dirpath): #...

weixin_43124630的博客 1644

C# 递归遍历文件夹下所有文件夹和文件

private static List<DirectoryInfo> directoryInfosList; private static List<FileInfo> fileInfosList; /// <summary> /// 遍历文件及文件夹根目录 /// </summary> /// <param name="rootPath">根文件夹目录</param> /// &lt.

weixin_42266035的博客 1638

java之文件夹遍历

使用java实现文件的便利其实很简单应为java已经在File对象中提供了list()方法,使用这个方法我们可以很容易的获取此文件夹的下一层文件目录 但是对于文件的遍历还是有些不方便 而且在创建文件夹目录树时还是很不便的 今天分享一下我的文件遍历工具 Util: public class TravaseringFolder { public TravaseringFolder()

gudujohn的博客 535

【开发】删除空文件夹的小工具

目标:指定文件夹,遍历文件夹下所有文件夹,将空文件夹删除。

uncompleted code —— 代码片段 555

遍历文件夹目录

遍历指定文件夹下的所有目录(不包括子目录)和文件,写一个遍历目录方法的测试类FileUtils:package cn.hcnu.edu; import java.io.File; import java.io.IOException; public class FileUtils { //遍历打印dir下所有文件和文件夹的名字,为static方法方便在另一个测试类中调用 public

eson的博客 434

Java把同一个文件夹下的不同文件夹打成一个.zip格式的包

package com.wms.core.utils.ziputils; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.zip.CRC32; impor

sjw_peak的博客 931

遍历文件夹内的文件(我们到底能走多远系列2)

我们到底能走多远系列(2) 遍历指定路径下的文件,文件和文件夹需要区分。 为了把文件名和是否为文件夹记录下来,实现一个model package web.method.file.model; public class FileModel { // 是否为文件夹 private boolean isDirectory; // 文件...

weixin_34396902的博客 120

python ftp遍历文件夹_Python FTP两个文件夹间的同步实例代码

具体代码如下所示:# -*- coding: utf-8 -*-'''''''ftp自动检测源文件夹的更新,将源文件夹更新的内容拷贝到目标文件夹中使用树的层序遍历算法,支持深度目录拷贝'''import osfrom ftplib import FTPimport os,sys,string,datetime,timeimport shutilimport socketclass MyUpdate...

weixin_39862716的博客 198
上一篇: 带有进度显示的文件拷贝模块
下一篇: 解决树莓派2 HDMI输出的闪屏问题
harriszhuang
博客等级 码龄16年 13粉丝 45原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值