steedra Posted July 27, 2011 Share Posted July 27, 2011 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 Link to comment Share on other sites More sharing options...
Valuater Posted July 27, 2011 Share Posted July 27, 2011 Maybe... $date = _NowCalcDate() MsgBox(0,0, $date) 8) Link to comment Share on other sites More sharing options...
JoHanatCent Posted July 27, 2011 Share Posted July 27, 2011 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now