Is there anyway to add a timestamp to the prompt? PS 2007-01-01-23:00:01 C:\WINDOWS> echo "echo" echo PS 2007-01-03-23:00:01 C:\WINDOWS> ls
Is there anyway to add a timestamp to the prompt? PS 2007-01-01-23:00:01 C:\WINDOWS> echo "echo" echo PS 2007-01-03-23:00:01 C:\WINDOWS> ls
Found how to customize the prompt by searching for change prompt in this newsgroup. function prompt { "PS " + [datetime]::Now + " " + $pwd + ">" } work OK.
function prompt { "PS $([datetime]::Now) $pwd> " }
2006-12-18T12:04:35 is closer and using (Get-Date) seems better, but there's something about that T I don't like.
you can also do complete custom formatting like this : PoSH>(get-date).ToString("yyyy-MM-dd HH:mm:ss") 2006-12-18 19:31:16 Greetings Marc
1.Stop and Start a service - wait.com [01/01] - wait.com [01/01]
Let's try that again In article <3f0f0a3b$ XXXX@XXXXX.COM >, XXXX@XXXXX.COM (Ed Siff) wrote: >This will do it. > >Ed >,|€:> >y Tom Kihlken - (c) 1987 Ziff Communicati>ns>Co. > >In<article, "<llison" >>rote: >>I am using the NETSVC command to stop and start a Windows 2000 servi>>. The >>only problem is that when I use it in a batch file, the service wi>> stop >>but not start. I figured out that the reason it isn't starting is >>cause >>the command to stop the service hasn't finished yet. Is there a comma>> that >>I can use in my batch file to delay the start request so the stop >>quest >>can >>ni>>? >> >>Here is a copy of my batc>>fi>>: >> >>netsvc spooler \\computernam>>/stop >>(I need a 5 to 10 second delay before the next command takes place, e>>ept I >>don't know a command to d>>this) >>netsvc spooler \\computername>>st>>t >> >>>ha>>s >> >> Thanks, Ed ================================================ Ed Siff Computing Consultant Library Systems CB# 3946 Academic Affairs Libraries UNC-Chapel Hill XXXX@XXXXX.COM 919.962.1288 ================================================ "Take me on a trip upon your magic swirlin' ship" -Dylan
2.Cleaning Up the "Windows can perform the same action each time" dialog winbox.jpg (01/01)
3.Open Explorer Showing C Drive Explorer Switches.txt (01/01)
4.Stop and Start a service - wait.com [01/01]
This will do it. Ed ,|€: y Tom Kihlken - (c) 1987 Ziff Communications Co. In<article, "<llison" >wrote: >I am using the NETSVC command to stop and start a Windows 2000 servi>e. The >only problem is that when I use it in a batch file, the service wi>l stop >but not start. I figured out that the reason it isn't starting is >ecause >the command to stop the service hasn't finished yet. Is there a comma>d that >I can use in my batch file to delay the start request so the stop >equest >can >in>sh? > >Here is a copy of my batc> f>le: > >netsvc spooler \\computernam> /stop >(I need a 5 to 10 second delay before the next command takes place, e>cept I >don't know a command to d> this) >netsvc spooler \\computername>/s>art > >Th>nks > >
5.~~('.')~~~ Wondering how to get a free laptop Free Laptop Info.txt (01/01)
6. how can I get seconds from 1970,01,01
7. ~~('.')~~~ Wondering how to get a free laptop Free Laptop Info.txt (01/01)
8. ~~('.')~~~ Wondering how to get a free laptop Info.txt (01/01)
Users browsing this forum: No registered users and 59 guest