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, 2 Months, 2 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,139 06-18-2013, 03:20 PM
Last Post: learnQtptips
  How to write In PDF Form using QTP anukapoor 3 5,466 04-05-2012, 06:00 PM
Last Post: atulparate
  QTP file compare - ignoring file structure Fede 3 5,247 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,503 01-03-2012, 05:29 PM
Last Post: shivu.hanu
Shy Help about write color text by QTP in Excel mantis 1 5,341 12-29-2011, 10:46 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)