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.
| 6901. |
Solve : Need to have DOS Windows Open to install Next Program? |
|
Answer» I am writing a batch file to install IE 7 and WinBug. I install IE 7 first then next is WinBug program. However after IE7 INSTALLATION, the DOS Windows just closed and not proceed to WinBug installation. IE7 installation just calling IE7 MSI with norestart switch. |
|
| 6902. |
Solve : how do you ask the program to read 1's and 0's? |
|
Answer» does any one have the answer to my question |
|
| 6903. |
Solve : command.com / cmd.exe? |
|
Answer» hello there i have been using the cmd.exe, and have just come across this paragraph, doe's this MEAN that i should be using the command.com, if i don't need the additional ENVIROMENT variables When running Windows NT, 2000, XP, or future operating systems there are two versions of the command interpreter, command.com and cmd.exe. Cmd offers additional environment variables than command.com; however, it is recommend if you are attempting to RUN a MS-DOS utility that you utilize the command.com. To use command.com, click Start / Run and type command. It depends on what you want to do. Like the paragraph says, if you are trying to run an old MS-DOS program or utility you may find it runs better under command.com, but if you aren't having any problems you may as well stick with Win32 cmd.exe like I and most others do. CMD.EXE is compatible with most MS-DOS PROGRAMS, and it has SIGNIFICANTLY more functionality than COMMAND.COM does. I agree with Dias and would continue using CMD and if you see something that doesn't work, and then try COMMAND.thanks dias and Gurugary |
|
| 6904. |
Solve : Hiding the CMD window while running a .bat file? |
|
Answer» I've been racking my brain trying to work out how to hide the CMD window while running a batch file, anyone happen to know? :S (last resort) |
|
| 6905. |
Solve : PQMAGIC (Partition Magic) Vs. Fdisk? |
|
Answer» In what WAYS is PQMAGIC (Partition Magic) PREFERABLE to FDISK? Is there any reason, apart from cost, why anyone might choose NOT to use PQMAGIC? |
|
| 6906. |
Solve : Batch file to delete duplicate files in 2 folders? |
|
Answer» I need help composing a batch file that will compare the contents of two folders ("A" & "B") and delete the files from "B" that also appear in "A". Leaving only one file in the "A" folder. Just to make things a little more complicated the file name structure is as FOLLOWS: %~I - expands %I REMOVING any surrounding quotes (") PS. With multi-dot file names, the extension is the data after the last dot. I'm not going to pretend to really know whats going on with this code, but I think something is still missing. After changing the %%v to %%~nv the code strips off the extension of the file names in folderA and searches folderB for the file without the extension. The only problem is all the files in folderB still have their extensions. So the batch file says that none of the files in folderA are in folderB (even though that's not the case). The batch file needs to strip off the file name extensions in both folders and then compare them. I appologize for not making this clear before. Is this possible? Thanks!Could you please post a sample of the file names in both FolderA and FolderB. Unless I'm missing something basic, none of this makes any sense. Stripping off the increment number in the file name, guarantees duplicate file names. Another approach would be to strip the extension in FolderA. By using the extensionless filename with a wildcard, you could grab all the files from FolderB with the same base name. Your wildcard suggestion works perfectly. Thanks for all your help, I really appreciate it! |
|
| 6907. |
Solve : loop through directories? |
|
Answer» Hi, |
|
| 6908. |
Solve : Can't open DOS? |
|
Answer» I'm using Vista, and I can't seem to RUN most DOS programs. It says, "This system does not support fullscreen mode. Choose close to terminate the program." I can close or ignore; ignore just leads me back to the same ERROR message. I can run DOS programs that run in window mode, but not fullscreen. Can anyone help me?for old dos programs, expecially games you have to use DosBox atleast thats the easy way http://www.dosbox.com/download.php?main=1This is actually a Windows VISTA question check for compatibility options. Remember Vista has and ADVANCED Graphic interperter and some DOS programs won't understand the vid requirementsOkay, let's assume I know pretty much NOTHING about computers. How do I implement EITHER of your suggestions? |
|
| 6909. |
Solve : A Batchfile Problem for me!? |
|
Answer» Hi |
|
| 6910. |
Solve : FAT file system VS. NTFS file system? |
|
Answer» What are the differences between a FAT and an NTFS file system. What are the advantages and disadvantages of each of them?Thomas, |
|
| 6911. |
Solve : Trying to write a batch file 2? |
|
Answer» How do I write a batch FILE that will read a files name and move it, if the file is what I want. I am guessing an "if" statement will work? if so, how would it be WRITTEN?XP os[sigh] |
|
| 6912. |
Solve : win XP batch files? |
|
Answer» hi
???this just open two cmd prompts with the programs name on the title bar and thats it Quote Show us your script its just a simple batch run command: "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" "C:\Program Files\MSN\MSNCoreFiles\msn6.exe" i ve tried it with diff programmes as well as files with he same resultI assume you have upgraded to XP from Win.98se or some such OS which is DOS based. XP does NOT have DOS just emulation so many Dos based progs will not perform as they did in Win.9x SYSTEMS. I think Sidewinder's response is correct tho' I'm not sure of the Start command syntax. You could look here for an answer: http://www.ss64.com/nt/ |
|
| 6913. |
Solve : How to delay a net send massage? |
|
Answer» how can i delay a NET send message with -tThe only way I know to do that would be to use a "scheduled task" in Windows or the AT scheduler in NT and above.r u USING win xp? |
|
| 6914. |
Solve : Setup command? |
|
Answer» I have a p-3 computer which "was" running Windows 98. I decided to reformat the hard drive and reinstall 98. However, I cannot find my Getting Started with Windows 98 book so I do not have the numeric key to open 98. |
|
| 6915. |
Solve : Proggy Before Driver? |
|
Answer» Hello. I was wandering if anyone can help: Can you please tell me how to edit one of the CONFIG.SYS, AUTOEXEC.BAT, and/or MSDOS.SYS file(s) so that I can load a program before DOS loads the drivers? Or, can someone send me a HYPERLINK? |
|
| 6916. |
Solve : How much DOS is 'inside' XP?? |
|
Answer» I used to be DOS only going back a longer TIME than I care to admit but - now and again use 'cmd' in XP to do something like a ping test etc. Thx Gary - most encouraging. I should maybe dig deeper after all! THose switches are still there. Dir /oen/p works just the same. You may as well consider it a 32-bit DOS on steroids. Certain extras you'd expect like long filename support, etc. The batch language is greatly extended (you have loops!) but still mostly backwards compatible. OK, but in relation to your initial question regarding how much of DOS in inside XP...not alot. With every new version of Windows, DOS is being watered down. I think XP was the first Windows version that didn't require DOS to be running, in some capacity, in the background. (I may be wrong on this) The Command Interpreter has become something entirely different.It began as a DOS emulation tool, but with every new version more and more Windows-specific commands are added. I suppose, eventually, we may end up with it becoming the Windows Shell!Actually it was Windows NT that was the first to not use dos because DOS was 16bit, The Windows NT Family of OSs(including Win NT, 2000, XP, Vista) is 32bit, execept for Vista, its 64bit. Just look at my signiture. But Any OS before NT, that includes 98, 95, ME, 3.1, was based on DOS.and yes i've noticed that Vista doesnt even have some of the important commands, like edlin, edit, ipconfig. Tsk Tsk...Thx guys - of course as I was thinking but did not mention - there is the 16 bit aspect with the old true DOS, as macdad points out. I shall when time dig deeper out of interest but my impression had been that what is there is ''watered down'', even tho still of SIGNIFICANT potential use. I have noticed just occasionally an app will install (usually something like a small utility) and notice the console open briefly while files are expanded for example. It would be nice if ''true DOS" could be run, which would include the old Qbasic and numerous other once familiar items.I don't think that NT 32 bit command is "watered down", and I first started using MS-DOS 3.30 in 1988. I think it is beefed up. I would hate to go back to short file names, tiny address space, etc. MS-DOS is all very interesting but it belongs in history as far as I am concerned. MS-DOS...A winner in the Computer Hall of Fame |
|
| 6917. |
Solve : I'm here again and need assistance? |
|
Answer» Here I am again with more problems. Lol. This time it isn't actually a big problem. The computers at our school have a blocking system on and it is called websense. For my project I'm supposed to be looking for games to put on this bootdisk so when I have the disk in the computer a game should POP up....Well, websense blocks everything that is considered a game, educational or not. I'm lookinf for some TYPE of math game, like Algebra but not really hard Algebra. MAYBE Algebra ONE would be could...I can't find one anywhere that is free and it has to be less then 50kb, now I have found some programs that are 50kb or under but they are just couculators (I know I spelt that wrong) and my teacher says it has to be a math game...So, can anyone help me out? E-mail me to program or a link to a site, either or works and my e-mail is [emailprotected] Thanks for your time and consideration. |
|
| 6918. |
Solve : Computer won't open Bios? |
|
Answer» I have Microsoft 2000 and it was given to me but the problem is it is set up for a network so there for i need to GET into ms-dos to change the SETTINGS but when my computer boots i press F1 or F2 and and all that happens is the screen turns black and on the bottom it says HIT F10 for setup, it STAYS like that for a COUPLE of seconds and then goes back to booting normally. Why can't i get into the Bios F10then how do you get the computer to reboot in dos mode?There is no DOS in Windows 2000. What do you need DOS for? You said you wanted to get to the BIOS. |
|
| 6919. |
Solve : Does not end...? |
|
Answer» I made a simple batch file that ends a program, then restarts, and i want it to exit out..(which usually does by its self) but for some reason this does not... do anyone have any input?? |
|
| 6920. |
Solve : list of internal command? |
|
Answer» can ANYBODY have list of internal command including its. parameter.. ex.. for /f .......... etc..etc.. |
|
| 6921. |
Solve : Windows 98 won't start from DOS...? |
|
Answer» Ok, so here is what has happened so far... |
|
| 6922. |
Solve : Floppy Image? |
|
Answer» Hi, I think you'll find that it's a virtual floppy image for use with VirtualPC, it's not meant for making a real floppy. Yes DIAS is correct you will need to create the Virtual PC but Install DOS onto it.Ahh my bad, I get it. The article I read stated 'boot from floppy'. I just assumed it meant the physical one LOL. Cheers.I don't think you need to transfer it to a floppy disk. From your Virtual Machine (while running in DOS), choose the Floppy menu at the top and choose "Capture Floppy Disk Image" and point it to your Virtual Machine Additions for DOS image. |
|
| 6923. |
Solve : Random Password & MAC Generator..??? |
|
Answer» i dont understand how he can use random password generator as a hacking etc. tool. light me up guys. same for mac adresses.because if he tried to hack a sys, all he would have to do is run the random password generator to find the correct code. and MAC address is a Modems Physical address unlike its virtual address(IP address)hack a system using batch ? i would see thi?s |
|
| 6924. |
Solve : Run a batch while sleeping? |
|
Answer» Hello everyone! I'd like to have a second batch run while the first is in delay, displaying a message to wait. I also want it to run after killing explorer. I've DOWNLOADED and using sleep.exe for the delay/display, but unsure if the second batch is actually running during the sleep, or if it runs COMPLETELY before sleep starts, or if sleep kills it. In general, the second batch will run very quickly, but MAY take upwards of 5 to 7 seconds, so have sleep set at 10. Does sleep put everything to sleep, or just the batch it's running from? |
|
| 6925. |
Solve : windows 98 in dos? |
|
Answer» every TIME that i start up WINDOWS 98 it goes to dos mode. ive tried things like UNLOCK C:\ c:\win , EXIT and C:\windows\win but when i do any of them it says: |
|
| 6926. |
Solve : Cant run W XP. I have a DOS boot disk..Please Help? |
|
Answer» i have a problem.... |
|
| 6927. |
Solve : add user and file directory in batch file?? |
|
Answer» I would like to know how to add a list of user from a file in batch file. and also how to add directory/file in using batch file? |
|
| 6928. |
Solve : Create Batch file to execute 3 programs? |
|
Answer» I need a Batch file to start 3 applications. I've tried the FOLLOWING in a batch file: Code: [Select]start "" "C:\Program Files\Windows Live\Messenger\msnmsgr.exe"I had something like that but I couldn't find it. Thanks. Quote from: Carbon Dudeoxide on July 28, 2008, 08:58:25 AM You could have a look here: Quote from: Carbon Dudeoxide on July 28, 2008, 09:17:22 AM Quote from: devcom on July 28, 2008, 09:16:05 AMFair enough. Quote from: devcom on July 28, 2008, 09:16:05 AMCode: [Select]start "" "C:\Program Files\Windows Live\Messenger\msnmsgr.exe" Code: [Select]start "" "C:\Program Files\Windows Live\Messenger\msnmsgr.exe" I would highly discourage anybody from issuing a PING command on something they don't have control over without a reason. I like to write code as clean and polite and portable as possible. Why not ping 127.0.0.1 or localhost INSTEAD of 1.1.1.1? It would be less work for the computer, more predictable results, and it is more portable and more polite. Just my 2 cents.By using 127.0.0.1, the 'timer' doesn't work at all.Quote from: Carbon Dudeoxide on July 28, 2008, 06:22:48 PM By using 127.0.0.1, the 'timer' doesn't work at all. That depends on the syntax. Using 127.0.0.1 is actually much more accurate than using an IP address you don't control. With 127.0.0.1 you know that it will reply (unless you have done something to disable this), and since I assume you don't control the IP address 1.1.1.1 then you don't really know if it will respond to an inbound ICMP echo request or not ... or when it will change. So knowing that 127.0.0.1 (or localhost) will respond, just use: ping -n (seconds+1) 127.0.0.1 So if you want to pause for 5 seconds, use: Code: [Select]ping -n 6 127.0.0.1 >NUL This works because the first count will be instant, and the others will follow at 1 second intervals. |
|
| 6929. |
Solve : Win XP batch Disable Keyboard/mouse? |
|
Answer» hello, |
|
| 6930. |
Solve : Using Dos Batch file for deletion by date? |
|
Answer» Hi everyone, |
|
| 6931. |
Solve : Detecting External CD With MSDOS? |
|
Answer» I'm trying to install Win95 using an external CD with serial port connection. I GET a "No valid CDROM device DRIVER SELECTED" message. Is there an MSDOS command that will direct the computer to look at the serial port? |
|
| 6932. |
Solve : using std output to input batch file? |
|
Answer» writing a SCRIPT |
|
| 6933. |
Solve : I know this is a newb question, but...? |
|
Answer» :-[What is the COMMAND to start BATCH off DOS 5.2? I can't SEEM to find it anywhere... |
|
| 6934. |
Solve : Help!! MS-DOS Files? |
|
Answer» Aaughh!!! |
|
| 6935. |
Solve : I cant start w xp, i have a DOS boot disk? |
|
Answer» i have a problem.... on my pc I cant run windows XP. i created a dos bootable floppy disk, but i dont know how to start windows xp through DOS... Can SOMBODY help me please Start the OS? You can't. If your question meant something else, please PARDON the intrusion. Thanks.Is there any chnce i could run the windows xp CD Intaller ? from DOSMarioc4387.....exactly what is it your TRYING to do ? Is XP already installed ? or are you trying to install it on a freshly formatted drive ? dl65 |
|
| 6936. |
Solve : I WANT TO PLAY THIS MOD? |
|
Answer» I cant make half-life work this pops up all the time (autoexe.nt is not suitble for runing MS-DOS im trying to get half life on my pc i found a cool mod for it on www.rivalspecies.com its a cool mod but i cant play it unless i get some help from ANYBODY here plz plz plz plz :- This one is an oldie but a GOODIE. From the CMD prompt, ENTER: |
|
| 6937. |
Solve : Copying Files? |
|
Answer» I want to copy files from a Floppy on Drive A: to a Folder on Drive C: entitled "Digital Photos, how do I code this using DOS copy a:\whatever c:\anotherplace\Ah yes - I seem to REMEMBER DOS - isnt that the OS which will not ALLOW spaces in a filename without enclosing in double quotes? Can't quite recall the syntax - something like |
|
| 6938. |
Solve : Oracle SQL Plus Automation? |
|
Answer» Hello everybody, |
|
| 6939. |
Solve : Multiple processes? |
|
Answer» i was wondering how i could IMPLEMENT multiple instances of a program like winamp through a batch file. Once the call is made to winamp the batch file DOESNT progress. any SOLUTIONS. i admit this is probably an elementary problem but im new to this so be kindInstead of calling winamp in the batch file like.. |
|
| 6940. |
Solve : ms dos 3.0? |
|
Answer» have an old AT that is used in business that i need to reinstall an exe file that is written over two 5 in floppies. have novell network and have tried everything two get the two files together when i use standard copy commands 2nd part of file writes over first part. it won't let me do the renaming SAYS it's duplicate. any copy commands that will let me write each part to hard disk? can't use zip on program. been tryin SINCE oct 04 can't find any one who knows. must be a command somewhere since it was written on two different floppies . company who wrote went out bus, in 85. and can't find any one who can convert my files over to a NEW program so i am stuck. thanks bob rich. [emailprotected]Wow! An AT. I have one myself still running PC-DOS 7 (the VERSION that came with REXX)...I guess it keeps me humble. |
|
| 6941. |
Solve : Rename parts of files? |
|
Answer» hello, Thank you foxidrive.TXT file attached. [recovering DISK space, attachment deleted by admin]Thank you so MUCH, Geek-9pm and foxidrive. I was ABLE to use and alter the program as needed. I very much appreciate your help. |
|
| 6942. |
Solve : Enable Batch File to Log Itself? |
|
Answer» I found this online:
Create a new batchfile called "logging.bat" and run that when you need to log it. The mybat.bat file can't be interactive because you won't see anything. Code: [Select]@echo off "c:\folder\mybat.bat" >"c:\folder\file.log" 2>&1 foxidrive - thanks. I've done it that way too. I've gotten used to not being able to see the script run, I'm OK with that. Can you help me make it work the way I described? Ultimately when it is run the script will ask if I want to enable logging. If I enter "yes" it will set NOWLOGGING equal to "yes" and the script will kick off the logging command . . . if you can help me make it work when NOWLOGGING=yes. Thanks, MJI don't know anything about your batch file and there are any number of scenarios that change the way it should be handled. I want to use the command to troubleshoot new scripts. Generally I work with the script opened in NOTEPAD++, I run the script and modify as needed. I just want to tailor the commands so the script logs its activity without me having to call it from the command line. My idea was to set a variable equal to "yes" at the TOP of the script. If this variable = "yes" then the script will log its activity to a text file that I can then look back over. If it is set to "no" the script will run as it was written to without logging itself. I don't know of a better way to capture where a script hangs up that doesn't involve calling the script from the command prompt or another script. I'm open to suggestions but also could still use help modifying those commands. Thanks, MJQuote from: powlaz on APRIL 08, 2014, 06:53:29 AM I don't know of a better way to capture where a script hangs up that doesn't involve calling the script from the command prompt or another script. I generally use echo statements to track the changes along with pause statements. That's the most friendly debugging that I know of. My file manager gives me an instant command line and enhanced access to launching and editing, which helps too. Does notepad++ allow you to call the batch code in DIFFERENT ways? |
|
| 6943. |
Solve : How to put output of command in a file? |
|
Answer» I'm pretty sure that there is a command to do this, but I have no idea what it is. |
|
| 6944. |
Solve : cd ejecting someones else drive? |
|
Answer» how can i EJECT soemone ELSE cd drive wht do i need there ip addressand some SCRIPT files and administrative control of their machine.how can i eject soemone else cd drive wht do i need there ip addressIt can be done thru your ADMIN panel. But they have to local network and you have to have admin rights. |
|
| 6945. |
Solve : Boot to DOS? |
|
Answer» I have a windows 2000 computer thats completley trashed and i need to format the c drive is there any way to MAKE this computer BOOT directly into doshttp://www.bootdisk.comwhich bootdisk would i wanna use to get it to boot up to dos >? |
|
| 6946. |
Solve : Need help plz? |
|
Answer» I recently started to make small programs using C++ and when i RUN the PROGRAM it POPS up the dos screen but it quickly disappears before i can EVEN read the displaygo to your command prompt and run it from there. |
|
| 6947. |
Solve : DOS Viewing of Number of Lines from end of file!? |
|
Answer» I have a small BATCH file that counts total lines in a file then use more to display from the calculated value. But I would LIKE loop this batch file to display all files in a given folder to the screen or to a file! Can't figure out how to loop thru every file in a folder! But I'm unable to process more than one file at a time. So I'm really displaying the last 5 lines of each file. What is it that you really want to do?I have a small batch file that counts total lines, subtract a inputted value (5), then use more to display from that line number to the end of file to the screen or file. But I would like loop this batch file (below) to work on all files in a folder Can't figure out how to loop thru multiple files in a folder! ( The code below works fine for a single file, I just need to do more then one at a time ) Help!!!!!!!! Example Below: @echo off cls setlocal :: Syntax: %1 = displayed Lines :: %2 = path and input filename. :: EX: eof 10 \Input_filename.txt ( wildcards may be used ) If {%1} equ {} echo %%1 Missing Data - Re-Enter&&exit /b If {%2} equ {} echo %%2 Missing Data - Error Data Missing&&exit /b :@echo on :start set infile=%2 for /f "tokens=3" %%A in ('find /v /c "@[emailprotected]" %infile%') do ( set lines=%%A ) set /a count=%lines%-%1 More +%count% %infile% :@echo * * * Total Lines in %infile% = %lines% * * * :endThis will process every *.txt filename in the folder It enables delayed expansion within the loop so that filenames with ! in them are processed too. Code: [Select]@echo off for %%a in (*.txt) do ( "set file=%%a" setlocal enabledelayedexpansion echo filename=!file! endlocal pause )OK, Where do I put my code? I guess I'm not quite sure how to interface the two pieces! Thanks Again for all your help! Code: [Select]@echo off if "%~2"=="" ( echo Lists the number of lines from the end of files echo Syntax: %0 NumberOfLines "d:\path\filespec" echo. echo example: %0 5 *.txt echo example: %0 3 "c:\my files folder\*.txt" pause goto :EOF ) setlocal enabledelayedexpansion for %%a in ("%~2") do ( for /f %%b in ('find /v /c "" ^< "%%a" ') do set "lines=%%b" set /a count=lines-%~1 if !count! GTR 0 More +!count! "%%a" ) pausePerfect! Now just trying to figure out why it works! Thanks sooooooooo Much! You're welcome. |
|
| 6948. |
Solve : windows xp restart in dos? |
|
Answer» hey hey, |
|
| 6949. |
Solve : Printing from DOS? |
|
Answer» Hi, |
|
| 6950. |
Solve : MS-DOS PROBLUM? |
|
Answer» HOW CAN WE ANY WAY TO (SHUTDOWN,RESTART,AND LOGOFF ALSO) WITH ANDY COMMAND OR PATH. PLZ TELL ME ABOUT ITS COMMANDS Please do not USE all caps. It is considered very rude and shows that you are yelling. Thank you. Shutdown: @echo off echo G=FFFF:0000 | debug Restart: MICROSOFT shows you how to build your own reboot program USING debug: http://support.microsoft.com/kb/q67929/ Logoff: Has no meaning in MS-DOS. It's a single user machine. Hope this helps. |
|