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.
| 3701. |
Solve : Change hostname? |
|
Answer» how do you change your hostname in dos, my OS is WINDOWS xp professionalThe host name is the computer name. Control Panel-->SYSTEM-->Computer Name tab. |
|
| 3702. |
Solve : Batch file output syntax issue? |
|
Answer» I'm TRYING to CREATE a batch file that outputs to another batch file. The problem is, it doesn't like this line: |
|
| 3703. |
Solve : Remote Shutdown? |
|
Answer» How do you remote shutdown a computer isnt it |
|
| 3704. |
Solve : Re: need help to creat a batch file or help me w? |
|
Answer» i can't understand a WORD of what you are saying, please type with points! i don't know when you sentaince ends or begins. And that menu, should it be in dos our should it be a exe file or something. By the way, what is your os? and please type these text whit points |
|
| 3705. |
Solve : DOS Renaming file.? |
|
Answer» Hi everybody. |
|
| 3706. |
Solve : Which Programm to zip Bootdisks?? |
|
Answer» I tried DIFFERENT Programms: (WinZip, Powerarchiver...) |
|
| 3707. |
Solve : cmd-or-task promt? |
|
Answer» what is the cmd and what is TASK promt, is that somthing ELSE, or are it 2 names, for the same THING?? what is the cmd and what is task promt, is that somthing else, or are it 2 names, for the same thing?? i don't QUITE understand your QUESTION do you mean this: What is the different between cmd (start=>run=>cmd) and Task-prompt (start=>all programs=>office accessories)Quote
i think it is the same |
|
| 3708. |
Solve : Closing dos after a few seconds? |
|
Answer» hi GUYS is would like to create a batch file that close after five (or more/less seconds/minutes) after opening, is that possible in dos (i'm running windows XP Professional) it doesn't worked :s i tried this, perhaps i made a fault I tried that, but it didn't work either mikiI can´t find anything wrong in your batchfile. Does XP have the sleep COMMAND? If not, you need it from the ressource kit. (Sleep is not a regular command in older windows versions. It is in the ressource kit) uliQuote I can´t find anything wrong in your batchfile. the command didn't worked whit me (and i see that it didn't worked whit "miki" to) what do you mean whit ressource kit, because i would do a lot to make it work, so i can TRY that method btw, [glb]thanks for your respond[/glb] uliQuote I can´t find anything wrong in your batchfile. I checked it out in run==> cmd ==> sleep, and XP bat doesn't know the command... mikiwhere can you download the resource kitThe ressource kit is a package with useful commandline tools and stuff from M$Soft. Normally you get it with the server version of the OS. Some SINGLE tools are available for download. Just Google. uliQuote The ressource kit is a package with useful commandline tools and stuff from M$Soft. OK, tnx for the respond but.... what do i have to type in google, i don't know a lot about dos (and i'm learning) but would love to know this one, so can you give me a link please mikiFor XP I´d try something like XP Ressourcekit uliQuote For XP I´d try something like XP Ressourcekit Ok, thx, but my results are from 14, 2MB to 2KB, wat is the size of the program??? mikiok guys here i found the solution http://malektips.com/xp_dos_0002.html [glb]a huge thanks goes to uli_glueck for his responses and tips[/glb] good luck with it guys blackberry You don't need a lot of fancy stuff to do that. echo Window will close in 10 seconds ping 1.1.1.1 -n 10 -w 1000 >%tmp%null This works in 2K and XP. Edit: You can Choice in 9x for this purpose.Quote You don't need a lot of fancy stuff to do that. omg, olsome, it worked indeed, it's a good ALTERNATIVE, thanks |
|
| 3709. |
Solve : cmd.com...? |
|
Answer» Quote that's a wonderfull idea, i tried, but...., i couldn't see the file - even when i said "display hidden folders and FILES" i couldn't see the file. Even in the search function from windows i can't see the file, only if i copy the pad in,example notepad, i can open it. But even in notepad i can't find it by clicking in folders. But my problem is allready solved , by using the tool "killbox" it worked, but a great thanx for your respond man, i appraciate it, zorro you speak about 'killbox', what is it??? (i have the same problem) (miki) killbox is freeware that deletes files that are in use. I got the link tip from fed, you can download it at this link: http://linhadefensiva.uol.com.br/dl/killboxMore tools that you even need. http://www.subratam.org/main/index.php?option=com_content&task=view&id=19&Itemid=41Quote More tools that you even need. antivirus programs and anti-spyware programs don't find the virusthanks blackberry mikiQuote thanks blackberry my pleasure btw, there is a huge chance that regedit and ping don't work either, DELETE those toQuote
you where right, they did't work either but whit killbox, they do thanks(again) mikiQuote
no problem, nice to know that it works again Quote
thanks for JOUR help, I didn't even noticed that is was cmd.COM, miki |
|
| 3710. |
Solve : How to read an IP Address in a batch file? |
|
Answer» Hi |
|
| 3711. |
Solve : Help with unformatted HD? |
|
Answer» I am trying to INSTALL XP on my LAPTOP(DELL) . I can boot from the floppy drive to DOS when i use a dos boot disk , but don't know where to go from there. I tried to boot directly from the CD/DVD-rom but the 2 "recovery" XP disks from DELL are not RECOGNIZED as bootable devices. The original hard drive failed and i replaced it. On the setup screen for my BIOS, the hard drive registers the correct amount of memory.Contact Dell for assistance, even if the item is out of warranty.Did you make a copy of the "recovery" partition which Dell PUTS on their original hdd's???No, didnt get the recovery partition before i formated the first HD, talking to dell now, Thanks anyway guys.That's why it's always WISE to spend the extra $10 on a Windows CD over ANY kind of free "recovery disk". |
|
| 3712. |
Solve : Send credentials via Batch? |
|
Answer» HI all. The question I'm making could be trivial, but I'm not a DOS expert, so... I'm writing a batch file that makes a backup from a main server to another one, that is something LIKE this: NET USE Y: \\BKP_IP\C$ xcopy C:\DIR\*.* Y:\DIR\ /s /E /Y ..... Net use Y: /d Obviously, I'm executing this batch as an ADMIN user on the main server; the problem is that I have to send username and password of an admin user of the backup server by command line (that is, I'm prompted to do that). So, what I'd need is a way to write these credentials (username+password of the destionation server) in the batch file, in order to allow me to schedule the batch. Note that the two servers are not on the same domain, so there's not any "common" PROFILE to be used. THANKS in advance for helping me!!Try this net use h: \\servername\c$ /user:servername\username yourpassword I might have miss understood the question. Do you have rights to map admin shares but not copy files from the share? Great! That's what I was looking for! I've just tried it and it works... thanks a lot for your help! |
|
| 3713. |
Solve : Batch equivalents for unset and unalias? |
|
Answer» can nyone help me to GET the Batch equivalents for unset and UNALIAS... |
|
| 3714. |
Solve : unalias not working? |
|
Answer» unalias is not working from command prompt.. |
|
| 3715. |
Solve : Load command by file? |
|
Answer» Two QUESTION... |
|
| 3716. |
Solve : MSDOS program will not start? |
|
Answer» I have a small CAD type program MSDOS, Homeplan 27, which used to run FINE on Win 95. I am now using a computer with Win 98 and every time I GO to start the program I get an error message, Runtime Error 200 at 3353:0091. I have a small CAD type program MSDOS, Homeplan 27, which used to run fine on Win 95. I am now using a computer with Win 98 and every time I go to start the program I get an error message, Runtime Error 200 at 3353:0091. I bet it is not only Win95 to Win98 that is DIFFERENT. Is it a different computer too? I thought I remembered something about it, but it has been a long time. Tell you what - plug Runtime Error 200 into Google. I think you'll find several pages that TALK about a patch for running old programs on newer, faster machines. Maybe even something about a divide by zero error. Do you still have the dongle for the program ? ? It won't run without it. |
|
| 3717. |
Solve : Re=director ( > ) not working for what I need...? |
|
Answer» Hey EVERYONE, Where did you find out about it?I thought everybody knew these things. Actually it's documented in most DOS books in the fine print. On the internet check out Allenware. Scroll down and click the link to Batch Reference on the left SIDE of the page, and in the course reference window (upper right), you will find stdin, stdout, stderr along with pretty much anything ELSE you might need to know. Good luck. |
|
| 3718. |
Solve : debug.exe.? |
|
Answer» Hello could someone possibly help me with this, |
|
| 3719. |
Solve : Delete the .BAK files in a folder that are more than 7 days old? |
|
Answer» How Can I Delete All the .BAK Files in a Folder That Are More Than 7 Days Old?There are third party DOS utilities that can do date handling, but left alone, batch code is somewhat lacking in many features...date handling among them. |
|
| 3720. |
Solve : need help using a "variable variable" in DOS? |
|
Answer» I'm creating a batch script that will automate the slipstreaming process for my large collection of various Windows CDs. Originally, my syntax was: |
|
| 3721. |
Solve : Determine Total Folder Size? |
|
Answer» I want to loop through my C:\ drive and determine all folders whose size is greater than 100MB, and OUTPUT their names. I THINK this can be done with by piping dir output into the find command, but I'm having trouble because the output that I need from the result of "dir /s" for each subfolder of C:\ looks like this: Code: [Select]tasklist | findstr /I "notepad.exe" && echo notepad is runningjust for info, tasklist can find whether notepad.exe is running without findstr Code: [Select]tasklist /FI "IMAGENAME eq notepad.exe" /NH |
|
| 3722. |
Solve : Help needed in making a batch file? |
|
Answer» Hi All, I am new to making batch files. Situation is that we have a word file of 7 lacs rowsWhy are SQL statements in a Word document and what are Quote lacs rows Best I can suggest is to take an inventory of the existing indexes using the database catalog before dropping and recreating the indexes. After recreating the indexes, take another inventory. From there it should be a simple matter to see what is missing. This probably should be on the Programming board but I see other members have already noticed that it has been multi-posted. I think the given sql code is of Oracle-PLSQL. Why u dont SPOOL list of index from oracle to excel which u have drop and simply by adding the DROP or completing the syntax of drop command. U can copy to word or notepad and will run the QUERY sql editor by only filename. |
|
| 3723. |
Solve : Choice command in Windows2003? |
|
Answer» Hi All, |
|
| 3724. |
Solve : Redirecting command window output to file? |
|
Answer» Hi. |
|
| 3725. |
Solve : Boot Disk with Hard disk support? |
|
Answer» Anyone know how i get to access my current C: and D: (2 partitions on the same physical disk) drives from using a Boot disk. As of now i can only use the A: drive and CDRom when i boot using a diskette.
I'm curious - is that read only , or can you both read and write to the NTFS drives? WillyW - see here... and here... Quote from: Dusty on April 20, 2007, 02:58:56 AM WillyW - see here... and here... Had a very quick look. The first link appears to be read only in the freeware version. The second appears to be both read and write. Thanks. |
|
| 3726. |
Solve : Net User List? |
|
Answer» Hey, |
|
| 3727. |
Solve : Install XP Home from DOS? |
|
Answer» We acquired a Fujitsu Lifebook 535xt (?) and it currently has no os on it. Before me it had Win98 and when I tried to upgrade to XP or even Win2K it wont ALLOW me to do &*#@ . |
|
| 3728. |
Solve : No boot drive available ?? |
|
Answer» I have recentlly obtained a Dell Optiplex GXa CPU. PROCESSOR speed is 266 MHz Pentium II with 96 mb SDRAM, 2 mb SGRAM and 512 kb integrated level 2 cache. BIOS version is A09. When I try to boot it up a receive a message on the first DOS screen stating "No boot drive available, strike F1 to RETRY boot, F2 for setup utility". I went to F2 "Setup Screen", set primary drives to "Auto" and secondary drives to "NONE". From opening up the CPU case I see what to me look like 2 hard drives. There are also 2 CD ROM drives. On the setup screen toward the top of the screen it asks to designate which drive the computer should attempt to boot up from first and I indicated the CD ROM drive (as I am wanting to put Windows XP home version on it). I have tried every possible combination of settings to each of the drives, etc. on the setup screen only for the result, each time, to be, "No boot drive available....". I have no boot up disk nor know specifically what I need do do to correct this. I bought this computer used and don't know the previous user in order to obtain any more history on it. The computer will not even allow me to type any characters at all on the first, main DOS screen. Please help, timely responses are GREATLY appreciated.Make sure the drives are jumpered to CS, cable SELECT (all of them!) and then from the F2 screen set them all to auto, then reboot. Go back to F2 and look there. Do they all show up? |
|
| 3729. |
Solve : Msdos help error? |
|
Answer» i need to find out my subnet and defualt gateways but when i go to run than cmd and type ipconfig/all to view my information it doesnt work it gives me a error |
|
| 3730. |
Solve : copying certin segment's from a file? |
|
Answer» im trying to copy certin segment's from files to save as delimted txt files. |
|
| 3731. |
Solve : Printing DOS? |
|
Answer» Hi, I currently run Windows 98 ver 4.10.98 |
|
| 3732. |
Solve : stream editing in cmd shell? |
|
Answer» HI - I have a file with some string tags in it like this: ... FOO/path1 FOO/path2 FOO/path3 ... I want to replace FOO in the above file with values of my choosing (shell/environment variable values). I've tried lots of clunky things with msdos and so far have no luck. I would much prefer to use ant or even some more functional shell (KORN or bash), but need to stick for now with the standard cmd (Win2K/XP) shell. I cannot add utilities - this has to be with the standard/default install utilities in cmd shell. Is there any way to do this? Thanks in advance for your assistance. dan The cmd shell does not have a built in SEARCH and replace function. You can try something like this: Example: CODE: [Select]for /f "tokens=2 delims=/" %%a in (test.txt) do echo NEW/%%a >> out.dat The above code is to be used in a batch file. From the command line use: Code: [Select]for /f "tokens=2 delims=/" %a in (test.txt) do echo NEW/%a >> out.dat You can change the NEW/ string to any SET of characters you like. Some Windows Scripting languages can do this within the same file. The cmd shell cannot, therefore the output file. Hope this helps. 8-) |
|
| 3733. |
Solve : Change user in command prompt? |
|
Answer» Quote from: Diablo416 on April 11, 2007, 09:11:46 PM
Wrong.Well, guys, I suppose only this is close to what I was looking for: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/runas.mspx?mfr=true I've been searching for a long time and I didn't found ANYTHING else. Enjoy i know a way to get administrator. get the computer in securemode. (im not sure if it named secure mode) but if you turn off the computer and turn on and off. then you can get into a account which only open THINGS that you need. that user is administrator!Quote from: patio on April 12, 2007, 08:48:21 AM Quote from: Diablo416 on April 11, 2007, 09:11:46 PM it does exist , my computer now doesent have it either.. but i have seen it, it might be something you have to enable first.. Quote from: Diablo416 on April 11, 2007, 09:11:46 PM if your an xp user you dont have to switch users to be administrator, Do you mean "Run as..."? It looks like it might WORK for programs but I have not tested it.ok, but is it possible to switch your self from limited to admin through OS on xpQuote from: Diablo416 on April 12, 2007, 07:46:57 PM Quote from: patio on April 12, 2007, 08:48:21 AMQuote from: Diablo416 on April 11, 2007, 09:11:46 PM Where ?Quote from: goodnatureddog on April 13, 2007, 10:15:59 AM ok, but is it possible to switch your self from limited to admin through OS on xpYes You click Start, then Log off (the picture of keys) and then "Switch Users" This is how you do this. If you are having PROBLEMS with this, then please confirm the following: I have Antivirus I have Antispyware/adware I have a valid copy of Windows XPSeems you mean the "SU" command. It is in Windows Ressource Kit Check this link: http://www.ss64.com/nt/su.html hope it helps uliSorry, can you give me an example about this: http://www.ss64.com/nt/su.html You have to install the command on your MACHINE and give the account the necessary rights. Read the helpfile of the command. There is also an example in the helpfile. uli |
|
| 3734. |
Solve : No boot drive available--update? |
|
Answer» I have recently attempted to boot up my computer (see previous post by myself--dated 1/2/06) and this is where I am at in the process. I am able to get to the screen entitled "Windows 98 Start Up menu". I CHOSE option 2--to proceeed "without CD ROM support" as I did not have Windows 98 on a CD available ( I have now managed to find such a CD). At any rate, after choosing option 2, I was given a message "preparing to start your computer", then "Diagnostic tools successfully loaded to drive D", then DOS prompt "A: \>_. Shortly thereafter, and I am sorry I cannot remember the sequence of commands I typed in (but some of them were "SYS.COM, SYS, CONFIG, FORMAT) I received a message Device driver not found: MSCD001 no valid CDROM drivers selected". At the A: \>_ I also received such ERROR messages as "Bad command or file name" and/or "Required parameter missing". Once I received the message "WARNING: All data on non-removable disk drive C will be lost. Proceed with format Y/N. I chose Yes (thinking that I was FORMATTING the hard drive (?). At one point my son my son typed in "ext" at "A: \> " and was given Extract Command Helper/ MS Cabinet Extractor Tool Version (16) 1.00.603.0, Error: cannot open file: windows (null). So, if someone could sort out this mess and tell me exactly what I need to do install drivers (or whatever else) and install Windows 98, it will be greatly appreciated. THANK YOU.From "Proceed with format Y/N" choose Y and press enter. |
|
| 3735. |
Solve : hide dos window? |
|
Answer» how to hide dos window from batch fileyour GONA need three files,, |
|
| 3736. |
Solve : MSDOS Copying Question? |
|
Answer» Something happened with my computer and I lost a file called "wininet.dll". I then used another computer to download the file and put it onto a CD. When I turn on my computer I can't do ANYTHING but use an MSDOS command prompt. Is there anyway to copy the file from the CD onto my hard drive to fix my computer?You can, but that will not help you boot back into Windows. you can do a repair from the XP INSTALLATION CD. |
|
| 3737. |
Solve : parallel port test under DOS? |
|
Answer» I have a parallel loopback plug, and prtport.exe to run under dos. |
|
| 3738. |
Solve : Simple script Problem? |
|
Answer» Hi, |
|
| 3739. |
Solve : Password Protect Batch File In XP ???? |
|
Answer» Hi There... |
|
| 3740. |
Solve : FOR command, where to learn? |
|
Answer» does anyone knows where you can find a good explenation of the command for (example: for /f tokens="") my os is windows xp professionalI have yet to find one myself, but I suppose this one is as good as any: FOR |
|
| 3741. |
Solve : finding differences between 2 directories? |
|
Answer» Im trying to figure how I can scipt using a batch file the differences between two directories and only copying only the difference of the two to a new folder, such as lets say fold1 has files 1,2,3 and fold2 has 1,2,3,4,5,6. I want only 4,5,6 copied. thanksThere are too many variables to GIVE a definitive answer. Are you only basing this on file names or do date and times enter into this picture? What OS are you using? |
|
| 3742. |
Solve : Changing Default Directory? |
|
Answer» In Command Prompt, the default DIRECTORY is "C:\Documents and Settings\Nick". How can I change this to just "C:\"?RIGHT click the command prompt icon. CHOOSE properties and change the START in field to c:\ |
|
| 3743. |
Solve : "Set" in batch file? |
|
Answer» I need to set two environment variables: test_input and test_output |
|
| 3744. |
Solve : NEED HELP BADLY? |
|
Answer» I have a Aptiva IBM with Windows 98 on it. You're very naughty for making a double post! Well, the FIRST ONE wasn't going anywhere, so: "If you don't succeed, TRY and try again." Of at least I THINK that's how it goes.Very hard to picture this problem without actually seeing it. Lots of things it could be. Firstly i would CHECK that the hardware is functioning correctly by removeing the devices from the system, like modems, sound cards etc and see if the problem still exists with the bare essentials.What exactly does the screen say? |
|
| 3745. |
Solve : Creating a Folder with the Date as a Name? |
|
Answer» I'm TRYING to WRITE a batch file once a week to do back ups and I want it to create a folder and name it the date. |
|
| 3746. |
Solve : User Account Switching? |
|
Answer» how/where do you install user account SWITCHING, becuase once you are on a domain, it disables that. or can you not SWITCH in that case, but only log off?What OS are you using? I'm using Windows XP, and Account Switching is already on it.You cannot use user account switching when the computer has been ADDED to a domain. You will need to log off or demote the machine back to a WORKGROUP for that functionality. |
|
| 3747. |
Solve : ms dos commands - simultation? |
|
Answer» hallo everybody ! |
|
| 3748. |
Solve : Why "at" doesn't work...?? |
|
Answer» Have another problem with my Command Prompt. The command "at" doesn't work. I use a limited account but I think it should work. When I type the command "at" a MESSAGE appears: "Access is denied.". Do you have any ideas how can I fix this...?Can you create a normal scheduled task under this limited account? I'm going to bet you can't. Anyways you can always use the runas command to execute the command under elevated user credentials.If you're account is limited, you probably wouldn't be able to use at because it allows you to delete schedualed (<--- CORRECT spelling needed here) events that may be used by other users.At my school, the WHOLE Command Prompt program is BLOCKED. |
|
| 3749. |
Solve : diablos fast find? |
|
Answer» SIMPLE script , first ADDS all files with attributed files to a day-month-year_01A then uses findstr to FILTER them instantly.. , then saves your search as year-mysearch.0b so if you search for the same file again, its instant the next time... i added dates because files change, so everyday it creates a new day-month-year_01A file syntax first scan - %0 search - %0 %1 @ECHO OFF Rem Get Day,Mth & Year from %Date% SET Day=%Date:~0,2% set Mth=%Date:~3,2% set Yr=%Date:~6,4% set UF=%1 if exist %Yr%_%UF%.0B GOTO HPPR if exist 1_%Day%-%Mth%-%Yr%_01A GOTO SERH if not exist 1_%Day%-%Mth%-%Yr%_01A GOTO BEGN :BEGN CD\ dir *.* /B /S /X >>01A ren 01A 1_%Day%-%Mth%-%Yr%_01A attrib +S +H 1_%Day%-%Mth%-%Yr%_01A GOTO END :SERH CLS findstr %1 1_%Day%-%Mth%-%Yr%_01A >>%Yr%_%UF%.0B attrib +S +H %Yr%-%UF%.0B CLS findstr %1 1_%Day%-%Mth%-%Yr%_01A GOTO END :HPPR type %Yr%_%UF%.0B GOTO END :END |
|
| 3750. |
Solve : Timed task? |
|
Answer» can i PUT a BATCH file in timed command USING command prompttry the AT command |
|