Sign in to follow this  
Followers 0
palba

About directory and files

6 posts in this topic

Hi All,

I have this deal:

I need to organize my work by date. A large amount of files are generated every day so I'd like to automate the daily job.

-My idea is:

Generate all the files into a specific folder

At the end of the day, autoit creates a folder with the day and move all the daily generated files into the new folder.

I have to ask: Can I create a folder giving a name? better could be the date, that autoit can handle simply.

One more, which is the best way to select all the file in a folder?

I need to move 600 files per day....

Any suggestion is very well appreciated!

Thanks in advance

Paul

WWWWW AUTOIT!!!!!!!!!!!!!!!!!

Share this post


Link to post
Share on other sites



Help file:

Dircreate

@mday

@mon

@year

filefindfirstfile

filefindnextfile


Giggity

Share this post


Link to post
Share on other sites

Help file:

Dircreate

@mday

@mon

@year

filefindfirstfile

filefindnextfile

Thanks!

But which is the correct use of @MDAY.

I'm trying this:

Dircreate ("c:\Documents\ (@MDAY/@MON")

but it doesn't work as I expect.

I'd like just to understand how to use date of the day to name or rename e folder.

Many thanks in advance! Best regards!

Paul

Share this post


Link to post
Share on other sites

Thanks!

But which is the correct use of @MDAY.

I'm trying this:

Dircreate ("c:\Documents\ (@MDAY/@MON")

but it doesn't work as I expect.

I'd like just to understand how to use date of the day to name or rename e folder.

Many thanks in advance! Best regards!

Paul

$Filename = "c:\Documents\ (" & @MDAY & " - " & @MON & ")"

Dircreate ($Filename)

On Windows you can't take a slash "/" file or dir names.


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

$Filename = "c:\Documents\ (" & @MDAY & " - " & @MON & ")"

Dircreate ($Filename)

On Windows you can't take a slash "/" file or dir names.

& @MDAY & ????

I guess why in the help file many commands doesn't have the correct usage sintax.

Where is a very good guide to find the correct commands usage?

Thanks again for your help!

Paul

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

& @MDAY & ????

I guess why in the help file many commands doesn't have the correct usage sintax.

Where is a very good guide to find the correct commands usage?

Thanks again for your help!

Paul

& is to concatenate strings (it has nothing to do with the @... macros).

So "c:\Documents\ (" & @MDAY & " - " & @MON & ")" concatenates the strings

"c:\Documents\ ("

@MDAY

" - "

@MON

")"

Where the macros @MDAY and @MON result in the strings "18" and "11".

So "Hello" & "-" & "world" results in "Hello-world"

A-Jay

Edited by ajag

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
Sign in to follow this  
Followers 0