Directory removal with today's date?


Author
Message
tlockhart
tlockhart
Supreme Being (111 reputation)Supreme Being (111 reputation)Supreme Being (111 reputation)Supreme Being (111 reputation)Supreme Being (111 reputation)Supreme Being (111 reputation)Supreme Being (111 reputation)Supreme Being (111 reputation)Supreme Being (111 reputation)
Group: Forum Members
Posts: 11, Visits: 36
I am trying to create a date variable that returns the  4digit year, 2digit month, and 2digit day (ex 20120208) , similar to dos ( Fdate=%date:~10,4%%date:~4,2%%date:~7,2%) to be used in an SFTP command.  SFTP will be used to remove all files and directories in a date folder (ex 20120208).  Is there any way to accomplish this using pragma SFTP?

ex. rm c:/%Fdate%

ex. rmdir c:/%Fdate%
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search