In Focus
C# Corner Mumbai Chapter: Learn Windows Presentation Foundation (WPF) with CMUG
Jabalpur Chapter Meet July 13: Register Now
Chandigarh Chapter: Developers Day on 29 June 2013
Delhi Chapter Hands On June 22: Limited Seats Register Now
Email :
Password :
Remember me?
Forgot password
Contribute
An Article
A Blog
A News
A Video
A Link
An Interview Question
Ask a Question
TECHNOLOGIES
.NET 4.5
Chapters
JavaScript, CSS
SharePoint 2010
Web Development
.NET Assemblies
Coding Best Practices
JQuery
SharePoint 2013
Web Services in C#
ADO.NET in C#
Current Affairs
JSP
Silverlight with C#
Windows 8
AJAX in C#
Databases & DBA
Leadership
Smart Devices
Windows Azure
Android Programming
Design & Architecture
Learn .NET
SQL
Windows Controls C#
Articles C#
Exception Handling C#
LightSwitch 2012
SQL Server 2012
Windows Forms C#
ASP.NET Controls in C#
Expression Studio
LINQ
Testing
Windows Phone 8
ASP.NET MVC with C#
Graphics Design
Mobile & Embedded
TypeScript
Windows Server 2012
ASP.NET Programming
How do I
Office 2013
Visual C#
Windows Store Apps
BizTalk Server
HTML 5
OOP/OOD
Visual Studio .NET
Workflow Foundation in C#
C# Language
Internet & Web
Operating Systems
Visual Studio 2010
WPF
C# Tutorials
iPhone/iPad
PHP
Visual Studio 2012
XAML
C, C++, MFC
Java
Products
WCF with C#
XML
Career Advice
Java and .NET
Project Management
Request a new Category
|
View All
ANSWERS
BLOGS
VIDEOS
INTERVIEWS
BOOKS
LINKS
NEWS
CHAPTERS
CAREER ADVICE
iOS 7 beta: Testers warned when using uncert ...
Design Simple Logo with help of Expression D ...
Credit Card Payment in ASP.Net using Stripe.com
Send Email in HTML Format using SQL database ...
Waiting Message in Window Application using C#
Merging Several Rows into a Single Row in SQ ...
Why Developers Should Read News
Get Values from Client Side to Server Side u ...
Crop Image in ASP.Net using Script
Internals of C# Events
Blog
382
97
Multiple File Transfer One Location To Another Location VB.Net
Posted by
Amit Patel
in
Blogs
|
Visual Basic .NET
on
Oct 22, 2012
This Code for change file location to any another location.
Tweet
1564
0
0
Multiple File Transfer One Location To Another Location VB.Net
This Code for change file location to any another location.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
On Error Resume Next
Dim FSO, SourceFolder, OrderFiles, SourcePath, DestinationPath, FolderName
Dim Counter, CounterLimit
FSO = CreateObject("Scripting.FileSystemObject")
SourcePath = "D:\SplitImage\"
DestinationPath = "D:\SplitImage\test"
'set the folder in that we have to search the files
SourceFolder = FSO.GetFolder(SourcePath)
'get all the Files into the variable OrderFiles
OrderFiles = SourceFolder.Files
'File not Exist then File Creation
If Not FSO.FolderExists(DestinationPath) Then
FolderName = FSO.CreateFolder(DestinationPath)
End If
'Set the counter limit to the number of files that we want to transfer at one go.
CounterLimit = 50
Counter = 1
'Loop for transfer files one by one
For Each Orderfile In OrderFiles
If Counter > CounterLimit Then
Exit For
End If
FSO.MoveFile(SourcePath & "\" & Orderfile.Name, DestinationPath & "\")
Counter = CInt(Counter) + 1
Next
End Sub
This Feature is Sponsored By
.NET Diagramming framework designed for creating advanced solutions
Stop Service Running on Remote C..
Sorting and reversing an array in VB.NET
comments
View Previous Comments
of
COMMENT USING
PREMIUM SPONSORS
Nevron
Nevron Software is a global leader in component based data visualization technology for a diverse range of Microsoft centric platforms. Nevron Data Visualization components are used by many companies, educational and government organizations around the world.
More Blogs from this Blogger
Count Number Of Days Between Two Dates And Display Date in VB.NET
Popup Window On Click Event With ASP.NET
Getting number of Sunday for a specific month
JavaScript Message Box
How to Generate Log in VB.NET
Split Image File With Service in vb.net
Create a Backup Job in SQL Server
Multiple File Transfer One Location To Another Location VB.Net
Split multipage image into single page image in VB.Net
Sand mail using service in VB.Net
View All
SPONSORED BY
DynamicPDF ReportWriter Suite
PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Follow @twitterapi
Latest Blogs
How to use Custom Attribute in HTML Element
Show Your Current Age in MVC
How to Calculate Age in Year in ASP.NET
Delete Files from a Folder Inside a Application after Uploaded in ASP.Net
Count Number Of Days Between Two Dates And Display Date in VB.NET
Encapsulate Field and Extract Interface in .NET
No HTTP resource was found that matches the request URI in MVC 4 Web API
Check Database Connection in MySQL using C#
Why Developers Should Read News
In Defence of Books
View All
Poll
Result
All Polls
Speed of C# Corner
How do you find speed of C# Corner when visiting the site?
Very Fast
OK
Slow
Very Slow
How do you find speed of C# Corner when visiting the site?
Options
Votes
%
Very Fast
6
9.23
OK
50
76.92
Slow
6
9.23
Very Slow
3
4.62
Total
65
100%