If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#46
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
David Candy wrote in message :
`Huh? Hu Hu Hu HU -- Marco |
Ads |
#47
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
What?
--=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 `Huh? =20 Hu Hu Hu HU =20 --=20 Marco `Huh? Flush --=20 Marco Don't snip f*ckhead. I fixed you attempts to mislead the record. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 Over the years I've watched your spam. =20 And you have not used the killfile.Are you a masochist? =20 --=20 Marco Go away! You bother me even more with your pathetic snipping. How are people = supposed to follow what this is about. But your post and Jerold's and = Jim's have been ****ting me for years. AND IT IS SPAM designed to drive = traffic to you site. Lets take kelly. She doesn't spam. As a result I reckon she gets = thousands of referals by other users to her site (certainly a few = hundred times a day I read a post saying go to K's site). Over the years I've watched your spam. I've never seen anyone refer = anyone else to your site.=20 I've certainly not ever been. Perhaps you should only post to usenet and leave this private product = support NNTP server off your list. Of course your stupid crossposting (across usenet and private servers) = means I have to click through dialogs to even send this. We all know = finland. NAZI collabarator and when the going got tough a tratorous = ally. No ticker, no morals. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html --=20 All the Best, Kelly Microsoft-MVP Windows=AE XP 2004 Windows MVP "Winny" Award Troubleshooting Windows XP http://www.kellys-korner-xp.com Taskbar Repair Tool Plus! http://www.kellys-korner-xp.com/taskbarplus!.htm "Timo Salmi" wrote in message=20 ... Dear Readers, Before posting a CMD.EXE command line script related question please = be aware of the information and solutions material already available, = such as 94268 Mar 31 2004 ftp://garbo.uwasa.fi/pc/link/tscmd.zip tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi In case of grave difficulties in getting this file from Garbo archives see Sites with permission to mirror Garbo archives http://www.uwasa.fi/~ts/garbinfo/garbmirr.html The contents of the FAQ-like script tips collection is given below. For more command line script or near information sources please see http://www.uwasa.fi/~ts/http/http2.html#cmdscript This file TSCMDIDX.TXT lists the contents of 1CMDFAQ.TXT NT/2000/XP CMD.EXE Script Tricks in ftp://garbo.uwasa.fi/pc/link/tscmd.zip Alternatively available with the version number as ftp://garbo.uwasa.fi/pc/ts/tscmd19.zip -------------------------------------------------------------------- 1} How get today's date elements into environment variables? 2} On Windows XP how do you stop the script files from closing? 3} How can I customize the Command Prompt Window with script = commands? 4} How can I test is it on MSDOS/Win3..9x/Me or NT/2000/XP? 5} How do I get a fully qualified path name of my script? 6} How does one get yesterday's date? 7} How can I test if two files agree in size and datetime stamp? 8} How do I find all the files made at of after YYYYMMDD HHMM? 9} How can I suppress script error messages altogether? 10} How can I change the environment variable values within a FOR = loop? 11} How do I retain my original code page in these scripts? 12} How can I rename all my .JPG files sequentially in a folder? 13} How do I get the current day of the week? 14} Help! My old batch files won't work since there is no choice. 15} Is it possible to echo without linefeed like the Unix echo -n? 16} How can I get the time without having to press enter? 17} How can I avoid the potential "ECHO is off." in echoing %myvar% 18} How does one build re-usable script function modules? 19} How can one build a delay / sleep / wait procedure for a script? 20} Is is possible to right-justify numbers or words in a script? 21} Do you have pointers to additional script material and tips? 22} How do I capture the current folder name into a variable? 23} How do I get the n:th, the first and the last line of a text file? 24} How do I get the m:th item on the n:th line of a text file? 25} How can I quote with e.g. " " an entire message? 26} How do I get the length of a string into a variable? 27} How can I remove all the blank lines from a text file? 28} How to convert a file written in IBM PC characters into LATIN1? 29} How do I drop the first two characters of a string, and so on? 30} Can one calculate the difference between two times in a script? 31} How many days ago was 31.12.2003? What date it was a 100 days ago? 32} How can I convert a decimal number to binary, octal, hexadecimal? 33} How can I convert a binary, octal, hexadecimal into a decimal? 34} How can I remove the quote characters from a line? 35} How can I substitute the second field on each line of my file? 36} I start a program from my script and it hogs my command window. 37} How can I insert a line in the middle of a file with a script? 38} How can I set and test the errorlevel within a script file? 39} Is there a subroutine to convert a variable into uppercase? 40} How do I get the number of arguments given to a script? 41} How can I create a zero-byte file? How do I test for it? 42} What is the subroutine for testing a filename for wildcards? 43} Is there a way of counting the number of files in a folder? 44} How do I get the first 68 columns from a text file? 45} How can I find out how many days old a file is? 46} Is a program available in the default folder or at path? 47} Is it possible to echo the redirection symbol in a script? 48} Why do some comment lines cause errors? What can I do about it? 49} I need to reverse a text file. How do I do that fairly quickly? 50} How do I get the position of a substring in a string? 51} How can I echo lines in different colors in NT scripts? 52} How can I enter a password into a variable without echoing it? 53} How can I test if a disk device is ready or not? 54} How can I get the type of a disk device? 55} How to get the creation, last modified and last access of a file? 56} How to find and move more recent files from one folder to another? 57} How do I get a list of all my empty folders on c:\ ? 58} How do I best combine two quoted arguments into one quoted string? 59} How do I find if a folder exists? How about visible files in it? 60} How do I delete all but most recent 20 files in a folder? 61} How can one devise a command line calculator? 62} How can I compare within a script if two files are identical? 63} How to perform a command on each line of file as an argument? 64} How to count the number of lines in a file, empty lines inclusive? 65} How do I add text in front and after each line in a text file? -------------------------------------------------------------------- All the best, Timo --=20 Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5 Department of Accounting and Business Finance ; University of Vaasa http://www.uwasa.fi/~ts/ ; FIN-65101, Finland Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html=20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 Don't snip f*ckhead. I fixed you attempts to mislead the record. =20 Flush =20 --=20 Marco |
#48
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
David Candy wrote :
We all know finland. NAZI collabarator and when the going got tough a tratorous ally. Are you Jew? |
#49
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
Racially I'm partially jewish, though my family mostly angelised in =
early 1700s. I'm High Anglician, British race (after 300 years I think I = am), Australian nationality. Though people with names like levy kept = marryng in to at least 1850. Refugee to london where family changed = name to street in jewish quarter. My family also used to own the suburbs = that is now sydney's jewish quarter. A lot of the streets were I live = are named after my family. But I love the wermacht and wish I was prussian. I know I could take = moscow. My dream now is Australia will spill out through indonesia, then = malaysia, thailand, burma, taiwan, japan, then into russia and moscow = here we come. Napolean couldn't, the turks couldn't in WW1 (they all froze), hitler = couldn't. But it's Australia manifest destiny to rule moscow.=20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "jim" wrote in message = ... David Candy wrote : =20 We all know finland. NAZI collabarator and when the going got tough = a tratorous ally. =20 Are you Jew? =20 |
#50
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
The spammer is a person who puts a lot of effort into helping people. I =
only object to the spamming, which is not major, only benefits his ego = not his wallet. Others here do the same and I ignore it for reasons of = not making waves (as the person is an ok person and I don't want to make = this particular person an enemy). --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "anonymous" wrote in message = ... David, report this smuck to his ISP for abuse with spam and be done = with it! =20 ----- David Candy wrote: ----- =20 What? =20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in = message ... David Candy wrote in message = : `Huh? Hu Hu Hu HU --=20 Marco `Huh? =20 Flush =20 --=20 Marco =20 Don't snip f*ckhead. I fixed you attempts to mislead the record. =20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in = message ... David Candy wrote in message = : Over the years I've watched your spam. And you have not used the killfile.Are you a masochist? --=20 Marco Go away! You bother me even more with your pathetic snipping. How are = people supposed to follow what this is about. But your post and Jerold's = and Jim's have been ****ting me for years. AND IT IS SPAM designed to = drive traffic to you site. =20 Lets take kelly. She doesn't spam. As a result I reckon she gets = thousands of referals by other users to her site (certainly a few = hundred times a day I read a post saying go to K's site). =20 Over the years I've watched your spam. I've never seen anyone = refer anyone else to your site.=20 =20 I've certainly not ever been. =20 Perhaps you should only post to usenet and leave this private = product support NNTP server off your list. =20 Of course your stupid crossposting (across usenet and private = servers) means I have to click through dialogs to even send this. We all = know finland. NAZI collabarator and when the going got tough a tratorous = ally. No ticker, no morals. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html =20 --=20 All the Best, Kelly =20 Microsoft-MVP Windows=C2=AE XP 2004 Windows MVP "Winny" Award =20 Troubleshooting Windows XP http://www.kellys-korner-xp.com =20 Taskbar Repair Tool Plus! http://www.kellys-korner-xp.com/taskbarplus!.htm =20 =20 "Timo Salmi" wrote in message=20 ... Dear Readers, Before posting a CMD.EXE command line script related question = please be aware of the information and solutions material already = available, such as 94268 Mar 31 2004 ftp://garbo.uwasa.fi/pc/link/tscmd.zip tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi In case of grave difficulties in getting this file from Garbo = archives see Sites with permission to mirror Garbo archives http://www.uwasa.fi/~ts/garbinfo/garbmirr.html The contents of the FAQ-like script tips collection is given = below. For more command line script or near information sources please = see http://www.uwasa.fi/~ts/http/http2.html#cmdscript This file TSCMDIDX.TXT lists the contents of 1CMDFAQ.TXT NT/2000/XP CMD.EXE Script Tricks in ftp://garbo.uwasa.fi/pc/link/tscmd.zip Alternatively available with the version number as ftp://garbo.uwasa.fi/pc/ts/tscmd19.zip = -------------------------------------------------------------------- 1} How get today's date elements into environment variables? 2} On Windows XP how do you stop the script files from = closing? 3} How can I customize the Command Prompt Window with script = commands? 4} How can I test is it on MSDOS/Win3..9x/Me or NT/2000/XP? 5} How do I get a fully qualified path name of my script? 6} How does one get yesterday's date? 7} How can I test if two files agree in size and datetime = stamp? 8} How do I find all the files made at of after YYYYMMDD HHMM? 9} How can I suppress script error messages altogether? 10} How can I change the environment variable values within a = FOR loop? 11} How do I retain my original code page in these scripts? 12} How can I rename all my .JPG files sequentially in a = folder? 13} How do I get the current day of the week? 14} Help! My old batch files won't work since there is no = choice. 15} Is it possible to echo without linefeed like the Unix echo = -n? 16} How can I get the time without having to press enter? 17} How can I avoid the potential "ECHO is off." in echoing = %myvar% 18} How does one build re-usable script function modules? 19} How can one build a delay / sleep / wait procedure for a = script? 20} Is is possible to right-justify numbers or words in a = script? 21} Do you have pointers to additional script material and = tips? 22} How do I capture the current folder name into a variable? 23} How do I get the n:th, the first and the last line of a = text file? 24} How do I get the m:th item on the n:th line of a text file? 25} How can I quote with e.g. " " an entire message? 26} How do I get the length of a string into a variable? 27} How can I remove all the blank lines from a text file? 28} How to convert a file written in IBM PC characters into = LATIN1? 29} How do I drop the first two characters of a string, and so = on? 30} Can one calculate the difference between two times in a = script? 31} How many days ago was 31.12.2003? What date it was a 100 = days ago? 32} How can I convert a decimal number to binary, octal, = hexadecimal? 33} How can I convert a binary, octal, hexadecimal into a = decimal? 34} How can I remove the quote characters from a line? 35} How can I substitute the second field on each line of my = file? 36} I start a program from my script and it hogs my command = window. 37} How can I insert a line in the middle of a file with a = script? 38} How can I set and test the errorlevel within a script file? 39} Is there a subroutine to convert a variable into uppercase? 40} How do I get the number of arguments given to a script? 41} How can I create a zero-byte file? How do I test for it? 42} What is the subroutine for testing a filename for = wildcards? 43} Is there a way of counting the number of files in a folder? 44} How do I get the first 68 columns from a text file? 45} How can I find out how many days old a file is? 46} Is a program available in the default folder or at path? 47} Is it possible to echo the redirection symbol in a script? 48} Why do some comment lines cause errors? What can I do about = it? 49} I need to reverse a text file. How do I do that fairly = quickly? 50} How do I get the position of a substring in a string? 51} How can I echo lines in different colors in NT scripts? 52} How can I enter a password into a variable without echoing = it? 53} How can I test if a disk device is ready or not? 54} How can I get the type of a disk device? 55} How to get the creation, last modified and last access of a = file? 56} How to find and move more recent files from one folder to = another? 57} How do I get a list of all my empty folders on c:\ ? 58} How do I best combine two quoted arguments into one quoted = string? 59} How do I find if a folder exists? How about visible files = in it? 60} How do I delete all but most recent 20 files in a folder? 61} How can one devise a command line calculator? 62} How can I compare within a script if two files are = identical? 63} How to perform a command on each line of file as an = argument? 64} How to count the number of lines in a file, empty lines = inclusive? 65} How do I add text in front and after each line in a text = file? = -------------------------------------------------------------------- All the best, Timo --=20 Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives = 193.166.120.5 Department of Accounting and Business Finance ; University of = Vaasa http://www.uwasa.fi/~ts/ ; FIN-65101, = Finland Timo's FAQ materials at = http://www.uwasa.fi/~ts/http/tsfaq.html=20 =20 =20 =20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in = message ... David Candy wrote in message = : Don't snip f*ckhead. I fixed you attempts to mislead the = record. Flush --=20 Marco |
#51
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
David Candy wrote in message :
Don't snip f*ckhead. I fixed you attempts to mislead the record. Flush -- Marco |
#52
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
`Huh?
Flush --=20 Marco Don't snip f*ckhead. I fixed you attempts to mislead the record. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 Over the years I've watched your spam. =20 And you have not used the killfile.Are you a masochist? =20 --=20 Marco Go away! You bother me even more with your pathetic snipping. How are people = supposed to follow what this is about. But your post and Jerold's and = Jim's have been ****ting me for years. AND IT IS SPAM designed to drive = traffic to you site. Lets take kelly. She doesn't spam. As a result I reckon she gets = thousands of referals by other users to her site (certainly a few = hundred times a day I read a post saying go to K's site). Over the years I've watched your spam. I've never seen anyone refer = anyone else to your site.=20 I've certainly not ever been. Perhaps you should only post to usenet and leave this private product = support NNTP server off your list. Of course your stupid crossposting (across usenet and private servers) = means I have to click through dialogs to even send this. We all know = finland. NAZI collabarator and when the going got tough a tratorous = ally. No ticker, no morals. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html --=20 All the Best, Kelly Microsoft-MVP Windows=AE XP 2004 Windows MVP "Winny" Award Troubleshooting Windows XP http://www.kellys-korner-xp.com Taskbar Repair Tool Plus! http://www.kellys-korner-xp.com/taskbarplus!.htm "Timo Salmi" wrote in message=20 ... Dear Readers, Before posting a CMD.EXE command line script related question please = be aware of the information and solutions material already available, = such as 94268 Mar 31 2004 ftp://garbo.uwasa.fi/pc/link/tscmd.zip tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi In case of grave difficulties in getting this file from Garbo archives see Sites with permission to mirror Garbo archives http://www.uwasa.fi/~ts/garbinfo/garbmirr.html The contents of the FAQ-like script tips collection is given below. For more command line script or near information sources please see http://www.uwasa.fi/~ts/http/http2.html#cmdscript This file TSCMDIDX.TXT lists the contents of 1CMDFAQ.TXT NT/2000/XP CMD.EXE Script Tricks in ftp://garbo.uwasa.fi/pc/link/tscmd.zip Alternatively available with the version number as ftp://garbo.uwasa.fi/pc/ts/tscmd19.zip -------------------------------------------------------------------- 1} How get today's date elements into environment variables? 2} On Windows XP how do you stop the script files from closing? 3} How can I customize the Command Prompt Window with script = commands? 4} How can I test is it on MSDOS/Win3..9x/Me or NT/2000/XP? 5} How do I get a fully qualified path name of my script? 6} How does one get yesterday's date? 7} How can I test if two files agree in size and datetime stamp? 8} How do I find all the files made at of after YYYYMMDD HHMM? 9} How can I suppress script error messages altogether? 10} How can I change the environment variable values within a FOR = loop? 11} How do I retain my original code page in these scripts? 12} How can I rename all my .JPG files sequentially in a folder? 13} How do I get the current day of the week? 14} Help! My old batch files won't work since there is no choice. 15} Is it possible to echo without linefeed like the Unix echo -n? 16} How can I get the time without having to press enter? 17} How can I avoid the potential "ECHO is off." in echoing %myvar% 18} How does one build re-usable script function modules? 19} How can one build a delay / sleep / wait procedure for a script? 20} Is is possible to right-justify numbers or words in a script? 21} Do you have pointers to additional script material and tips? 22} How do I capture the current folder name into a variable? 23} How do I get the n:th, the first and the last line of a text file? 24} How do I get the m:th item on the n:th line of a text file? 25} How can I quote with e.g. " " an entire message? 26} How do I get the length of a string into a variable? 27} How can I remove all the blank lines from a text file? 28} How to convert a file written in IBM PC characters into LATIN1? 29} How do I drop the first two characters of a string, and so on? 30} Can one calculate the difference between two times in a script? 31} How many days ago was 31.12.2003? What date it was a 100 days ago? 32} How can I convert a decimal number to binary, octal, hexadecimal? 33} How can I convert a binary, octal, hexadecimal into a decimal? 34} How can I remove the quote characters from a line? 35} How can I substitute the second field on each line of my file? 36} I start a program from my script and it hogs my command window. 37} How can I insert a line in the middle of a file with a script? 38} How can I set and test the errorlevel within a script file? 39} Is there a subroutine to convert a variable into uppercase? 40} How do I get the number of arguments given to a script? 41} How can I create a zero-byte file? How do I test for it? 42} What is the subroutine for testing a filename for wildcards? 43} Is there a way of counting the number of files in a folder? 44} How do I get the first 68 columns from a text file? 45} How can I find out how many days old a file is? 46} Is a program available in the default folder or at path? 47} Is it possible to echo the redirection symbol in a script? 48} Why do some comment lines cause errors? What can I do about it? 49} I need to reverse a text file. How do I do that fairly quickly? 50} How do I get the position of a substring in a string? 51} How can I echo lines in different colors in NT scripts? 52} How can I enter a password into a variable without echoing it? 53} How can I test if a disk device is ready or not? 54} How can I get the type of a disk device? 55} How to get the creation, last modified and last access of a file? 56} How to find and move more recent files from one folder to another? 57} How do I get a list of all my empty folders on c:\ ? 58} How do I best combine two quoted arguments into one quoted string? 59} How do I find if a folder exists? How about visible files in it? 60} How do I delete all but most recent 20 files in a folder? 61} How can one devise a command line calculator? 62} How can I compare within a script if two files are identical? 63} How to perform a command on each line of file as an argument? 64} How to count the number of lines in a file, empty lines inclusive? 65} How do I add text in front and after each line in a text file? -------------------------------------------------------------------- All the best, Timo --=20 Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5 Department of Accounting and Business Finance ; University of Vaasa http://www.uwasa.fi/~ts/ ; FIN-65101, Finland Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html=20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 Don't snip f*ckhead. I fixed you attempts to mislead the record. =20 Flush =20 --=20 Marco |
#53
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
David Candy wrote in message :
`Huh? Hu Hu Hu HU -- Marco |
#54
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
What?
--=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 `Huh? =20 Hu Hu Hu HU =20 --=20 Marco `Huh? Flush --=20 Marco Don't snip f*ckhead. I fixed you attempts to mislead the record. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 Over the years I've watched your spam. =20 And you have not used the killfile.Are you a masochist? =20 --=20 Marco Go away! You bother me even more with your pathetic snipping. How are people = supposed to follow what this is about. But your post and Jerold's and = Jim's have been ****ting me for years. AND IT IS SPAM designed to drive = traffic to you site. Lets take kelly. She doesn't spam. As a result I reckon she gets = thousands of referals by other users to her site (certainly a few = hundred times a day I read a post saying go to K's site). Over the years I've watched your spam. I've never seen anyone refer = anyone else to your site.=20 I've certainly not ever been. Perhaps you should only post to usenet and leave this private product = support NNTP server off your list. Of course your stupid crossposting (across usenet and private servers) = means I have to click through dialogs to even send this. We all know = finland. NAZI collabarator and when the going got tough a tratorous = ally. No ticker, no morals. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html --=20 All the Best, Kelly Microsoft-MVP Windows=AE XP 2004 Windows MVP "Winny" Award Troubleshooting Windows XP http://www.kellys-korner-xp.com Taskbar Repair Tool Plus! http://www.kellys-korner-xp.com/taskbarplus!.htm "Timo Salmi" wrote in message=20 ... Dear Readers, Before posting a CMD.EXE command line script related question please = be aware of the information and solutions material already available, = such as 94268 Mar 31 2004 ftp://garbo.uwasa.fi/pc/link/tscmd.zip tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi In case of grave difficulties in getting this file from Garbo archives see Sites with permission to mirror Garbo archives http://www.uwasa.fi/~ts/garbinfo/garbmirr.html The contents of the FAQ-like script tips collection is given below. For more command line script or near information sources please see http://www.uwasa.fi/~ts/http/http2.html#cmdscript This file TSCMDIDX.TXT lists the contents of 1CMDFAQ.TXT NT/2000/XP CMD.EXE Script Tricks in ftp://garbo.uwasa.fi/pc/link/tscmd.zip Alternatively available with the version number as ftp://garbo.uwasa.fi/pc/ts/tscmd19.zip -------------------------------------------------------------------- 1} How get today's date elements into environment variables? 2} On Windows XP how do you stop the script files from closing? 3} How can I customize the Command Prompt Window with script = commands? 4} How can I test is it on MSDOS/Win3..9x/Me or NT/2000/XP? 5} How do I get a fully qualified path name of my script? 6} How does one get yesterday's date? 7} How can I test if two files agree in size and datetime stamp? 8} How do I find all the files made at of after YYYYMMDD HHMM? 9} How can I suppress script error messages altogether? 10} How can I change the environment variable values within a FOR = loop? 11} How do I retain my original code page in these scripts? 12} How can I rename all my .JPG files sequentially in a folder? 13} How do I get the current day of the week? 14} Help! My old batch files won't work since there is no choice. 15} Is it possible to echo without linefeed like the Unix echo -n? 16} How can I get the time without having to press enter? 17} How can I avoid the potential "ECHO is off." in echoing %myvar% 18} How does one build re-usable script function modules? 19} How can one build a delay / sleep / wait procedure for a script? 20} Is is possible to right-justify numbers or words in a script? 21} Do you have pointers to additional script material and tips? 22} How do I capture the current folder name into a variable? 23} How do I get the n:th, the first and the last line of a text file? 24} How do I get the m:th item on the n:th line of a text file? 25} How can I quote with e.g. " " an entire message? 26} How do I get the length of a string into a variable? 27} How can I remove all the blank lines from a text file? 28} How to convert a file written in IBM PC characters into LATIN1? 29} How do I drop the first two characters of a string, and so on? 30} Can one calculate the difference between two times in a script? 31} How many days ago was 31.12.2003? What date it was a 100 days ago? 32} How can I convert a decimal number to binary, octal, hexadecimal? 33} How can I convert a binary, octal, hexadecimal into a decimal? 34} How can I remove the quote characters from a line? 35} How can I substitute the second field on each line of my file? 36} I start a program from my script and it hogs my command window. 37} How can I insert a line in the middle of a file with a script? 38} How can I set and test the errorlevel within a script file? 39} Is there a subroutine to convert a variable into uppercase? 40} How do I get the number of arguments given to a script? 41} How can I create a zero-byte file? How do I test for it? 42} What is the subroutine for testing a filename for wildcards? 43} Is there a way of counting the number of files in a folder? 44} How do I get the first 68 columns from a text file? 45} How can I find out how many days old a file is? 46} Is a program available in the default folder or at path? 47} Is it possible to echo the redirection symbol in a script? 48} Why do some comment lines cause errors? What can I do about it? 49} I need to reverse a text file. How do I do that fairly quickly? 50} How do I get the position of a substring in a string? 51} How can I echo lines in different colors in NT scripts? 52} How can I enter a password into a variable without echoing it? 53} How can I test if a disk device is ready or not? 54} How can I get the type of a disk device? 55} How to get the creation, last modified and last access of a file? 56} How to find and move more recent files from one folder to another? 57} How do I get a list of all my empty folders on c:\ ? 58} How do I best combine two quoted arguments into one quoted string? 59} How do I find if a folder exists? How about visible files in it? 60} How do I delete all but most recent 20 files in a folder? 61} How can one devise a command line calculator? 62} How can I compare within a script if two files are identical? 63} How to perform a command on each line of file as an argument? 64} How to count the number of lines in a file, empty lines inclusive? 65} How do I add text in front and after each line in a text file? -------------------------------------------------------------------- All the best, Timo --=20 Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5 Department of Accounting and Business Finance ; University of Vaasa http://www.uwasa.fi/~ts/ ; FIN-65101, Finland Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html=20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 Don't snip f*ckhead. I fixed you attempts to mislead the record. =20 Flush =20 --=20 Marco |
#55
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
Well, well. We seem to have a real live one at our hands.
David Candy wrote: Don't snip f*ckhead. I fixed you attempts to mislead the record. http://www.uwasa.fi/~ts/http/crackpot.html finland. NAZI collabarator and when the going got tough a tratorous = http://www.uwasa.fi/~ts/http/abusive.html#godwin All the best, Timo -- Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5 Department of Accounting and Business Finance ; University of Vaasa http://www.uwasa.fi/~ts/ ; FIN-65101, Finland Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html |
#56
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
David Candy wrote in message :
Don't snip f*ckhead. I fixed you attempts to mislead the record. Flush -- Marco |
#57
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
The spammer is a person who puts a lot of effort into helping people. I =
only object to the spamming, which is not major, only benefits his ego = not his wallet. Others here do the same and I ignore it for reasons of = not making waves (as the person is an ok person and I don't want to make = this particular person an enemy). --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "anonymous" wrote in message = ... David, report this smuck to his ISP for abuse with spam and be done = with it! =20 ----- David Candy wrote: ----- =20 What? =20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in = message ... David Candy wrote in message = : `Huh? Hu Hu Hu HU --=20 Marco `Huh? =20 Flush =20 --=20 Marco =20 Don't snip f*ckhead. I fixed you attempts to mislead the record. =20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in = message ... David Candy wrote in message = : Over the years I've watched your spam. And you have not used the killfile.Are you a masochist? --=20 Marco Go away! You bother me even more with your pathetic snipping. How are = people supposed to follow what this is about. But your post and Jerold's = and Jim's have been ****ting me for years. AND IT IS SPAM designed to = drive traffic to you site. =20 Lets take kelly. She doesn't spam. As a result I reckon she gets = thousands of referals by other users to her site (certainly a few = hundred times a day I read a post saying go to K's site). =20 Over the years I've watched your spam. I've never seen anyone = refer anyone else to your site.=20 =20 I've certainly not ever been. =20 Perhaps you should only post to usenet and leave this private = product support NNTP server off your list. =20 Of course your stupid crossposting (across usenet and private = servers) means I have to click through dialogs to even send this. We all = know finland. NAZI collabarator and when the going got tough a tratorous = ally. No ticker, no morals. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html =20 --=20 All the Best, Kelly =20 Microsoft-MVP Windows=C2=AE XP 2004 Windows MVP "Winny" Award =20 Troubleshooting Windows XP http://www.kellys-korner-xp.com =20 Taskbar Repair Tool Plus! http://www.kellys-korner-xp.com/taskbarplus!.htm =20 =20 "Timo Salmi" wrote in message=20 ... Dear Readers, Before posting a CMD.EXE command line script related question = please be aware of the information and solutions material already = available, such as 94268 Mar 31 2004 ftp://garbo.uwasa.fi/pc/link/tscmd.zip tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi In case of grave difficulties in getting this file from Garbo = archives see Sites with permission to mirror Garbo archives http://www.uwasa.fi/~ts/garbinfo/garbmirr.html The contents of the FAQ-like script tips collection is given = below. For more command line script or near information sources please = see http://www.uwasa.fi/~ts/http/http2.html#cmdscript This file TSCMDIDX.TXT lists the contents of 1CMDFAQ.TXT NT/2000/XP CMD.EXE Script Tricks in ftp://garbo.uwasa.fi/pc/link/tscmd.zip Alternatively available with the version number as ftp://garbo.uwasa.fi/pc/ts/tscmd19.zip = -------------------------------------------------------------------- 1} How get today's date elements into environment variables? 2} On Windows XP how do you stop the script files from = closing? 3} How can I customize the Command Prompt Window with script = commands? 4} How can I test is it on MSDOS/Win3..9x/Me or NT/2000/XP? 5} How do I get a fully qualified path name of my script? 6} How does one get yesterday's date? 7} How can I test if two files agree in size and datetime = stamp? 8} How do I find all the files made at of after YYYYMMDD HHMM? 9} How can I suppress script error messages altogether? 10} How can I change the environment variable values within a = FOR loop? 11} How do I retain my original code page in these scripts? 12} How can I rename all my .JPG files sequentially in a = folder? 13} How do I get the current day of the week? 14} Help! My old batch files won't work since there is no = choice. 15} Is it possible to echo without linefeed like the Unix echo = -n? 16} How can I get the time without having to press enter? 17} How can I avoid the potential "ECHO is off." in echoing = %myvar% 18} How does one build re-usable script function modules? 19} How can one build a delay / sleep / wait procedure for a = script? 20} Is is possible to right-justify numbers or words in a = script? 21} Do you have pointers to additional script material and = tips? 22} How do I capture the current folder name into a variable? 23} How do I get the n:th, the first and the last line of a = text file? 24} How do I get the m:th item on the n:th line of a text file? 25} How can I quote with e.g. " " an entire message? 26} How do I get the length of a string into a variable? 27} How can I remove all the blank lines from a text file? 28} How to convert a file written in IBM PC characters into = LATIN1? 29} How do I drop the first two characters of a string, and so = on? 30} Can one calculate the difference between two times in a = script? 31} How many days ago was 31.12.2003? What date it was a 100 = days ago? 32} How can I convert a decimal number to binary, octal, = hexadecimal? 33} How can I convert a binary, octal, hexadecimal into a = decimal? 34} How can I remove the quote characters from a line? 35} How can I substitute the second field on each line of my = file? 36} I start a program from my script and it hogs my command = window. 37} How can I insert a line in the middle of a file with a = script? 38} How can I set and test the errorlevel within a script file? 39} Is there a subroutine to convert a variable into uppercase? 40} How do I get the number of arguments given to a script? 41} How can I create a zero-byte file? How do I test for it? 42} What is the subroutine for testing a filename for = wildcards? 43} Is there a way of counting the number of files in a folder? 44} How do I get the first 68 columns from a text file? 45} How can I find out how many days old a file is? 46} Is a program available in the default folder or at path? 47} Is it possible to echo the redirection symbol in a script? 48} Why do some comment lines cause errors? What can I do about = it? 49} I need to reverse a text file. How do I do that fairly = quickly? 50} How do I get the position of a substring in a string? 51} How can I echo lines in different colors in NT scripts? 52} How can I enter a password into a variable without echoing = it? 53} How can I test if a disk device is ready or not? 54} How can I get the type of a disk device? 55} How to get the creation, last modified and last access of a = file? 56} How to find and move more recent files from one folder to = another? 57} How do I get a list of all my empty folders on c:\ ? 58} How do I best combine two quoted arguments into one quoted = string? 59} How do I find if a folder exists? How about visible files = in it? 60} How do I delete all but most recent 20 files in a folder? 61} How can one devise a command line calculator? 62} How can I compare within a script if two files are = identical? 63} How to perform a command on each line of file as an = argument? 64} How to count the number of lines in a file, empty lines = inclusive? 65} How do I add text in front and after each line in a text = file? = -------------------------------------------------------------------- All the best, Timo --=20 Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives = 193.166.120.5 Department of Accounting and Business Finance ; University of = Vaasa http://www.uwasa.fi/~ts/ ; FIN-65101, = Finland Timo's FAQ materials at = http://www.uwasa.fi/~ts/http/tsfaq.html=20 =20 =20 =20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in = message ... David Candy wrote in message = : Don't snip f*ckhead. I fixed you attempts to mislead the = record. Flush --=20 Marco |
#58
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
`Huh?
Flush --=20 Marco Don't snip f*ckhead. I fixed you attempts to mislead the record. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 Over the years I've watched your spam. =20 And you have not used the killfile.Are you a masochist? =20 --=20 Marco Go away! You bother me even more with your pathetic snipping. How are people = supposed to follow what this is about. But your post and Jerold's and = Jim's have been ****ting me for years. AND IT IS SPAM designed to drive = traffic to you site. Lets take kelly. She doesn't spam. As a result I reckon she gets = thousands of referals by other users to her site (certainly a few = hundred times a day I read a post saying go to K's site). Over the years I've watched your spam. I've never seen anyone refer = anyone else to your site.=20 I've certainly not ever been. Perhaps you should only post to usenet and leave this private product = support NNTP server off your list. Of course your stupid crossposting (across usenet and private servers) = means I have to click through dialogs to even send this. We all know = finland. NAZI collabarator and when the going got tough a tratorous = ally. No ticker, no morals. --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html --=20 All the Best, Kelly Microsoft-MVP Windows=AE XP 2004 Windows MVP "Winny" Award Troubleshooting Windows XP http://www.kellys-korner-xp.com Taskbar Repair Tool Plus! http://www.kellys-korner-xp.com/taskbarplus!.htm "Timo Salmi" wrote in message=20 ... Dear Readers, Before posting a CMD.EXE command line script related question please = be aware of the information and solutions material already available, = such as 94268 Mar 31 2004 ftp://garbo.uwasa.fi/pc/link/tscmd.zip tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi In case of grave difficulties in getting this file from Garbo archives see Sites with permission to mirror Garbo archives http://www.uwasa.fi/~ts/garbinfo/garbmirr.html The contents of the FAQ-like script tips collection is given below. For more command line script or near information sources please see http://www.uwasa.fi/~ts/http/http2.html#cmdscript This file TSCMDIDX.TXT lists the contents of 1CMDFAQ.TXT NT/2000/XP CMD.EXE Script Tricks in ftp://garbo.uwasa.fi/pc/link/tscmd.zip Alternatively available with the version number as ftp://garbo.uwasa.fi/pc/ts/tscmd19.zip -------------------------------------------------------------------- 1} How get today's date elements into environment variables? 2} On Windows XP how do you stop the script files from closing? 3} How can I customize the Command Prompt Window with script = commands? 4} How can I test is it on MSDOS/Win3..9x/Me or NT/2000/XP? 5} How do I get a fully qualified path name of my script? 6} How does one get yesterday's date? 7} How can I test if two files agree in size and datetime stamp? 8} How do I find all the files made at of after YYYYMMDD HHMM? 9} How can I suppress script error messages altogether? 10} How can I change the environment variable values within a FOR = loop? 11} How do I retain my original code page in these scripts? 12} How can I rename all my .JPG files sequentially in a folder? 13} How do I get the current day of the week? 14} Help! My old batch files won't work since there is no choice. 15} Is it possible to echo without linefeed like the Unix echo -n? 16} How can I get the time without having to press enter? 17} How can I avoid the potential "ECHO is off." in echoing %myvar% 18} How does one build re-usable script function modules? 19} How can one build a delay / sleep / wait procedure for a script? 20} Is is possible to right-justify numbers or words in a script? 21} Do you have pointers to additional script material and tips? 22} How do I capture the current folder name into a variable? 23} How do I get the n:th, the first and the last line of a text file? 24} How do I get the m:th item on the n:th line of a text file? 25} How can I quote with e.g. " " an entire message? 26} How do I get the length of a string into a variable? 27} How can I remove all the blank lines from a text file? 28} How to convert a file written in IBM PC characters into LATIN1? 29} How do I drop the first two characters of a string, and so on? 30} Can one calculate the difference between two times in a script? 31} How many days ago was 31.12.2003? What date it was a 100 days ago? 32} How can I convert a decimal number to binary, octal, hexadecimal? 33} How can I convert a binary, octal, hexadecimal into a decimal? 34} How can I remove the quote characters from a line? 35} How can I substitute the second field on each line of my file? 36} I start a program from my script and it hogs my command window. 37} How can I insert a line in the middle of a file with a script? 38} How can I set and test the errorlevel within a script file? 39} Is there a subroutine to convert a variable into uppercase? 40} How do I get the number of arguments given to a script? 41} How can I create a zero-byte file? How do I test for it? 42} What is the subroutine for testing a filename for wildcards? 43} Is there a way of counting the number of files in a folder? 44} How do I get the first 68 columns from a text file? 45} How can I find out how many days old a file is? 46} Is a program available in the default folder or at path? 47} Is it possible to echo the redirection symbol in a script? 48} Why do some comment lines cause errors? What can I do about it? 49} I need to reverse a text file. How do I do that fairly quickly? 50} How do I get the position of a substring in a string? 51} How can I echo lines in different colors in NT scripts? 52} How can I enter a password into a variable without echoing it? 53} How can I test if a disk device is ready or not? 54} How can I get the type of a disk device? 55} How to get the creation, last modified and last access of a file? 56} How to find and move more recent files from one folder to another? 57} How do I get a list of all my empty folders on c:\ ? 58} How do I best combine two quoted arguments into one quoted string? 59} How do I find if a folder exists? How about visible files in it? 60} How do I delete all but most recent 20 files in a folder? 61} How can one devise a command line calculator? 62} How can I compare within a script if two files are identical? 63} How to perform a command on each line of file as an argument? 64} How to count the number of lines in a file, empty lines inclusive? 65} How do I add text in front and after each line in a text file? -------------------------------------------------------------------- All the best, Timo --=20 Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5 Department of Accounting and Business Finance ; University of Vaasa http://www.uwasa.fi/~ts/ ; FIN-65101, Finland Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html=20 --=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Marco Maier Said" wrote in message = ... David Candy wrote in message = : =20 Don't snip f*ckhead. I fixed you attempts to mislead the record. =20 Flush =20 --=20 Marco |
#59
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
I canceled your spam.
--=20 ---------------------------------------------------------- And the band played .... http://www.livejournal.com/users/aldon/74121.html "Timo Salmi" wrote in message = ... Well, well. We seem to have a real live one at our hands. =20 David Candy wrote: Don't snip f*ckhead. I fixed you attempts to mislead the record. =20 http://www.uwasa.fi/~ts/http/crackpot.html =20 finland. NAZI collabarator and when the going got tough a tratorous = =3D =20 http://www.uwasa.fi/~ts/http/abusive.html#godwin =20 All the best, Timo =20 --=20 Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5 Department of Accounting and Business Finance ; University of Vaasa http://www.uwasa.fi/~ts/ ; FIN-65101, Finland Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html |
#60
|
|||
|
|||
"Frequently Asked Questions about CMD.EXE Command Line Scripts"
David Candy wrote :
We all know finland. NAZI collabarator and when the going got tough a tratorous ally. Are you Jew? |
Thread Tools | |
Display Modes | |
|
|