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 |
#1
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
In MS-DOS 7.1, it is missing 2 important command-lines for me, to use in my
batch programmings : - INPUT.EXE : it should prompt for the user to type from his keyboard a 32 characters line of text, and then press [ENTER], and then the line text should be entered into an environment variable, passed as a parameter to "INPUT.EXE", without any hassle, like writing the text on a temporary file I dont know where. Where to find that ? - SLEEP.EXE : it should pause the execution of the batch file, for a given duration, given as a parameter, for example, in miliseconds, or even in seconds, and it should be accurate, whatever is the speed of the precessor (very important to be valid). Where to find that ? By the way, 5 years ago, there was a site like www.cdrom.com, where were still available all the DOS freewares and sharewares and tools and utilities as the biggest collection in the world, but now, it seems that collection is no more on the Net ! Could you tell me what URL to use to find again such a big collection of only DOS freewares, sharewares, tools, utilities, to use for downloading, or for ordering CD-ROMS Compilations from all the Collection available ? Thanks a lot ! Frederic Laroche. |
#2
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
On Thu, 19 Jan 2006 20:48:01 -0800, "bestofcomputer"
put finger to keyboard and composed: In MS-DOS 7.1, it is missing 2 important command-lines for me, to use in my batch programmings : - INPUT.EXE : it should prompt for the user to type from his keyboard a 32 characters line of text, and then press [ENTER], and then the line text should be entered into an environment variable, passed as a parameter to "INPUT.EXE", without any hassle, like writing the text on a temporary file I dont know where. Where to find that ? - SLEEP.EXE : it should pause the execution of the batch file, for a given duration, given as a parameter, for example, in miliseconds, or even in seconds, and it should be accurate, whatever is the speed of the precessor (very important to be valid). Where to find that ? By the way, 5 years ago, there was a site like www.cdrom.com, where were still available all the DOS freewares and sharewares and tools and utilities as the biggest collection in the world, but now, it seems that collection is no more on the Net ! Could you tell me what URL to use to find again such a big collection of only DOS freewares, sharewares, tools, utilities, to use for downloading, or for ordering CD-ROMS Compilations from all the Collection available ? Thanks a lot ! Frederic Laroche. Sleep.exe is part of the Win98 Resource Kit. It should be available here, although I can't be sure because the site is down at present: ftp://ftp.microsoft.com/Services/Tec...s/win98/reskit Here are two other ways to implement a 10 sec wait, but they rely on certain tricks: ping -n 10 127.0.0.1 nul rem | choice /n /t:y,10 nul Choice.exe is included in the Reskit, although it is also available as a component of DOS 6.22. - Franc Zabkar -- Please remove one 'i' from my address when replying by email. |
#3
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
Hi.
Thank you for SLEEP.EXE : it is perfect. But CHOICE.EXE behaves exactly the same as the old CHOICE.COM. I dont see any difference between them ! And it is doing what I want to do : it is asking to press a key, among a selected number of choices of keys. But it never collect from the user any text typed by him on the keyboard ! I need an INPUT.EXE that could collect a full line of text typed by the user, and then this text will be assigned to a envireonment variable of which name would be as a parameter of INPUT.EXE. So, please, try again to help me about that command, because DOS has always suffered of bad I/O commands, and I desperatly need a tool like that. Anyone interested into programming such a DOS tool ? Maybe everybody has shifted to visual studio 2005, and nobody cares no more for programming a very nice and cool DOS tool ? Where can I find that kind of support ? Please help me ! Thanks. Frederic Laroche. "Franc Zabkar" wrote: On Thu, 19 Jan 2006 20:48:01 -0800, "bestofcomputer" put finger to keyboard and composed: In MS-DOS 7.1, it is missing 2 important command-lines for me, to use in my batch programmings : - INPUT.EXE : it should prompt for the user to type from his keyboard a 32 characters line of text, and then press [ENTER], and then the line text should be entered into an environment variable, passed as a parameter to "INPUT.EXE", without any hassle, like writing the text on a temporary file I dont know where. Where to find that ? - SLEEP.EXE : it should pause the execution of the batch file, for a given duration, given as a parameter, for example, in miliseconds, or even in seconds, and it should be accurate, whatever is the speed of the precessor (very important to be valid). Where to find that ? By the way, 5 years ago, there was a site like www.cdrom.com, where were still available all the DOS freewares and sharewares and tools and utilities as the biggest collection in the world, but now, it seems that collection is no more on the Net ! Could you tell me what URL to use to find again such a big collection of only DOS freewares, sharewares, tools, utilities, to use for downloading, or for ordering CD-ROMS Compilations from all the Collection available ? Thanks a lot ! Frederic Laroche. Sleep.exe is part of the Win98 Resource Kit. It should be available here, although I can't be sure because the site is down at present: ftp://ftp.microsoft.com/Services/Tec...s/win98/reskit Here are two other ways to implement a 10 sec wait, but they rely on certain tricks: ping -n 10 127.0.0.1 nul rem | choice /n /t:y,10 nul Choice.exe is included in the Reskit, although it is also available as a component of DOS 6.22. - Franc Zabkar -- Please remove one 'i' from my address when replying by email. |
#4
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
write it in VBScript
works in all windows versions similar structure to DOS batch programming text input validation redirection external program calls and parameter passing all work out of the box examples takes input text and changes the default title bar in IE from dougKnox's web site ______cut_ 'chgietitle.vbs - Change Title bar text in IE5 'or restores to default value of Microsoft Internet Explorer '© Doug Knox - rev 12/05/99 Option Explicit 'Declare variables Dim WSHShell, n, MyBox, p, p1, t, cn, Caption 'set variables and Shell Set WSHShell = WScript.CreateObject("WScript.Shell") p = "HKCU\Software\Microsoft\Internet Explorer\Main\Window Title" p1 = "HKLM\Software\Microsoft\Internet Explorer\Main\Window Title" t = "Change IE Title Bar Text" Caption = "Would you like to use the default" & vbCR Caption = Caption & "value of Microsoft Internet Explorer?" 'This section reads the current value if any and puts it in an Input Box 'where you may change it as you like for Internet Explorer 'adds/changes keys in HKCU MyBox = MsgBox(Caption, 4131, t) If MyBox = vbCancel Then WScript.Quit ElseIf MyBox = vbNo Then On Error Resume Next n = WSHShell.RegRead(p) On Error Goto 0 cn = InputBox("Type new Title Text and click OK", t, n) If cn "" then WSHShell.RegWrite p, cn WSHShell.RegWrite p1, cn End If ElseIf MyBox = vbYes Then WSHShell.RegDelete p WSHShell.RegDelete p1 End If ______________________________________ you may very much find the script to do what you want is already written., except for a blank for you to put the program name -- - Adaware http://www.lavasoft.de spybot http://security.kolla.de AVG free antivirus http://www.grisoft.com Etrust/Vet/CA.online Antivirus scan http://www3.ca.com/securityadvisor/virusinfo/scan.aspx Panda online AntiVirus scan http://www.activescan.com Panda online AntiSpyware Scan http://www.pandasoftware.com/virus_info/spyware/test/ Catalog of removal tools (1) http://www.pandasoftware.com/download/utilities/ Catalog of removal tools (2) http://www3.ca.com/securityadvisor/n...aspx?CID=40387 Trouble Shooting guide to Windows http://mvps.org/winhelp2002/ Blocking Unwanted Parasites with a Hosts file http://mvps.org/winhelp2002/hosts.htm links provided as a courtesy, read all instructions on the pages before use Grateful thanks to the authors/webmasters _ "bestofcomputer" wrote in message ... In MS-DOS 7.1, it is missing 2 important command-lines for me, to use in my batch programmings : - INPUT.EXE : it should prompt for the user to type from his keyboard a 32 characters line of text, and then press [ENTER], and then the line text should be entered into an environment variable, passed as a parameter to "INPUT.EXE", without any hassle, like writing the text on a temporary file I dont know where. Where to find that ? - SLEEP.EXE : it should pause the execution of the batch file, for a given duration, given as a parameter, for example, in miliseconds, or even in seconds, and it should be accurate, whatever is the speed of the precessor (very important to be valid). Where to find that ? By the way, 5 years ago, there was a site like www.cdrom.com, where were still available all the DOS freewares and sharewares and tools and utilities as the biggest collection in the world, but now, it seems that collection is no more on the Net ! Could you tell me what URL to use to find again such a big collection of only DOS freewares, sharewares, tools, utilities, to use for downloading, or for ordering CD-ROMS Compilations from all the Collection available ? Thanks a lot ! Frederic Laroche. |
#5
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
or try this one that takes a text input and then opens a web search
engine(sort of) with the text ____Cut sillyq.vbs_____ Option Explicit Dim objShell,A,B,C A="" Set objShell = CreateObject("WScript.Shell") A=InputBox("Enter Your query Now. I will try to find an answer","Ask Rob Silly Questions") IF not a="" then B=split(A," ") C=Join(B,"+") objShell.Run "http://www.just****inggoogleit.com/search?query=" & CHR(34) & C & Chr(34) Else MsgBox " No Question ?? "+vbcrlf+" OK I cant help then "+vbcrlf+" Send this file Sillyq.vbs to your friends.",vbOKOnly + vbInformation, "Shameless arent I" end if ____end Cut____ -- - Adaware http://www.lavasoft.de spybot http://security.kolla.de AVG free antivirus http://www.grisoft.com Etrust/Vet/CA.online Antivirus scan http://www3.ca.com/securityadvisor/virusinfo/scan.aspx Panda online AntiVirus scan http://www.activescan.com Panda online AntiSpyware Scan http://www.pandasoftware.com/virus_info/spyware/test/ Catalog of removal tools (1) http://www.pandasoftware.com/download/utilities/ Catalog of removal tools (2) http://www3.ca.com/securityadvisor/n...aspx?CID=40387 Trouble Shooting guide to Windows http://mvps.org/winhelp2002/ Blocking Unwanted Parasites with a Hosts file http://mvps.org/winhelp2002/hosts.htm links provided as a courtesy, read all instructions on the pages before use Grateful thanks to the authors/webmasters _ "AlmostBob" wrote in message ... write it in VBScript works in all windows versions similar structure to DOS batch programming text input validation redirection external program calls and parameter passing all work out of the box examples takes input text and changes the default title bar in IE from dougKnox's web site ______cut_ 'chgietitle.vbs - Change Title bar text in IE5 'or restores to default value of Microsoft Internet Explorer '© Doug Knox - rev 12/05/99 Option Explicit 'Declare variables Dim WSHShell, n, MyBox, p, p1, t, cn, Caption 'set variables and Shell Set WSHShell = WScript.CreateObject("WScript.Shell") p = "HKCU\Software\Microsoft\Internet Explorer\Main\Window Title" p1 = "HKLM\Software\Microsoft\Internet Explorer\Main\Window Title" t = "Change IE Title Bar Text" Caption = "Would you like to use the default" & vbCR Caption = Caption & "value of Microsoft Internet Explorer?" 'This section reads the current value if any and puts it in an Input Box 'where you may change it as you like for Internet Explorer 'adds/changes keys in HKCU MyBox = MsgBox(Caption, 4131, t) If MyBox = vbCancel Then WScript.Quit ElseIf MyBox = vbNo Then On Error Resume Next n = WSHShell.RegRead(p) On Error Goto 0 cn = InputBox("Type new Title Text and click OK", t, n) If cn "" then WSHShell.RegWrite p, cn WSHShell.RegWrite p1, cn End If ElseIf MyBox = vbYes Then WSHShell.RegDelete p WSHShell.RegDelete p1 End If ______________________________________ you may very much find the script to do what you want is already written., except for a blank for you to put the program name -- - Adaware http://www.lavasoft.de spybot http://security.kolla.de AVG free antivirus http://www.grisoft.com Etrust/Vet/CA.online Antivirus scan http://www3.ca.com/securityadvisor/virusinfo/scan.aspx Panda online AntiVirus scan http://www.activescan.com Panda online AntiSpyware Scan http://www.pandasoftware.com/virus_info/spyware/test/ Catalog of removal tools (1) http://www.pandasoftware.com/download/utilities/ Catalog of removal tools (2) http://www3.ca.com/securityadvisor/n...aspx?CID=40387 Trouble Shooting guide to Windows http://mvps.org/winhelp2002/ Blocking Unwanted Parasites with a Hosts file http://mvps.org/winhelp2002/hosts.htm links provided as a courtesy, read all instructions on the pages before use Grateful thanks to the authors/webmasters _ "bestofcomputer" wrote in message ... In MS-DOS 7.1, it is missing 2 important command-lines for me, to use in my batch programmings : - INPUT.EXE : it should prompt for the user to type from his keyboard a 32 characters line of text, and then press [ENTER], and then the line text should be entered into an environment variable, passed as a parameter to "INPUT.EXE", without any hassle, like writing the text on a temporary file I dont know where. Where to find that ? - SLEEP.EXE : it should pause the execution of the batch file, for a given duration, given as a parameter, for example, in miliseconds, or even in seconds, and it should be accurate, whatever is the speed of the precessor (very important to be valid). Where to find that ? By the way, 5 years ago, there was a site like www.cdrom.com, where were still available all the DOS freewares and sharewares and tools and utilities as the biggest collection in the world, but now, it seems that collection is no more on the Net ! Could you tell me what URL to use to find again such a big collection of only DOS freewares, sharewares, tools, utilities, to use for downloading, or for ordering CD-ROMS Compilations from all the Collection available ? Thanks a lot ! Frederic Laroche. |
#6
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
some of the text lines wrapped in the prior post, I keep forgetting about
that, _ "AlmostBob" wrote in message ... or try this one that takes a text input and then opens a web search engine(sort of) with the text ____Cut sillyq.vbs_____ Option Explicit Dim objShell,A,B,C A="" Set objShell = CreateObject("WScript.Shell") A=InputBox("Enter Your query Now. I will try to find an answer","Ask Rob Silly Questions") IF not a="" then B=split(A," ") C=Join(B,"+") objShell.Run "http://www.just****inggoogleit.com/search?query=" & CHR(34) & C & Chr(34) Else MsgBox " No Question ?? "+vbcrlf+" OK I cant help then "+vbcrlf+" Send this file Sillyq.vbs to your friends.",vbOKOnly + vbInformation, "Shameless arent I" end if ____end Cut____ its surprising how few really silly email questions arrive at the helpdesk since each terminal now has a 'ask silly questions link' on it, the users get quick answers, and a giggle, answers often include the 'disabled by administrator, if you require access to this function please contact your supervisor, ,' 401 page. makes group and user permissions real easy to administer, all the permissions are set from this workstation Got to love RSP time |
#7
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
On Fri, 20 Jan 2006 02:08:02 -0800, "bestofcomputer"
put finger to keyboard and composed: Hi. Thank you for SLEEP.EXE : it is perfect. But CHOICE.EXE behaves exactly the same as the old CHOICE.COM. I dont see any difference between them ! Yes, that was a serious brain fart. I was about to post a correction to that effect but you beat me to it. I get confused because not all Win9x DOS commands are installed by default. The remainder are in the Oldmsdos directory on the Win9x CD. And it is doing what I want to do : it is asking to press a key, among a selected number of choices of keys. But it never collect from the user any text typed by him on the keyboard ! The Choice command incorporates a user defined timeout in the event that it receives no input. The following trick takes advantage of this featu rem | choice /n /t:y,10 nul The Rem command pipes its null output to Choice, thus ensuring that Choice receives no input, which in turn ensures that Choice times out for the specified time. Therefore, in this particular case, Choice provides a "sleep" function, not an input function. I need an INPUT.EXE that could collect a full line of text typed by the user, and then this text will be assigned to a envireonment variable of which name would be as a parameter of INPUT.EXE. I suggest you ask this question at alt.msdos.batch. You are guaranteed to get an answer there. I think Benny Pedersen has devised an input routine using pure batch commands, ie one without an external utility. So, please, try again to help me about that command, ... My answer did not attempt to provide a solution for your input problem. Sorry for the confusion. - Franc Zabkar -- Please remove one 'i' from my address when replying by email. |
#8
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
"AlmostBob" wrote in message ... some of the text lines wrapped in the prior post, I keep forgetting about that, _ "AlmostBob" wrote in message ... or try this one that takes a text input and then opens a web search engine(sort of) with the text ____Cut sillyq.vbs_____ Option Explicit Dim objShell,A,B,C A="" Set objShell = CreateObject("WScript.Shell") A=InputBox("Enter Your query Now. I will try to find an answer","Ask Rob Silly Questions") IF not a="" then B=split(A," ") C=Join(B,"+") objShell.Run "http://www.just****inggoogleit.com/search?query=" & CHR(34) & C & Chr(34) Else MsgBox " No Question ?? "+vbcrlf+" OK I cant help then "+vbcrlf+" Send this file Sillyq.vbs to your friends.",vbOKOnly + vbInformation, "Shameless arent I" end if ____end Cut____ its surprising how few really silly email questions arrive at the helpdesk since each terminal now has a 'ask silly questions link' on it, the users get quick answers, and a giggle, answers often include the 'disabled by administrator, if you require access to this function please contact your supervisor, ,' 401 page. makes group and user permissions real easy to administer, all the permissions are set from this workstation Got to love RSP time look here , there is a downloadable "input" file that does what i think you are looking for (scroll down) http://www.bookcase.com/library/soft...til.batch.html |
#9
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
Thank all of you guys for your posts.
But still I dont find my INPUT.EXE ! The forum : alt.msdos.batch is maybe good, but what is the URL to type to access to it ? Please give me a clue ? The link : www.bookcase.com is unaccessible, so no possible to get anything from there ! Please give me another clue ? And about the VB Scripts : very good job, I appreciate a lot ! But excuse me : How am I supposed to execute a VB script under a DOS Boot only ? Because this is my main Point, and you didnt get it, it seems... I am sorry, but I need more help, still ! Thanks anyway. Bye. Frederic Laroche. "Haggis" wrote: "AlmostBob" wrote in message ... some of the text lines wrapped in the prior post, I keep forgetting about that, _ "AlmostBob" wrote in message ... or try this one that takes a text input and then opens a web search engine(sort of) with the text ____Cut sillyq.vbs_____ Option Explicit Dim objShell,A,B,C A="" Set objShell = CreateObject("WScript.Shell") A=InputBox("Enter Your query Now. I will try to find an answer","Ask Rob Silly Questions") IF not a="" then B=split(A," ") C=Join(B,"+") objShell.Run "http://www.just****inggoogleit.com/search?query=" & CHR(34) & C & Chr(34) Else MsgBox " No Question ?? "+vbcrlf+" OK I cant help then "+vbcrlf+" Send this file Sillyq.vbs to your friends.",vbOKOnly + vbInformation, "Shameless arent I" end if ____end Cut____ its surprising how few really silly email questions arrive at the helpdesk since each terminal now has a 'ask silly questions link' on it, the users get quick answers, and a giggle, answers often include the 'disabled by administrator, if you require access to this function please contact your supervisor, ,' 401 page. makes group and user permissions real easy to administer, all the permissions are set from this workstation Got to love RSP time look here , there is a downloadable "input" file that does what i think you are looking for (scroll down) http://www.bookcase.com/library/soft...til.batch.html |
#10
|
|||
|
|||
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ?
On Sat, 21 Jan 2006 00:41:02 -0800, "bestofcomputer"
put finger to keyboard and composed: Thank all of you guys for your posts. But still I dont find my INPUT.EXE ! The forum : alt.msdos.batch is maybe good, but what is the URL to type to access to it ? Please give me a clue ? The link : www.bookcase.com is unaccessible, No problem here. so no possible to get anything from there ! Please give me another clue ? From bookcase.com: ftp://ftp.simtel.net/pub/simtelnet/m...tl/input10.zip ftp://ftp.simtel.net/pub/simtelnet/m...tl/sleep25.zip ftp://ftp.simtel.net/pub/simtelnet/m...chutl/wait.zip And about the VB Scripts : very good job, I appreciate a lot ! But excuse me : How am I supposed to execute a VB script under a DOS Boot only ? Because this is my main Point, and you didnt get it, it seems... I am sorry, but I need more help, still ! Thanks anyway. Bye. Frederic Laroche. FYI, the sleep.exe utility I referred to in an earlier post will only run in a Windows DOS box, not in real DOS mode. Ping.exe is also restricted to a DOS box. The "rem | choice" trick will work in DOS, though. - Franc Zabkar -- Please remove one 'i' from my address when replying by email. |
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to find sound card? | Jack | Multimedia | 2 | July 19th 04 12:14 AM |
Cannot find Autorun | Jeff Bertram | Hardware | 1 | July 10th 04 04:41 AM |
Built-in virus detection how to find it. | Nickey | Software & Applications | 7 | May 22nd 04 09:16 PM |
Windows cannot find fntldr.exe | Tony Vong | Improving Performance | 1 | May 15th 04 04:42 PM |
Cannot find crystal chip | Buffalo | Improving Performance | 0 | May 7th 04 01:58 PM |