Script to copy a file and folder from one location to other in QTP
Script for moving a file from One location to Another location in QTP?
Dim f
Set f = CreateObject("Scripting.FileSystemObject")
f.MoveFile "D:\laxmi.txt", "C:\"
Msgbox "File Moved"
Above script is for moving a text file(laxmi)from D drive to C drive.
The MoveFile method takes two parameters,the source file and the destination.
Syntax:object.MoveFile (source,destination)
My Article in Ezine Articles
Data Driven Using Notepad
Script to copy a file and folder from one location to other in QTP
SQL Queries Collection
Movie Songs Lyrics
Manual Testing Faqs
Showing posts with label scripting.filesystemobject. Show all posts
Showing posts with label scripting.filesystemobject. Show all posts
How to Move a File From One Location to Another in QTP?
QTP Script To Delete File From Particular Location
QTP Script to delete particular file from particular location.
Set f = CreateObject("Scripting.FileSystemObject")
f.DeleteFile("D:\file1.txt")
The Above Script will remove(delete)notepad naming file1(text file)from D drive.
QTP Script To Create File
Data Driven Testing Using Notepad
Subscribe to:
Posts (Atom)