Jump to content
Rackaracka

Copy a file to a folder

Recommended Posts

Rackaracka

This was a lot harder than i thought, how do i copy (relatively) "settings.ini" to C:\Program Files\MyProgram

Share this post


Link to post
Share on other sites
JLogan3o13

Moved to the appropriate forum, as the AutoIt Example Scripts forum very clearly states:

Quote

Share your cool AutoIt scripts, UDFs and applications with others.


Do not post general support questions here, instead use the AutoIt Help and Support forums.

Moderation Team


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Rackaracka

i think i am doing something wrong please help. i need to copy a relative path, test.txt to C:\Program Files (x86)\MyApplication. please help

Share this post


Link to post
Share on other sites
Earthshine

post your code if you are serious about help


My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Jos
10 minutes ago, Rackaracka said:

i think i am doing something wrong please help. i need to copy a relative path, test.txt to C:\Program Files (x86)\MyApplication. please help

stick to your original topic please.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Belini
30 minutes ago, Rackaracka said:

i think i am doing something wrong please help. i need to copy a relative path, test.txt to C:\Program Files (x86)\MyApplication. please help

#RequireAdmin
FileCopy(@ScriptDir & "\test.txt", "C:\Program Files (x86)\MyApplication\test.txt", 9)

 

Share this post


Link to post
Share on other sites
ajag
#RequireAdmin
FileCopy(@ScriptDir & "\test.txt", "C:\Program Files (x86)\MyApplication\test.txt", 9)

works for me...


Rule #1: Always do a backup         Rule #2: Always do a backup (backup of rule #1)

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

×