Hossam El Mahfouzy
asked on
compying text file
hi all i am wondring how can i protect my project when it played from the CD
i want to check up on the c:\ about text file named hossam that is exist on the cd when it cant be found on c:\ then i want to copy this file to the c:\ using my exe project & when i found the txt file on the c:\ so i can unload the form of my project
my question is how can i copy this file from the carent drive to the c:\ drive & how can i check it up
best regards
hossam
i want to check up on the c:\ about text file named hossam that is exist on the cd when it cant be found on c:\ then i want to copy this file to the c:\ using my exe project & when i found the txt file on the c:\ so i can unload the form of my project
my question is how can i copy this file from the carent drive to the c:\ drive & how can i check it up
best regards
hossam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hi
u have to give the reference "SCRRUN.DLL" 'Microsoft Scripting Control'
jag
u have to give the reference "SCRRUN.DLL" 'Microsoft Scripting Control'
jag
ASKER
may please explain where can i put this code in the declaration or else ?
thanx
thanx
Hi
If u want to use fso oject entire form u can declare in Declatation, other wise u can declare where u r using particular procedure
sorry previously i was written like this
fso.CopyFile "c:\hossam.txt", "C:\hossam.txt"
please modify that to
fso.CopyFile "D:\hossam.txt", "C:\hossam.txt"
tnx
jag
If u want to use fso oject entire form u can declare in Declatation, other wise u can declare where u r using particular procedure
sorry previously i was written like this
fso.CopyFile "c:\hossam.txt", "C:\hossam.txt"
please modify that to
fso.CopyFile "D:\hossam.txt", "C:\hossam.txt"
tnx
jag
filecopy "D:\hossam",c:\Hossam"
but what do u mean about protection ??
Eng. Ibraheem