' ============================================================= Dim objFS ' create a file system object ' check that the source folder exists ' fail if the source does not exist Else ' check that the destination folder doesn't already exist Else ' fail if the target folder was already in place ' destroy the object
' function: FolderMove
' desc : Moves a folder and all of its files to a new path
' params : strSourceFolder - the folder to copy
' strDestinationFolder - the location to copy to
' returns : void
' =============================================================
Function FolderMove(strSourceFolder, strDestinationFolder)
Set objFS = CreateObject("Scripting.FileSystemObject")
If Not objFS.FolderExists(strSourceFolder) Then
reporter.ReportEvent micFail, "Move Folder", "Source Folder '"& strSourceFolder &"' Does Not Exist"
If Not objFS.FolderExists(strDestinationFolder) Then
' move the folder
objFS.MoveFolder strSourceFolder, strDestinationFolder
reporter.ReportEvent micFail, "Move Folder", "Unable to Move Folder as the Target '" & strDestinationFolder & "' Already Exists"
End If
End If
Set objFS = Nothing
End Function 'FolderMove
Wednesday, 19 October 2011
QTP Script: Move a local or network folder
08:09
9 comments
Subscribe to:
Post Comments (Atom)
Thank you for the good writeup. It in fact was a amusement account it.
ReplyDeleteLook advanced to more added agreeable from you!
By the way, how could we communicate?
my blog post :: minecraft download
First off I would like to say excellent blog!
ReplyDeleteI had a quick question which I'd like to ask if you don't mind.
I was interested to find out how you center yourself and clear your mind prior
to writing. I've had difficulty clearing my thoughts in getting my thoughts out
there. I truly do take pleasure in writing however it just seems like the first 10 to 15 minutes are wasted just trying to
figure out how to begin. Any suggestions or tips? Thank you!
Look into my site Quest Bars Free Sample
I was suggested this blog by my cousin. I am not sure whether this post is written by him as no
ReplyDeleteone else know such detailed about my difficulty. You are wonderful!
Thanks!
Feel free to visit my web page nutrition bars
I will immediately snatch your rss as I can't find your email subscription hyperlink or newsletter service.
ReplyDeleteDo you have any? Please allow me know in order that I may
subscribe. Thanks.
Here is my website :: here quest bars link
Appreciating the hard work you put into your website and detailed information you offer.
ReplyDeleteIt's great to come across a blog every once in a while that isn't the same out of date rehashed information.
Excellent read! I've bookmarked your site and I'm including your RSS feeds to my Google account.
Review my web blog: Quest Bars
Great post.
ReplyDeletemy homepage :: quest bars
My programmer is trying to persuade me to move to .net from PHP.
ReplyDeleteI have always disliked the idea because of the
expenses. But he's tryiong none the less. I've been using Movable-type on several websites for about a year and am anxious about switching to another platform.
I have heard excellent things about blogengine.net.
Is there a way I can import all my wordpress posts into it?
Any kind of help would be really appreciated!
My homepage :: Diet Plans to Lose Weight
Thanks for ones marvelous posting! I definitely enjoyed reading it, you will be a great author.
ReplyDeleteI will always bookmark your blog and will often come back
very soon. I want to encourage you to ultimately continue your great posts,
have a nice afternoon!
Feel free to surf to my blog - Diet Plans for Women
Hi there, just became aware of your blog through Google, and
ReplyDeletefound that it's really informative. I am gonna watch out for brussels.
I will appreciate if you continue this in future. A lot of people will be benefited from your
writing. Cheers!
Feel free to surf to my weblog - coconut oil hair