Jump to content

Copy file

- - - - -

  • Please log in to reply
2 replies to this topic

#1
stevie754

stevie754

    Programmer

  • Members
  • PipPipPipPip
  • 110 posts
Hey all I need a little help copying over all the SQL files inside a folder to another folder.

I have folders being copied using

fs.CopyFolder(AppPath+"\\base",tempFolder+"\\baseTmp");

but there are .sql files inside the AppPath too that I would like copied.
I have
fs.CopyFiles(AppPath+"*.sql",tempFolder);

what should it be becuase its not working, thanks

#2
stevie754

stevie754

    Programmer

  • Members
  • PipPipPipPip
  • 110 posts
never mind got it working :)

Had forgot to put in \\

I am learning this JavScript but slowly

fs.CopyFile(AppPath+"\\*.sql",tempFolder);


#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Glad you could get it working!
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users