Link to home
Create AccountLog in
Avatar of VJ1980
VJ1980

asked on

Powershell script to create folders

Hi All,

Is there any way to create a folder with yesterday's date using powershell. My requirement is that everyday the script should run to create a folder with yesterday's date automatically. Also this folder will have 6 sub folders with different subfolders as given below

D:\scripts\yesterdays date\server1

Any idea
ASKER CERTIFIED SOLUTION
Avatar of Bhupesh Singal
Bhupesh Singal
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of VJ1980
VJ1980

ASKER

HI ,

I need the yesterdays date should be fetched automatically by the script & then to create a folder with the name 27-12-2010. Any idea
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account