使用vb.net Windows应用程序将一堆.pdf文件移动到文件夹中 [英] moving bunch of .pdf files into folders using vb.net windows application

查看:126
本文介绍了使用vb.net Windows应用程序将一堆.pdf文件移动到文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将.pdf文件移动到指定的文件夹中,即,我有这样的文件st-004219-2011103902.pdf这个特定文件,我需要将特定文件夹移动到st-004219 \ indexing,我的文件夹的显示方式类似于st -000001到st-006000,每天我都会得到pdf文件来移动文件夹,每个st-000000文件夹都有一个名为indexing folder的文件夹,该文件夹不仅以st呈现,还将以任何字母开头,例如sp,st,ab,t ,ds,ct .... my pdf文件位于一个名为传入文件夹"的文件夹中.我将所有.pdf文件检索到一个列表框中,但我不知道如何使用按钮将所有内容一次选定.
我需要移动的pdf文件显示在这样的文件夹中,即sp-002419-34247255.pdf,st-000324-243584235.psd,t-003489-38456346.pdf ...等等,

i need to move .pdf files into specified folder, i.e.,i have files like this st-004219-2011103902.pdf this particular file i need to move the particular folder st-004219\indexing,my folders are presented like st-000001 to st-006000, everyday i got pdf files to move folders ,every st-000000 folders have inside one folder called indexing folder, the folders not only presented in st it will start with any alphabets like sp, st ,ab ,t,ds,ct ... like that .my pdf files are located in one folder called incoming folder. i retrieving all .pdf files into one listbox and i don''t know how to move everything at one selection using button.

my pdf files need to move are presented in folder like this, .i.e., sp-002419-34247255.pdf,st-000324-243584235.psd,t-003489-38456346.pdf ... and so on

推荐答案

使用System.IO.File.Move http ://msdn.microsoft.com/en-us/library/system.io.file.move.aspx [
Use System.IO.File.Move, http://msdn.microsoft.com/en-us/library/system.io.file.move.aspx[^].

—SA


这篇关于使用vb.net Windows应用程序将一堆.pdf文件移动到文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆