Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to check the existence of a file in desktop
#1
Solved: 10 Years, 8 Months, 4 Weeks ago Toungue 
hi ankur
how can we check that a particular file is already exist on any folder or Desktop.

Regards
Ashish
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Code:
Set oFSO = CreateObject("Scripting.FileSystemObject")

Msgbox oFSO.FileExists("C:\Documents and Settings\UserName\Desktop\Somefile.txt")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't locate items on Win7 Desktop RandomGrin 0 1,976 01-30-2015, 10:55 PM
Last Post: RandomGrin
  "How to Count Desktop Icons" suresz449 5 7,712 11-23-2011, 09:53 AM
Last Post: suresz449
  Dialog box error while QTP scripts run from VM Desktop rahuldps 2 4,517 11-14-2011, 01:47 PM
Last Post: ravi.gajul
  Unable to login with the same code in different desktop vnsk 2 2,812 10-19-2011, 06:26 PM
Last Post: vnsk
  Write a program to Capture Desktop Screen shot kumarmoyilla 2 11,456 07-11-2011, 10:51 AM
Last Post: souvikghosh_diatm

Forum Jump:


Users browsing this thread: 1 Guest(s)