Jump to content
Sign in to follow this  
AutoPepe

Open a folder variable

Recommended Posts

I need to open a folder with this sintax :

 

O:\folder\yyyy\mm.yyyy

That is

O:\folder\2017\08.2017

Where yyyy is the current year, and 08 is the current month.

How can I retrieve this data from the system date and use in the path ?

 

Best Regards

 

 


Traducción AutoIt al Español. http://autoitespa.espanaforo.com/forum.htm . Visita el foro de AutoIt en español http://www.emesn.com/autoitforum/. I am a simple user, not a programmer.

Share this post


Link to post
Share on other sites

@AutoPepe look at the date and time macros in the help file such as @YEAR, @MON, etc.

ConsoleWrite("O:\folder\" & @YEAR & "\" & @MON & "." & @YEAR & @CRLF)

 


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites

Understood JLogan3o13

Best Regards

 


Traducción AutoIt al Español. http://autoitespa.espanaforo.com/forum.htm . Visita el foro de AutoIt en español http://www.emesn.com/autoitforum/. I am a simple user, not a programmer.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...