Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to detect the file?? 1

Status
Not open for further replies.

zahidpervaiz

Programmer
Aug 13, 2003
20
AE
hi

I am working on a project like Yellow Page CD Directory. This project will distribute on Cds.I mean it is a presentation with setup files.

When user will insert CD for first time, CD will detect the file suppose "abc file" in specific folder like (c:\programeFiles\cdProject\).
if the "abc file" is not present there on spacific folder then it will copy "abc file" there and will install the software.

2nd time when user will insert the CD again, cd will detect the file in specific folder and it will find "abc file" , if "abc file" is present in specific folder then cd will skip the installation and will open the presentation.

Actually for the ist time, installation is necessery.
After inserting CD again, Installation is not required. It will still read from CD and Detect the files from specifc folder like (c:\programeFiles\cdProject\) to .


I need help to do above thing,
Thanks in Advance.
Zahid
 
You'll need to use an Xtra either Buddy API or File IO etc. Buddy API is free to use up to twice iun any given project and if you need to use more instances than that then it's a nominal registration fee. Here's a code that I used to do something very similar to what your after. I hope it helps.


on checkForNamesFile
fileThere = baFileExists( textFileName )

if not(fileThere) then
folderOK = baCreateFolder( filePath )
if folderOK then
fileCopied = baCopyFile( the moviePath & origFileName , textFileName , "IfNotExist" )
else
alertText = "Unable to install user database on this computer. You will not be able to save bookmarks."
alertText
end if
end if


Cheers~Frank
 
Thanks fjp476,
Bundle of Thanks You have solved my Problem.We greatly Appreciate of your kind suggestions.
I have also vote this post.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top