|
Hi, There is a folder in the drive. Using xp_cmdshell I want to view the timing of the latest folder created. How to know the timing of the folder created? This Timing I have to assign to a variable.
(comments are locked)
|
|
Doing this with xp_cmdshell is not the best way to do this.(Powershell, SSIS, C# and many other languages/tools can do this much better). Saying that, you can still do it! You would proceed as follows: Thx for your anS William Now the data in the table is in below format :- 10/11/2010 03:45 PM 1,212,928 name of the file .ext From this above row i just want the Timing to be extravted :- ie 03:45 AM . Kindly suggest
Oct 11 '10 at 01:09 AM
mandara
There is nothing like trying yourself! Just put a RIGHT() around the LEFT() command to grab what you want:
That should get you what you want
Oct 11 '10 at 01:13 AM
WilliamD
Thx Willaim, Its done.
Oct 11 '10 at 01:54 AM
mandara
(comments are locked)
|

