Sign in to follow this  
Followers 0
goodbyeplanet

Current folder has another folder with files which need to be copied to the C drive

5 posts in this topic

#1 ·  Posted (edited)

I have been using the filecopy command to manipulate a variety of files like this

FileCopy("france*.exe", "C:\new\")

france.exe is in the current directory and the current directory has another folder called "morefiles" and this folder contains the file called "spain.exe". How do i reach out and copy the file spain.exe in the "morefiles" to the hard drive. The execution script is in the current directory. I have been also trying to use filefindfirstfile to search the directory "morefiles" and then try to copy but I am getting confused...Please help me....sorry for my poor english...

Edited by goodbyeplanet

Share this post


Link to post
Share on other sites



$search = FileFindFirstFile("morefiles\*")

I am here again dear people...what i can do is manage to come up with that code above that searches the "morefiles" directory. how do i go about with the copying.

Share this post


Link to post
Share on other sites

Try:

FileCopy(@WorkingDir & "\morefiles\spain*.exe", "C:\new\")


Share this post


Link to post
Share on other sites

Try:

FileCopy(@WorkingDir & "\morefiles\spain*.exe", "C:\new\")

JoHanatCent danke sehr..thank you very much for helping me. that really worked at once and it has also reflected successfully on my logs...thanks again

Share this post


Link to post
Share on other sites

JoHanatCent danke sehr..thank you very much for helping me. that really worked at once and it has also reflected successfully on my logs...thanks again

My pleasure. ( My plesier)(Ich freue mich)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0