vista question
- Started
- Last post
- 15 Responses
- cuke426
does anyone know how to implement the following line of code in the command prompt?
Get-Content someFile.txt -wait
- cuke4260
it's spitting up an error saying it doesn't recognize 'Get-Content'
- kona0
print that line of code out and tape it to the business end of a hammer. then hammer the code into the cpu unit. then go here. http://www.apple.com
- anxiousarms0
i thought the question was going to be something more like "can someone tell me why i'm using this crap?"
- designbot0
Explain to me exactly what you are trying to do.....you could probably create a batch file to do it.
- cuke4260
just trying to replicate tail in xp on vista.
to all the elitists sorry i'm not as wealthy as you
- i'm still on XP and i ask myself why every day ya' poor ass.anxiousarms
- designbot0
"replicate tail" huh?
- cuke4260
sorry, i'm trying to read the contents of a .txt file in the command line, read the trace statements from flashlog.txt in realtime...
- cuke4260
which i know how to do on a mac in terminal and on XP with tail but i can't do it in vista...
- designbot0
Damn dude, start speaking english :)
You sound like a developer, which I am not. You really have to spell it out for me, and then maybe I can help you.
What do you mean by "read trace statements....in realtime"
- cuke4260
i would like to show the contents of a .txt file in terminal.
- designbot0
ahhh....thank you.
Okay at the command prompt you want to type the following:
"type nameofyourfile"
- designbot0
if it's really long you can use the /p argument to make it display page by page.
- cuke4260
thanks for your help...
what i'm trying to do is:
1.have the txt file loaded up in there, like you showed
2.i have another program that is writing data to the txt file,
3. when the txt file updates i want to show the updates in the terminal as well...they talk about it here:
http://www.vistax64.com/powershe…
- acescence0
i'm a unix guy, but i think get-content is a powershell command, the windows prompt is the bastard child of dos and NT command interpreter
- do you have powershell?
http://www.microsoft…
acescence - no. i'll take a look . thanks.cuke426
- do you have powershell?
- designbot0
hmm....yeah the way the terminal works I don't think there is a way to display a file in "real time"....but you could probably just have it re-display the updated file after it has been changed.