This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 3851. |
Solve : extract ip from txt? |
|
Answer» I'm making a batch script to test on mail relay and it all works LIKE a charm, but to make it way easier to add or delete servers from the list that have to be checked I WANT my batch script to extract the IP from a txt file. |
|
| 3852. |
Solve : Parse a string? |
|
Answer» How Can I parse a STRING in dos |
|
| 3853. |
Solve : how to put a filename into a variable? |
|
Answer» How can I put a specific filename into a variable? The line below doesn't pipe the output into the variable %1. |
|
| 3854. |
Solve : Clearing event logs? |
|
Answer» I need to use a BATCH file to AUDIT our workstations. I've found a few different downloadable .exes that will save and CLEAR audit logs, unfortunately, I can't use them because of regulations. |
|
| 3855. |
Solve : Check status of a program? |
|
Answer» Guys, |
|
| 3856. |
Solve : How to write the string %e% to a txt file?? |
|
Answer» I WANT to write the string %e% to a txt file, using the command line like this: |
|
| 3857. |
Solve : Need batch file to minimize window? |
|
Answer» This maybe should be in the Windows forum, but all the batch questions are in the DOS forum... |
|
| 3858. |
Solve : Rename a file with the date in it? |
|
Answer» I'm trying to rename a file by ADDING the CURRENT DATE to it. Does anyone know how to do this with MSDOS?You can get the current date in a variable by |
|
| 3859. |
Solve : ugly rename file?? |
|
Answer» Hi. |
|
| 3860. |
Solve : HomeworkHope.com? |
|
Answer» It seems quite a few people are suddenly LOOKING for help with their homework here. <----------- Do you like my dog? That must be the UGLIEST canine ever to WALK on four legs. dl65 Is there a BETTER of Best!!! Quote
It is an ugly cur. I am just going to use him for a week, I think. It might scare the children. |
|
| 3861. |
Solve : bot disc A:\ command? |
|
Answer» my son is running windows xp which asks for a boot disc everytime on start up. I have made one on floppy from my computer. This demonstrates my ignorance but what do you do after the A:\ prompt to get into windows again and is there a better WAY to boot the computer other than from a floppy. Thankshmm.. maybe it's a bios setting.. Try setting the bios to run from the Hardrive first?Thanks for your reply. Think i know what you mean, have to keep it simple for me but could you still advise what response i should put after the A:\ prompt and whether there is a better way to upload windows again or are you saying to boot from xp disc!He's saying you need to enter Setup - it usually tells you what key to press, it can be F1, Delete or some other key, but when it says to, find the options that show Boot order and make sure the Hard DRIVE is first on the list. Thanks Dilbert, however, moved ide hard drive to top of list in boot MENU in BIOS but on pressing ENTER it says, NONE or DISABLED. On EXITING the BIOS and restarting computer it still says boot failure and asks for a boot disc which as i first MENTIONED leads to an A:\ prompt. So i am stuck |
|
| 3862. |
Solve : Password in a batch file? |
|
Answer» hi, i would like to know how to make a batch file, with a password, so if you OPEN it, you are ASKED a password, if it is CORRECT, you can continue, but if your wrong, on the 3th time, you will ext and the computer will be shut down, |
|
| 3863. |
Solve : running chkdsk in XP in not read only mode? |
|
Answer» Hi Im trying to delete some corrupt files on my windows xp system. In dos I ran chkdsk:c it seems to work partways until it asks for it must be run in not read only mode. How do you do that. Chris Ruona :) :)CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] |
|
| 3864. |
Solve : Re: Making a Read Only file writeable? |
|
Answer» ATTRIB -R C:\myfile.txt for example. hope this helps uli |
|
| 3865. |
Solve : Looping a batch file N times- How?? |
|
Answer» I have a batch file that CALLS some Fortran programs and does some file copies etc. I want to run this batch file N number of TIMES and then stop. How can I do this without keyboard intervention ie run the batch file N times and stop automatically. Thanks. FFor /L %%A IN (1, 1, n) DO Call MyBat |
|
| 3866. |
Solve : Change Date Format Or Read From Text File? |
|
Answer» My question is as follows: |
|
| 3867. |
Solve : Forcing a file to open in IE/relative link problem? |
|
Answer» Hello All, |
|
| 3868. |
Solve : ARE THERE CERTAIN COMMANDS? (updated so often)? |
|
Answer» is there a command like start, but start doesnt do it...but the command would open up a folder (not in DOS but regular windows)? |
|
| 3869. |
Solve : Batch File Ping Commands? |
|
Answer» At my office we have a Server Hosted Drive. (When we log on to our computers we have a Z:\ drive in our name that is hosted by our servers) I know how to ping SOMETHING through %computername%, but... |
|
| 3870. |
Solve : jerky scroll? |
|
Answer» I am having trouble with scrolling. i installed windows xp pro yesterday. when scrolling in a window i.e. web PAGE, the scrolling is very jerky. i have tried adjusting the mouse properties. i have enabled/disabled "use smooth scroll" in folder properties. i have made adjustments in perfomance options in system properties. all to no avail. |
|
| 3871. |
Solve : how to open a .fol file under MSdos? |
|
Answer» I have a first choice file that extension is .fol . Could aynone know how to open it and convert it to word or excel file? thanks a lot!The only hope you have is find an old copy of First Choice and see if there was a .txt FILTER with that to save it as, or open the file in question with Notepad and try to edit it the best you can as a .txt file.Here is a conversion program which is a "try before you buy". You might get enough use to convert all your .fol files. |
|
| 3872. |
Solve : start win 98 from dos? |
|
Answer» how can i start win 98 from dos At the C:> prompt typei am already at C:\windows> and when i type win it won't run.At the C:> prompt type Win Does that work :-?Is Win98 loaded? How did we get to this predicament?Are you in true DOS or the MS-DOS Prompt?What if there is only DOS? Do you think it will ever work?There's a C:\WINDOWS and moos specified Win98. I think he has Windows. Or had Windows, unless he pruned his tree. Of had Windows 3.11 or such. I hope we find out.on the screen i have C:\windows> unabel to WIPE out windows and to replace it bij win. The pc says that i am in MS-DOS When i tape win i get a message to get INT windows < ENTER> to get into MS-DOS I do enter to get into windows. result i got the same message. How i got here?! I was in window and i would format a disque. windows would not do it. So i went ito DOS to use woldn't do it either so i tryd to get back into windows and that is were i stil am. When i tape I have 309 files and 33 chapters so i think i stil have windows.this may sound sutpid, but try typing EXIT sometimes the Win98 machines would reboot into a DOS mode (for games) and that was the only way out. good luckuntil now nothing works. When i type exit i get aHP screen and after that a windows 98 screen. Then I should get my bureau screen but i get C:\windows> So I think it must be in the settings but where?check out this LINK http://support.microsoft.com/kb/q151717/ and let US know how you make out.finaly nothing worked so i used the original SET up disk to set up windows again. It has a posebility to repair withoud losing wath's on the harddisk. I used it and i didn't lose my files but i had to set up a part of my software again becoase it didn't run anymore. Thanks everybody for the help. |
|
| 3873. |
Solve : How to View batch file completed or failed? |
|
Answer» Hello All, When run a batch file it executes a series of commands, but it never tells that the process has successfully finished or failed. Is there a way to view that a specific batch file has been executed successfully or failed. Thanks for help.i think you can do it with a if stament but i dont know for sureCommands GENERALLY GIVE you an errorlevel if they are sucdessfully or not. Normally it is 0 if sucessfull or a HIGHER number if it fails. You can proof this with an if statement. When you only want to proof if it is ok this is an easy way to do this: if %errorlevel% EQU 0 echo .... & goto ..... But find out what %errrolevel% the COMMAND give you in different cases. (It is not always only 0 or 1) uli |
|
| 3874. |
Solve : is ther a way to...? |
|
Answer» is THER a WAY to pipe a dos command to notpad with out saving it to a txt file |
|
| 3875. |
Solve : MS Dos Antivirus? |
|
Answer» hello, |
|
| 3876. |
Solve : adding time to file name? |
|
Answer» i am trying to make a bat file that will pipe the ruselts frome netstat -a to a uniuck file prefubly DATE and time in the format YYYY-MM-DD-HH-MM-SS if that is at all posable thank youBring the output from date/t and time /t in a variable. (in the CORRECT format.) |
|
| 3877. |
Solve : HostName? |
|
Answer» Here's my problem: |
|
| 3878. |
Solve : DOS to USB? |
|
Answer» how can i print via USB Printer in DOS mode ? |
|
| 3879. |
Solve : Re: How would I create a batch file like this?? |
|
Answer» OK, so by my understanding, you want a batch file that asks for input, and creates a directory based on that input? Let me know how this .bat file works for you: |
|
| 3880. |
Solve : DOS vs Putty? |
|
Answer» how do I output SSH COMMANDS from a batch file into a putty session? :-/vas IST das "putty"?Its a Telnet CLIENT. |
|
| 3881. |
Solve : MD5 utility? |
|
Answer» Hello, PLEASE HELP ME dude do you need it for school? it's just been an our AGO...No I don't need it for school, if I did I would say say, and PROBABLY would have asked five more times. I am very unpasient. I know that I I log on I ANSWER the questions almost instantly after they have been posted. Thank You for any future help Almn |
|
| 3882. |
Solve : Email Rule? |
|
Answer» Hello, Not related you mean in batch? I think that's impossible..Yes in batch . If batch is impossible than in any other language ?? AlmnOut of CURIOSITY, why not simply use filters that are USUALLY built-into Email services? As for PROGRAMMING, I think (am not 100% sure) DOS was made in Perl or some other such thing, so... |
|
| 3883. |
Solve : Color Menu Issues? |
|
Answer» Here's my color menus, i'm just having trouble.. it won't do what I want... Where does it bot perform as expected and how? I can send you a copy of the whole bootable disk... .. none of that color menu works.... from the main menu, if 5 is chosen should go to "Maincol.bat"... after a choice is picked there, should change the font color and go to "Colmen2.bat" once a choice there is selected it should go back to the menu with those COLORS defined, in use... however ... it ALWAYS goes back the the main menu after execution... and runs in normal dos White on black.Do you have the file ANSI.SYS? Do you have a line in the CONFIG.SYS like this: DEVICE=C:\DOS\CONFIG.SYS Also, "[32;40mGREEN" Is not a MS-DOS sentence. To see colors, you need to print the code of the color onto the screen: ECHO (Esc)[32;40mGREEN You can read here: http://www.evergreen.edu/biophysics/technotes/program/ansi_esc.htm To see how to write the (ESC) character (and more information of your interest) Quote Entering the {ESC} Character: For the sentence prompt, you have the metacharacter $e: PROMPT $e[1;37;44mQuote Do you have the file ANSI.SYS? I have both Config.sys and Ansi.sys on my disk... as for the escape character i use ctrl P and then esc.. however when going from dos 6.22 to XP it didn't read those. |
|
| 3884. |
Solve : Controling external programs using batch files? |
|
Answer» Hello! |
|
| 3885. |
Solve : Running sql*PLUS with a batch file? |
|
Answer» Hello! |
|
| 3886. |
Solve : Anyone up for a challenge???? |
|
Answer» Ok this is what I would like...... |
|
| 3887. |
Solve : Add+Remove people into Global Groups Via MS_DOS? |
|
Answer» HELLO, I can SEE this one being a bit of a hard one! Can anyone tell me how to Add+Remove PEOPLE into Global Groups VIA MS_DOS. This WOULD be very helpful for me. Best Regards, ME |
|
| 3888. |
Solve : user input in attrib batch file? |
|
Answer» Hi everybody. |
|
| 3889. |
Solve : Automated FTP using a Batch file? |
|
Answer» 1) Copy and rename a file (yes this can be) |
|
| 3890. |
Solve : problem with spacing in "Program Files"? |
|
Answer» Hi, I'm TRYING to delete some files from D:\Program Files\AIM, but when I type in rmdir D:\Program Files\AIM into the CMD it says |
|
| 3891. |
Solve : msdos time log? |
|
Answer» Hi guys, |
|
| 3892. |
Solve : Autorun batch file? |
|
Answer» Is it possible to run a batch file when a user opens a folder in explorer??? |
|
| 3893. |
Solve : Boot sector? |
|
Answer» Hello, |
|
| 3894. |
Solve : Starting a program atcomp. startup using DOS? |
|
Answer» Ok! I have been trying to start a program when my comp. starts only using DOS, but i haven't been able to figure it out! If you know nething about starting prorgams at a comp. startup using ONLY DOS then please respond. If there is no way using DOS then tell me ne other way to do it. THANKS!!!!!!!!!!!!!! If this a MSDOS machine, call the program from within the autoexec.bat. If this is a Windows machine do as Uli said and put a shortcut to the program in your startup folder (Start-->Programs-->Startup). |
|
| 3895. |
Solve : Loading a Driver into DOS?? |
|
Answer» I NEED to load a driver for my CD-Rom drive into config.sys from a floppy disc. What are the COMMANDS for DOS to get this DONE? Thanks!What version of DOS? And please don't say WindowsXP ! you get DOS versions lol |
|
| 3896. |
Solve : system has a problem with me? |
|
Answer» When I try to open a blank command promt or type in certain commands like DEBUG into a CMD command prompt that isnt blank I get this message: |
|
| 3897. |
Solve : What are "Command Extensions"? |
|
Answer» Hi, Hope this helps. You have cleared everything. Okay a sidetwist, if they are enabled by default then can they be disabled somehow? Use the /e: off SWITCH with cmd to disable command extensions. Only valid for the cmd session. You can shut off extensions permantly by updating the HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\EnableExtensions KEY in the registry. Why would you want to do this? Note: Do not put a space between the colon and off when using the switch. The FORUM interpreted a colon, little o as a emoticon.Okay, I was just THINKING, there should be other way round also. Thanks. |
|
| 3898. |
Solve : DLL files? |
|
Answer» I was curious if there is a way to delete .dll files that I don't need.you can use the command DELL example: dell *.dllOh, Blackberry, I'm afraid you need to find a better translator. Oh, Blackberry, I'm afraid you need to find a better translator. I told you my english is terrible, and I just try to learn, which isn't easy for me... But I don't understand why I said wrong...Quote By that, I mean: What is the path for these DLL files? If it's in C:\WINDOWS, I'd recommend not doing it...Yes, it is a C:/Windows extension. @blackberry, Don't worry, we understand. But for your info: It's del, not dell. Dell is a computer, while del is a DOS command. UH... it's a C:\WINDOWS? What are the names of these .dll files in question?One of my old games I removed (Starcraft), there are .dll files that still remain. I can't NAME them now because I am at school, but I can't get rid of them. Also, there is a file, C:\WINNT\SYSTEM32\dolsp.dll that loads spyware on my friends computer that the del command can't get rid of.Whoa, by all means get rid of dolsp.dll!!! Wait... why won't the del command work? What ERROR do you get? Anyhow, if you are 100% sure they are for Starcraft, go ahead and remove them, but were I you I'd do a Google search for each .dll file before deleting. I'd hate to see you reinstall Windows and all that. The error was for my friend, and I can't remember what that error was. I did run a google search before I MADE this post to make sure that they were indeed Starcraft files. When I get home from school in 2 hours, I will let you know what the error is and the exact response it gives me. |
|
| 3899. |
Solve : Passing Parameters to scripts? |
|
Answer» Hello Guyz. I have a file EchoSample.cmd which I want to run from Command Prompt and give it 2 parameters http://localhost:8080/ and Hello. If I type EchoSample at MS command prompt it runs the file and asks for the arguments. But if I type EchoSample http://localhost:8080/ Hello it DOESNT recogines it as a command. HELP PLZThis depends whether it's your cmd file is requesting the parameters or the program the cmd file runs. One possibility is your use of special characters in the parameters. |
|
| 3900. |
Solve : change txt in html file for all files in a folder? |
|
Answer» Ok, forgive me if this is a TALL order but its been a while.... |
|