Hello
i want to display file from c:\test directory in a list box and when the users right clicks on file it should prompt for new file name and when the users enters new file name i want to rename the file and update that filename in the listbox,how to do that.
right now i have list box and in the init of the form
DIMENSION cFile[1]
lcDir = "c:\test\"
Adir(cFile, lcDir + "*.*")
IF ADIR(cFile,lcDir + "*.*") = 0
MESSAGEBOX('Sorry no files are present in the c:\test\ directory',0+16,'Please note')
RETURN .F.
endif
how to get new name and rename the file and update the list.
thanks for any input.