Jump to content

...


 Share

Recommended Posts

if you use filecopy('mary.jpg','c:\images\mary.jpg',8)

means filecopy(@workingdir&'\mary.jpg','c:\images\mary.jpg',8)

if you are running te script in the same directory of mary.jpg it works.

Instead filecopy('c:\my images\img\mary.jpg','c:\images\mary.jpg',8)

indipentent of your working dir (runnin script dir) it copies c:\my images\img\mary.jpg in c:\images\mary.jpg

Sorry for my english.

A lan chat (Multilanguage)LanMuleFile transferTank gameTank 2 an online game[center]L'esperienza è il nome che tutti danno ai propri errori.Experience is the name everyone gives to their mistakes.Oscar Wilde[/center]
Link to comment
Share on other sites

  • Developers

I don't really understand your question... you talk about copy the script itself and then show something with a jpg....

What exactly do you want to do ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I try to copy a compiled script itself to another folder using the FileCopy function but should I key in the 'Full' destination address?

Can use a relative path from your working directory.

If DirCreate('mypictures')
    FileCopy(@ScriptFullPath, 'mypictures\')
EndIfoÝ÷ ÚÚ~ée¥«a¶¢W^­«­¢+Ù%¥É
ÉÑ ÌäíèÀäÈíµåÁ¥ÑÕÉÌÌäì¤(¥±
½Áä¡MÉ¥ÁÑÕ±±AÑ °ÌäíèÀäÈíµåÁ¥ÑÕÉÌÀäÈìÌäì¤)¹%

You do not need to use the filename in the destination unless you want to rename the file. :)

Link to comment
Share on other sites

Do I need to include the full directory destination if i'm copying the script ITSELF?

Thank you. :)

if you want to copy the script that you are using do what MHz said

If DirCreate('D:\mypictures')
    FileCopy(@ScriptFullPath, 'D:\mypictures\')
EndIf

@ScriptFullPath retrieves the full path of your script

i cant understand your question has been answered , please explain better exacly what you want, your script to copy itself or to copy another file..

Edited by Gif
Link to comment
Share on other sites

So by using the @ScriptFullPath function, I don't have to include the script's location but only the destination to be copied to?

NOTE: Using the FileCopy function to copy the script itself to another location.

yes, thats what we 've been telling you

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...