Jump to content
Sign in to follow this  
Robin

DirCopy

Recommended Posts

Robin

I want to copy from "C:\Documents and Settings\Robin.USER1\Application Data\SUPERAntiSpyware.com\SUPERAntiSpyware" to

"C:\Program Files\SUPERAntiSpyware" including ALL the files...nothing fancy.

In my script it looks like this, but doesn't seem to work

Script

-------

#include <File.au3>

DirCopy ("C:\@AppDataDir\SUPERAntiSpyware.com\SUPERAntiSpyware", "C:\@ProgramsDir\SUPERAntiSpyware", 1)

What i DID notice though, is that the "@AppDataDir" and "@ProgramsDir" isn't pinkish (colored) and i get an Exit Code 0...

Matter of interest...Is there maybe a more "detailed" tutorial/manual on exactly HOW the code needs to be written?...ie spaces...no slashes...etc etc

Share this post


Link to post
Share on other sites
trancexx

I want to copy from "C:\Documents and Settings\Robin.USER1\Application Data\SUPERAntiSpyware.com\SUPERAntiSpyware" to

"C:\Program Files\SUPERAntiSpyware" including ALL the files...nothing fancy.

In my script it looks like this, but doesn't seem to work

Script

-------

#include <File.au3>

DirCopy ("C:\@AppDataDir\SUPERAntiSpyware.com\SUPERAntiSpyware", "C:\@ProgramsDir\SUPERAntiSpyware", 1)

What i DID notice though, is that the "@AppDataDir" and "@ProgramsDir" isn't pinkish (colored) and i get an Exit Code 0...

Matter of interest...Is there maybe a more "detailed" tutorial/manual on exactly HOW the code needs to be written?...ie spaces...no slashes...etc etc

You are obviously using SciTE, therefore just hit F1 for help. It's all there.

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
Robin

You are obviously using SciTE, therefore just hit F1 for help. It's all there.

Here is another code i've tried with no results--->

#include <File.au3>

DirCopy (@AppDataDir & "\SUPERAntiSpyware.com\SUPERAntiSpyware", @ProgramsDir & "\SUPERAntiSpyware", 1)

Btw, no offence, but for a newbie the manual is quite diff to understand...Its easy to put one "this=that" in there, but when you work with strings of code....well...another story :mellow:

Share this post


Link to post
Share on other sites
trancexx

Here is another code i've tried with no results--->

#include <File.au3>

DirCopy (@AppDataDir & "\SUPERAntiSpyware.com\SUPERAntiSpyware", @ProgramsDir & "\SUPERAntiSpyware", 1)

Btw, no offence, but for a newbie the manual is quite diff to understand...Its easy to put one "this=that" in there, but when you work with strings of code....well...another story :mellow:

You have a folder inside a file.

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
Robin

You have a folder inside a file.

Trancexx...I presume you're a "fundi" on script-coding, and i respect you for that, but could you maby just give me a "sample" of this type of coding?...Ie how would you have written my code? ( i need 2 copy the sub-folders as well)

tia

Edited by Robin

Share this post


Link to post
Share on other sites
trancexx

Trancexx...I presume you're a "fundi" on script-coding, and i respect you for that, but could you maby just give me a "sample" of this type of coding?...Ie how would you have written my code? ( i need 2 copy the sub-folders as well)

tia

Locations? From and to? (I know you said that before, but please do again)

You could be presuming wrong.

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
Robin

Locations? From and to? (I know you said that before, but please do again)

You could be presuming wrong.

Lol...here is my BATCH file (well, part of it that i need to translate to AutoIt Script)

-->xcopy "%APPDATA%\SUPERAntiSpyware.com\SUPERAntiSpyware" "%PROGRAMFILES%\SUPERAntiSpyware" /e /h /c /i<---

...and it IS working 100% as a batch-file....the /e /h/c/i is just "switches" so it can copy everything...I think i can do it with _RunDos, but i would like to do it "scrypting-wise"...to eliminate the black command-prompt window...

Edited by Robin

Share this post


Link to post
Share on other sites
trancexx

DirCopy (@AppDataDir & "\SUPERAntiSpyware.com\SUPERAntiSpyware", @ProgramFilesDir & "\SUPERAntiSpyware", 1)

Your code should be working but drops on wrong place.

@ProgramsDir is not %PROGRAMFILES%

Don't forget to remove SUPERAntiSpyware folder from @ProgramsDir


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
Robin

DirCopy (@AppDataDir & "\SUPERAntiSpyware.com\SUPERAntiSpyware", @ProgramFilesDir & "\SUPERAntiSpyware", 1)

Your code should be working but drops on wrong place.

@ProgramsDir is not %PROGRAMFILES%

Don't forget to remove SUPERAntiSpyware folder from @ProgramsDir

Eish man...worked like a charm...Thx trancexx :mellow:

Share this post


Link to post
Share on other sites
DexterMorgan

That is so wierd, I swear to god I had a virus by that name...


code

Share this post


Link to post
Share on other sites
trancexx

That is so wierd, I swear to god I had a virus by that name...

Robin?

I had Julie once.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
DexterMorgan

Robin?

I had Julie once.

not robin, SUPERAntiSpyware, it was like a keylogger and advertising a product, it would show popups telling you to buy the program to get rid of the virus..

Edit: After doing some research SuperAntispyware is legit :mellow: I guess I had something else or an impersonator

Edited by DexterMorgan

code

Share this post


Link to post
Share on other sites
trancexx

Yea, I was lying too. Julie wasn't virus. :mellow:


♡♡♡

.

eMyvnE

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.