Hi, I'm wondering if its possible to get a batch file to prompt a user for an input, and take that input and use it in the rest of the batch file. So far, I...
W2k/XP @echo off set /p password=Enter Admin Password: net use z: \\server\path /user:domain\administrator %password% On Mon, 1 Jul 2002 13:25:03 +0100, Derek...
2182
Emerson, Nathan
emersond@...
Jul 1, 2002 4:00 pm
Hi. I would like to grab the first hit from this command and skip the rest in order to find ONLY the most recently modified folder. Any suggestions? OS: W2K ...
I am running a program from the command line. It runs for sometime before returning. Upon return I need to change a parameter and then rerun. (I cannot use...
Use an editor that allows you to enter a control character and use echo echo. ascii-07 where ascii-07 is the control-g character, and the 7th character in the ...
At 01:25 PM 7/1/2002 +0100, Derek Byrne Writes ... Greetings Derek, I enjoy putting scripts in my batches to prompt for input and have listed below some that...
2186
Derek Byrne
Derek.Byrne@...
Jul 3, 2002 2:39 pm
Hey Bob - thanks for the email.. will try and implement them when I can. Another question.. is there a way of taking this existing batch file and creating a...
I've searced the web over and have found something similiar to what I want to do. But since I've never written batch files, I'm not sure how to put it all...
2188
Derek Byrne
Derek.Byrne@...
Jul 3, 2002 3:08 pm
The task scheduler will allow you to run a program/app at any time you want. What o/s are you using? ... From: notlawaj [mailto:ncsuapex@...] Sent: 03...
You don't ask for a drive to map to, so are you only mapping a single share to drive f: or are you intending to map up to 15 shares onto the next available...
2190
Emerson, Nathan
emersond@...
Jul 3, 2002 5:53 pm
Hi, I have a text file like so: A B C D E F G H I'd like to convert it to columns (or tab-delimited format) like this: A B C D E F G H Any help greatly...
2191
Derek Byrne
Derek.Byrne@...
Jul 3, 2002 6:03 pm
Sorry Michael, Oversight from using Ctrl-V multiple times, here is the amended batch file as it stands : @echo off set /p pw=Enter Domain Administrator...
I am trying to create a simple batch file that will run under Windows NT/2000, that will run specific operations based on what day of the week it is run on...
2193
Christian Rodriguez
CRodriguez@...
Jul 3, 2002 6:39 pm
Use the scheduler service do a at /? in the command prompt for proper switches ... From: grooves21 [mailto:stotesberry@...] Sent: Wednesday, July 03, 2002...
2194
Derek Byrne
Derek.Byrne@...
Jul 3, 2002 6:39 pm
Easiest way - Task Scheduler - you can tell it what to run on which days and at what times. Although, NT4 task scheduler has some issues with it, but win2k...
There has *got* to be a better way than this, and it's untested and incomplete. NT class OS required. A benefit is that server numbers can be entered in any...
2196
Lamar Morris
LamarMorris@...
Jul 3, 2002 6:56 pm
How about this FOR /F "tokens=1" %%i IN (computer_name.txt) DO net use * \\%ii\c$ /user:domain\administrator actual password if you don't want to be prompted...
... days and ... works fine.. ... The Scheduler service works fine in my application, but not for what I am trying to accomplish with this. It needs to be a...
Not tested, and incomplete. Requires NT or higher. type date /t to see what format the search strings in find /i "xxx" should take. @echo off date /t>temp.txt...
At 02:50 PM 7/3/2002 +0000, notlawaj Writes ... Have a look at Prcview. http://www.teamcti.com/pview/index.htm I've used it in a batch file as in the example...
Been enjoying your posts and humor (esp. wife version 1.0 preferring you to download porn to making more batches) and the particular masterpiece below calls...
Hi I'm usually using the choice command . See example : @echo off echo ********************************************************************* echo * 1. To...
At 01:52 PM 7/3/2002 -0400, Emerson, Nathan Writes ... Greetings Nathan, Here's a simple batch file that uses SED to create and solve the question as you...
Here's my W2K and higher solution, which I got quite a kick out of creating. :) @echo off set a= set c= if exist file2.txt del file2.txt for /f %%a in...
Drat, foiled again! My sloppy beta testing shows :) If you use this solution than change these lines around if "%c%"=="4" set c= if "%c%"=="4" set a= to this ...
2207
Emerson, Nathan
emersond@...
Jul 4, 2002 9:42 pm
Hi. (OS: W2K) I would like to grab the first hit from this command and skip the rest in order to find ONLY the most recently modified folder. dir /ad /o-d I...
2208
Emerson, Nathan
emersond@...
Jul 5, 2002 5:23 pm
Thanks, Michael. Just what I was looking for! FYI - I had to remove the quotes from the IF statements to make them work. For example, if "%c%"=="4" echo...
I need to verify the existence of a blank directory. Have tried the following but it always goes to NODIR even when the directory does exist. Using Windows98. ...