Jump to content
Sign in to follow this  
steedra

DirCreate

Recommended Posts

Need help for something that would seem so simple. :)

DirCreate("\\steedraserver01\interdepartmental\DailyReports\" & $date & "\Ancillary_Charge_Report")

The above will create the folder up to the point of $date. I cannot seem to get it to create the remaining part of the directory. Not sure if I have written it correctly or need another string to create the subdirector within the first directory ending with the $date.

Basically need it to end up being \\steedraserver01\interdepartmental\DailyReports\2011-07-26\Ancillary_Charge_Report when all is said and done. Any suggestions greatly appreciated.

Thanks,

Steedra

Share this post


Link to post
Share on other sites

Basically need it to end up being \\steedraserver01\interdepartmental\DailyReports\2011-07-26\Ancillary_Charge_Report when all is said and done. Any suggestions greatly appreciated.

Thanks,

Steedra

Try:

$date = @year&"-"&@MON&"-"&@MDAY

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...