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 Link to comment Share on other sites More sharing options...
Wez Posted October 20, 2010 Share Posted October 20, 2010 Echo %username% > filename.txt 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 Link to comment Share on other sites More sharing options...
MaveriK Posted October 20, 2010 Share Posted October 20, 2010 Prepare for a pelting............... 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 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 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 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" 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 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. 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? 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?" 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 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 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? 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now