Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i write a script in QTP to poll a folder for a new file?
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Yes, You can by giving the server ip address or computer name

Code:
Dim fso, msg, filespec
filespec = "\\192.168.1.1\c$\boot.ini"
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists(filespec)) Then
msgbox filespec & " exists."
Else
msgbox filespec & " doesn't exist."
End If


Let me know if this works

-Mr.K
Reply


Messages In This Thread
RE: How can i write a script in QTP to poll a folder for a new file? - by KVK - 07-17-2009, 02:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating a folder from within a reusable action. sd3 2 3,186 06-18-2013, 03:20 PM
Last Post: learnQtptips
  How to write In PDF Form using QTP anukapoor 3 5,530 04-05-2012, 06:00 PM
Last Post: atulparate
  QTP file compare - ignoring file structure Fede 3 5,302 02-17-2012, 02:48 AM
Last Post: Parke
  Is this possbile to write the script without using the Object in object repository? njnirmal 4 8,584 01-03-2012, 05:29 PM
Last Post: shivu.hanu
Shy Help about write color text by QTP in Excel mantis 1 5,387 12-29-2011, 10:46 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 5 Guest(s)