Link to home
Start Free TrialLog in
Avatar of Hossam El Mahfouzy
Hossam El MahfouzyFlag for Egypt

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
Avatar of Bahnass
Bahnass
Flag of Egypt image

about filecopy

filecopy "D:\hossam",c:\Hossam"

but what do u mean about protection ??
Eng. Ibraheem
ASKER CERTIFIED SOLUTION
Avatar of talluri_28
talluri_28

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of talluri_28
talluri_28

hi

u have to give the reference "SCRRUN.DLL" 'Microsoft Scripting Control'

jag
Avatar of Hossam El Mahfouzy

ASKER

may please explain where can i put this code in the declaration or else ?
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