Whitesupraboy2 Posted October 20, 2010 Share Posted October 20, 2010 Im struggling with something I shouldnt be I have a Dos file script pulling some netstats that I need etc... and im importing into an SQL database fine etc... and im displaying in a refreshing web page etc... Great Now all i want to do is run a Dos command to save the current logged on user to a txt file...and im failing I know the variable is %username% as i can get it to screen I just cant get in to the file....Im really having a major brain block anyone know the answer Quote Link to comment Share on other sites More sharing options...
Wez Posted October 20, 2010 Share Posted October 20, 2010 Echo %username% > filename.txt Quote Link to comment Share on other sites More sharing options...
Whitesupraboy2 Posted October 20, 2010 Author Share Posted October 20, 2010 I forgot the > Lock thread............ lock thread Quote Link to comment Share on other sites More sharing options...
MaveriK Posted October 20, 2010 Share Posted October 20, 2010 Prepare for a pelting............... Quote Link to comment Share on other sites More sharing options...
RobSheffield Posted October 20, 2010 Share Posted October 20, 2010 Its the large button on the front of the box, yes thats the one Quote Link to comment Share on other sites More sharing options...
Purity14 Posted October 20, 2010 Share Posted October 20, 2010 I forgot the > Lock thread............ lock thread Oh dear Quote Link to comment Share on other sites More sharing options...
Whitesupraboy2 Posted October 20, 2010 Author Share Posted October 20, 2010 Oh dear It gets worse in fact id used similar command of >> this morning to append a file..... So im just going to go home for the day...I think its best before I break something Quote Link to comment Share on other sites More sharing options...
Purity14 Posted October 20, 2010 Share Posted October 20, 2010 It gets worse in fact id used similar command of >> this morning to append a file..... So im just going to go home for the day...I think its best before I break something This whole thread is now the geeks equivelent of "wheres my boot release" Quote Link to comment Share on other sites More sharing options...
kill1308 Posted October 20, 2010 Share Posted October 20, 2010 this whole thread is now the geeks equivelent of "wheres my boot release" :d Quote Link to comment Share on other sites More sharing options...
Digsy Posted October 20, 2010 Share Posted October 20, 2010 To be fair DOS is rather new. Quote Link to comment Share on other sites More sharing options...
Thorin Posted October 20, 2010 Share Posted October 20, 2010 I forgot the > Lock thread............ lock thread Imagine that all the techies on the forum are laughing at you right now... How do you feel? Quote Link to comment Share on other sites More sharing options...
Max Headroom Posted October 20, 2010 Share Posted October 20, 2010 I'm scratching my head thinking "what the bloody hell is he on about?" Quote Link to comment Share on other sites More sharing options...
johnny g Posted October 20, 2010 Share Posted October 20, 2010 Just scan it in, be easier http://blog.scs.sk.ca/tado/vschools/1copyingtheeasyway.jpg Quote Link to comment Share on other sites More sharing options...
Whitesupraboy2 Posted October 20, 2010 Author Share Posted October 20, 2010 No ones laughing....As long as the team I look after at work dont find out, ill be fine and we can watch this be pruned off eventually Quote Link to comment Share on other sites More sharing options...
Thorin Posted October 20, 2010 Share Posted October 20, 2010 Who do you work for again? Quote Link to comment Share on other sites More sharing options...
Whitesupraboy2 Posted October 20, 2010 Author Share Posted October 20, 2010 Who do you work for again? Mi5 but dont tell anyone shhhhhh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.