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.
| 4051. |
Solve : messaging using DOS? |
|
Answer» does anyone KNOW the commands and syntax for sending messages using DOS via IP addressess. I thought that it had something to do with ping/send etc but I FORGOT! who can help me?net send computername or ip - ADRESS .....To send messege : net send ip/host messege |
|
| 4052. |
Solve : undeleting command in dos?? |
|
Answer» Please help me with the DOS COMMANDS for undeleting or recovering lost/ hidden files in the system. Are you talking real DOS or some version of Windows command prompt? Hidden files are neither deleted not "lost". They have the file attribute h. If you want to "see" a hidden file or files change the attribute using the attrib command at the command prompt. The undelete command is not available in XP/NT systems. If a file is deleted it MAY still be available in the Recycle bin. If the Recycle bin has been CLEARED you will have to use a third party program to recover the file. See here for a list of commands available in XP/NT and here for an interesting article on file RECOVERY and here to download a recovery program named Restoration. The MS Command Line Reference can be found here Good luck |
|
| 4053. |
Solve : Undeletable folders? |
|
Answer» How can you make a folder undeletable on Windows 2000/win XP. I'm not aware of any file attributes that make this possible. Usually files marked non-delete are protected system files (usually hidden) which are vital to the OS or files that are in use by another process. |
|
| 4054. |
Solve : Saving doskey history to a text file? |
|
Answer» How can i save the doskey history to a TEXT file?If you think this thru it should be pretty simple: |
|
| 4055. |
Solve : Printing MS DOS Screen? |
|
Answer» HI, I am PROGRAMMING in Turbo Pascal 7.0 and get some graphics and text as a RESULT. But when I need to make hard copy og this issue I get stuck. Even PRINT screen doesn't copy this graphics, but only text. Does anybody have idea how to print Turbo Pascal result? Any help APPRECIATED! |
|
| 4056. |
Solve : CACLS without prompt? |
|
Answer» How can you use cacls so when its asking"Are you sure yes/no" it atoumatically would SAY yes, without the user input There are no SWITCHES for this. Try writing a script to do this directly. |
|
| 4057. |
Solve : print command? |
|
Answer» a fairly EASY question: |
|
| 4058. |
Solve : Help with batch file which can copy, rename, edit? |
|
Answer» Hi, can ANYONE help me with this problem? |
|
| 4059. |
Solve : Im on a school computer without a run command,HELP? |
|
Answer» IM on windows xp, no run command, how do i access DOS on this computer... i cant download anything either... PLEASE HELPI dont know a ton about this and im probably wrong but if you WANT to get a command prompt open notepad and type in "command.com" then save the file with the extension ".bat". when you run the file it should give you a command prompt hope this works for youSince it is a school computer it's likely they might have those permissions turned off. However you can try going to Start/Run and type in command and hit Enter. patio. Downloading anything will be a problem as you won't be having write permissions. I think you can open the command prompt. Give US the scenario of what you have tried and what you can't.the run command is completely gone from this computer the notepad thing wont work... but one of the other classmates accessed dos using MS- Word and some thing he did in there, then the dos screen comes up, but i dont know how pleaaaase help, i need to be able to get it up i HAVE NO RUN COMMAND AT ALL..... please helpIf there is no Run command on the Start menu this tells me that this is how the school wants their machines...in other words they have disabled it. Why not ask them about what it is you are trying to do. patio. I have done this same trick at my school, because i am in the very same scenario... IF you have Windows XP at home, or anywhere else where it is unrestricted... Make a shortcut to the RUN program, and take it to your school computer. When you click on the RUN shortcut type in CMD and [glb]U GOT DOS![/glb]You need to talk to the ADMIN...... Quote I have done this same trick at my school, because i am in the very same scenario... Huh ? ? ? ? patio. i think he means save it on a floppy or something and take it to ur school and load it on or u could if they dont have RIGHT click bloced then just right click goto new then shortcut then make the short cut to cmd or command.com or msdos command promt where ever but most likly ur admin will have blocked that u have notepad and it dosent work? just open it and type in start and save it as what.batQuote You need to talk to the admin...... Or the admin may come to talk to you! Quote
Where does RUN place to make shortcut to it? Or any other way to make shortcut to RUN? Quote i think he means save it on a floppy or something and take it to ur school and load it on or u could if they dont have right click bloced then just right click goto new then shortcut then make the short cut to cmd or command.com or msdos command promt where ever but most likly ur admin will have blocked that as i said...HUH ? ? patio. |
|
| 4060. |
Solve : Batch file inserts a charcter? |
|
Answer» I've created a batch file that copies all network DRIVES into a text file for me. If I TYPE each line into the command PROMPT individually, it works. However, if I RUN the batch file it inserts a character in the command line which causes the command to crash. |
|
| 4061. |
Solve : Search en replace text in files? |
|
Answer» Hi there, I'm here for asking a quite complicated script, I tried it for myself some thime but I can't write a good one. So perhaps you guys can help me. I would like to create a batch file that search (in the same FOLDER where the batch files stands) - in all files with the extention .html - at the FOLLOWING text in the files: menu=new obj("menu^^2^+^4^+^17^+^12^+^8.2^+^17^+^Arial^+^cccccc^+^f0f0f0^+^ffffff^+^000000^+^999999^+^ffffff^+^n",new obj("info^^^^^^",) Windows Grep is a tool for searching files for text strings that you specify.I want to do it in BATCH |
|
| 4062. |
Solve : flashing command line (netstat -a)?? |
|
Answer» my friend was recently hacked by WAY of having a trojan installed on her computer. anyway, now she seems to have a problem with a flashing command line when she does a netstat -a. can anyone explain why this happens? the command line/DOS opens up, just that when a command is entered, such as netstat -a, it flashes and closes instantly. Can I now take it that the same problem occurs with commands other than netstat -a :-? Please try other entries at the Command Prompt such as the humble Dir so that we can narrow the problem to EITHER the command prompt or the command being entered. Which command prompt is being used, Command.com or Cmd.exe :-? This is a typical symptom of one of several infections. Carry out the procedures listed [highlight]in this post[/highlight] and post a HIJACKTHIS logfile here when done. If possible, zip the logfile and ATTACH it rather than post it. |
|
| 4063. |
Solve : Opening MS-DOS prompt from any directory in Explor? |
|
Answer» Folks: |
|
| 4064. |
Solve : save a file according to the current date? |
|
Answer» Not sure what FILE you're REFERRING to. The input to spfdb or the output of spfdb. In any CASE just run a copy PRIOR to the RENAME. You may have to fixup the filenames so the correct file gets renamed. |
|
| 4065. |
Solve : Batch file keeps copying a few of the same files? |
|
Answer» I created a batch file with a scheduled task that copies files from C to D, no problem. I used the following switches /d /y /s. I then created the same batch file to copy from the D drive to a network drive G. Copies files changed on or after the specified date. Sounds like more of a date/time problem than the archive bit (the /k switch). Try using with a hardcoded date or one you develop in your batch file. Happy Computing. 8-)I don't know how to use a hard coded date or develop one in a batch file. Please explain? Of course you were correct in that I an using Xcopy. Any and all help is welcome. ThankHardcoding a date would be something like this: xcopy /d:12-31-2005 /y /s ..... Developing a date that moves from day to day in a batch file is problematic. Batch files do not do date/time arithmetic without jumping thru HOOPS. Perhaps after each file(s) are copied, you could look into the ATTRIB command to set the archive bit and then use XCOPY with the /a switch so only files not archived are copied. If you need to post back, please mention your OS. Hope this gives you some ideas. 8-) |
|
| 4066. |
Solve : Create DOS Boot option in Windows NT 4.0? |
|
Answer» I have installed WINDOWS NT 4.0 on my machine, but I need to install MS DOS 6.22. |
|
| 4067. |
Solve : Piping info into .bat files? |
|
Answer» I'm TRYING to find a way to pull info from a .txt (or other file) to assist me in pinging a large number of computers (one at a time). I need to know how to go about this. Do I need to USE IF statements or can I have all the computer names one per line in the .txt file. Syntax is ANOTHER area I'm not sure about in this particular instance. |
|
| 4068. |
Solve : A batch file to crack passwords??? |
|
Answer» does ANYONE KNOW a batchfile that can crack passwords because I forgot mine!!What is the password you want to crack?? Eg windows password, word macro password. There are many third party programs that can crack passwords. You can find them by searching Google.it's a windows password!??Are you logged in to the computer as different account?? or can't you login at all??different account |
|
| 4069. |
Solve : IF & Variables?? |
|
Answer» Sorry if this is a repeat! I tried searching but it turned up nothing! |
|
| 4070. |
Solve : Disappearing DOS? |
|
Answer» I run Windows XP, and recently I've been trying to use SCUMMVM to run some of my older games. The first few days it worked fine and, as per norm, OPENED up the command prompt in order to open the program, then allowed me to access my games. Try typing "cmd.exe" instead of "cmd" in Start - Run, and see if it stays open.I tried that already, it does the same thing. Pops open momentarily, then disappears. I can open it 100 times and it does the same thing.If Regedit fails to open properly as well, it's almost certainly due to an infection; W32.Bropia being the favourite perhaps.Quote If Regedit fails to open properly as well, it's almost certainly due to an infection; W32.Bropia being the favourite perhaps.If you mean type in 'regedit' in the RUN box, then, I just did, and it opened fine. Apparently it's just the DOS, command prompt and anything that needs to open DOS to open itself like SCUMMVM. I uninstalled and deleted SCUMMVM and am trying to reinstall it, but it's coming up with errors as well. I know how to fix that, but it still doesn't do much GOOD if I can't use it. Also, I pulled up RUN and instead of entering 'cmd.exe' like I usually do I entered 'command.' It popped up momentarily with a End Program message, and I took a screenshot of it. http://img69.imageshack.us/img69/7315/helpdos2kb.jpg Hopefully that can shed some light on what's going on.. I'm such a newb when it comes to DOS, my method is usually trial and error but this has really got me on edge. Running some scans still, to see if they find anything wrong.The image appears that command.com opened and you clicked the X to close it. When opening command.com from the RUN box you should use the EXIT command to close it. Try opening cmd using the /k switch.Quote The image appears that command.com opened and you clicked the X to close it. When opening command.com from the RUN box you should use the exit command to close it. Try opening cmd using the /k switch.I didn't click anything. The command box was trying to close itself. That's the problem. Also, I don't NEED to open the command box as much as I need to know how to stop it from closing, I figured that if I knew how to open it there would be something I could do within it to keep it from closing when I try to open SCUMMVM.Did you take Backdated's advice? If you are infected, ALL bets are off on a solution!Quote Did you take Backdated's advice? If you are infected, ALL bets are off on a solution!I started to earlier but had to stop. I've picked it back up now though. This definately applies to me, right? Last time I started to download stuff and try to 'clean up' my father's computer, he blamed me for something deleting his D-drive, which was the whole reason why we had to reformat the computer. (It's been less than a week since the reformatting, so you can understand why this is getting stressful for ALL of us.) I'll keep you posted just in case.I ran everything Backdated suggested, and the problem is fixed now. Thank you. From now on I'll know what to do if this ever happens again. Thank you, again, very much.Thanks for posting back that the problem was solved (without deleting the D drive!) Quote I ran everything Backdated suggested, and the problem is fixed now. Thank you. From now on I'll know what to do if this ever happens again. Thank you, again, very much. Do you know what the problem was? Such feedback is always useful. You really should post a Hijackthis logfile by the way. ya my friend had an infection like this, the ctrl-alt-del function was completely disabled and the task manager wouldn't open. so i pulled out my armagedon disk and boom destroyed the harddrive. |
|
| 4071. |
Solve : directory entries? |
|
Answer» is there a COMMAND to change the MAX number of files in any given directoryEarly MS-DOS VERSIONS had a limitation of how many directories could be in the root directory (file system RESTRICTION). As far as I know there was never any limitation on sub-directories (other than what the disk could hold). |
|
| 4072. |
Solve : Installation under demand? |
|
Answer» Hello all! |
|
| 4073. |
Solve : formatting and saving drivers? |
|
Answer» Are there any way to format the c: and SAVE the drivers LIKE the sound and color. I always have a hard time GETTING those BACK on, after a format |
|
| 4074. |
Solve : Internet Browser? |
|
Answer» using winXP is it possible to use the comand prompt to change default internet browsers? |
|
| 4075. |
Solve : Starting a batch before other services? |
|
Answer» I don't like lingering folders or files left from installs that I'm TRYING to delete using a batch. |
|
| 4076. |
Solve : Command Prompt Disabled...!? |
|
Answer» I tried to open command prompt but it said it has been disabled by the administarter..same with Task Manager..I AM THE ADMIN...I think I have a trojan horse that disabled it but I have antivirus software...Can someone help me enable it..K thanksIt sounds like a trojan, try... I tried to open command prompt but it said it has been disabled by the administarter..same with Task Manager..I AM THE ADMIN...I think I have a trojan horse that disabled it but I have antivirus software...Can someone help me enable it..k thanks K, it doesn't sound like you are the Administrator.But I am the admin...I hav a trojan horse on my COMPUTER that disabled my reg edit command prompt and Task Manager..I scanned with AVG..Go it off but It is still SAYING the same error..I am the admin...any way I can prove it..? o yah.. I read SOMETHING on my computer being changed like the group one or something from zero..hope that helpslist the trojan you have.....Merlin will need to guide you on this one.I had the rojan Prorat and CIA but on longer have it..my settings for the command prompt still stay.. |
|
| 4077. |
Solve : What is a servername? :-/? |
|
Answer» I don't KNOW what a servername is? :-/ :-/ :-/ :-/ :-?It's the NAME of a server! |
|
| 4078. |
Solve : Making a Batch File Questions..? |
|
Answer» I've always had a few questions about a batch file but could never figure out the right way to ask them..Well my friend made a file recently and had the same questions so I'm going to use this to my advantage... |
|
| 4079. |
Solve : Upgrade my Command prompt? |
|
Answer» I am CURRENTLY using prompt version 5.1, which MEANS that I'm missing out on some of the cool features of 6.0 and above. Is there a way to upgrade my prompt to a later version, or is there a place to download additional commands to make it like 6.0?I couldn't FIND a reference to a 6.0 prompt. XP comes with command shell 5.1 and has not to my knowledge been updated. MICROSOFT does have a new object ORIENTED MSH command shell (aka MONAD), currently in beta, that was delayed from VISTA and will probably be released with Exchange 12. |
|
| 4080. |
Solve : Need command for ejecting a CD from command line? |
|
Answer» If this is possible, could someone post the command please? I'm not aware of a "DOS" command to do this, but this little script might be helpful. |
|
| 4081. |
Solve : .exe files? |
|
Answer» I have a .exe file that runs but I do not know how to view the output as text? Can anyone help?why do you WANT to view it as text? You can't CHANGE the program from NOTEPAD.... What excatly do you mean by READ as text.... |
|
| 4082. |
Solve : If explorer off start it automaticaly? |
|
Answer» So is there any bat file that see if i have EXPLORER.exe or other process on and if i dont than the bat OPENS it without me doing anything ,just opening .bat ?Not with a batch file but a script could be USEFUL. Batch files run within the Windows shell program and do not communicate with Windows. |
|
| 4083. |
Solve : Xcopy in Batch File Only new files? |
|
Answer» I'm trying to xcopy from ONE pc to another both are XP. I CREATED a batch FILE to do the xcopy and it works fine. However, I would like to limit this to include only FILES that have been created in the last 4 days. |
|
| 4084. |
Solve : batch file with stored password? |
|
Answer» I want to run this file, but it asks for administrator password everytime, I have the password, but i want to store it in this file only so that this works automated.. |
|
| 4085. |
Solve : Tips on batch to copy files? |
|
Answer» I have a batch file that copies a file from one directory to ANOTHER DAILY, controlled by Windows scheduler. My question is, do I need to check whether or not the file is open before copying? If so, how can I do that in my batch file? |
|
| 4086. |
Solve : How to Select Ignore? |
|
Answer» I need to select ignore from " Cancel Ignore" in a error message box !!!!!!!!!!!! PLEASE HelpWho or what generated the msgbox? If you are developing a program use a POPUP which you can set to time out and take a default value. If you must use a msgbox, you'll probably need the Windows API for an auto response. If this is a commercial program, maybe some sort of a bot or even a setting within the program can do this automatically for you. |
|
| 4087. |
Solve : Re: Please help me...? |
|
Answer» Are yiou talking DOS (PROBABLY not) or some kind of Windows command PROMPT? If so, what VERSION? |
|
| 4088. |
Solve : Timeleft? |
|
Answer» I just wnt to know is there a possibility to create 1 bat file that would show time what left to 6 hours ,and that could be counting down ?Quote I just wnt to know is there a possibility to create 1 bat file that would show time what left to 6 hours ,and that could be counting down ? I really don't understand your request but in any case batch files don't do date or time calculations. Batch language is not a programming language and as SCRIPTING language is pretty far down in it's usefulness. Supose that now is 22:20 PM 3.7.2005 what i want is to know how much timeleft untill maybe 2hours am of 4.7.2005 ,so is there any .bat to do it ? or maybe vb script ?VBScript does not have the functions needed for this although JScript has some that look promising. You might try Google. Sometimes the strangest things popup. :-/ty anyway.I MAY have been a little HASTY in saying a script couldn't do this. Sometimes I overlook the brute force method. Code: [Select] dtmSec = DateDiff("s", Now, "11/04/2005 05:00:00 PM") dtmMin = dtmSec / 60 dtmHours = dtmMin / 60 dtmDays = dtmHours / 24 lngFullDays = Int(dtmDays) lngFullHours = Int(dtmHours) lngFullMin = Int(dtmMin) intHours = Int((dtmDays - lngFullDays) * 24) intMin = Int((dtmHours - lngFullHours) * 60) intSec = CInt((dtmMin - lngFullMin) * 60) wscript.echo "Days: " & lngFullDays & " Hours: " & intHours & " Minutes: " & intMin & " Seconds: " & intSec Note: This is pretty crude. It needs to be run within a loop and to pretty it up, a GUI would be nice so you can enter the end time. A HTA where you can combine Script with HTML (no browser needed) would be even better. I'll leave that to you but the code as WRITTEN will give accurate results. Good luck. Ty a lot ! |
|
| 4089. |
Solve : attrib /s output batch file question? |
|
Answer» To give you a little background as to what I'm trying to do. Our company uses Thunderbird for the default mail client. There is a problem with the mimetypes.rdf file located in each local user profile on each PC. From what I've gathered it's a known problem for certain mime types. |
|
| 4090. |
Solve : "Enter" COmmand within a .bat? |
|
Answer» I have a batch file for my counter strike serverseen below: ie, imotting -comsole Sorry guys should have been "ie, omitting -console"You COULD try echo. | start ... in FRONT of each of your start commands. If srcds and srcdsfpsboost are DOS programs this might WORK. If they are Windows programs, I doubt it will work. In any case, the start command itself may prevent anything from being passed to the started programs. Hope this helps. Thakss for that but, srcds can be either dos (console) or windows (gui) unfortunately I favour gui so never mind. |
|
| 4091. |
Solve : REGIDIT > C:/reg.reg? |
|
Answer» I need to know how to save the following code in C:/reg.reg automatically when I open it as a bat file: |
|
| 4092. |
Solve : help! extracting date modified/created parameter? |
|
Answer» Hey guys, I'm NEW to the community but I've been lurking for a quite some time now. |
|
| 4093. |
Solve : Help with creating a batch file? |
|
Answer» hi all, mock exam question, im a bit rusty with DOS so any help recieved with thanks. |
|
| 4094. |
Solve : How do i open a file using MS DOS?? |
|
Answer» How do i OPEN a FILE using MS DOS?Is this real DOS, or command prompt under some version of Windows? What type of file is it? What is the EXTENSION? If it is a .bat or a .txt file you COULD type : |
|
| 4095. |
Solve : 1.8MB file to 2.0MB floppy?? |
|
Answer» I am trying to put a 1.8MB file ONTO a 2.0MB FLOPPY, getting a message that file is too large for floppy. I have tried changing the floppy size in the Bios to 3.0MB, but this doesn't fix my problem. Is there a TRICK?Floppy = 1.44MB.You cannot CHANGE the size of a floppy in the BIOS. The BIOS can only be told what TYPE of FDD you have in your system. |
|
| 4096. |
Solve : defragment? |
|
Answer» i have an ancient antique AST laptop with windows 3.1 and DOS uh some newer version. anyway when i try to run the defragment thing in DOS ("defrag") it scans my comp really fast and then says that it cannot drfragment because there are cross-linked files on the computer or something like that. any ideas?chkdsk /f from a DOS prompt. Then try it. If it is a late enough version, there will be a scandisk program included as well (6.0 or later,I think) i did the chkdsk thing like you told me but it still won't defrag and when i try running chkdsk again it still shows the same thing with the 937 in 13 yadda yadda but now it won't let me do anythin with it it just loads something and says a bunch of crap and then just goes back to C:\> :-? ver and enter will tell you for sure. The exact message you are receiving is important.when i type in ver it says: PC DOS version 6.1 revision 0OK, we know that now, and what is the exact error message when you run chkdsk/f? Do you have the disks to reinstall, if NEEDED?Are you running this directly from dos or a dos prompt from within windows? Can you defrag from a dos boot disk?you know what just screw it i'm too lazy to do all this crap on that STUPID brickThat's the spirit!LOL I'm sorry, but that's the funniest thing ever. Rob, I always knew the Brits were known for their excellent sense of humo(u)r! Thank you for the u.You're welcome. Soviet, if you decide to try again, don't hesitate to bump this thread. We will HELP you. |
|
| 4097. |
Solve : how to find and replace word in txt file? |
|
Answer» i WOULD like to FIND a string like 'abc' and replace it with 'cde'...how do i do so in dos? Real DOS or some kind of Windows command prompt?actually looking in dos command Which version? Different versions are acting different. |
|
| 4098. |
Solve : hd formatted? |
|
Answer» I've already formatted my pc (win98) and I see an error when I boot my computer to install again the cd-rom drivers, so I can't install windows again. There apears "incorrect disk, change it ANT type again" |
|
| 4099. |
Solve : DOS books? |
|
Answer» Hello, total DOS newbie here. Can anyone recommend a book with information on things like manually installing drivers in DOS? I'm more SYSTEM builder than programmer, and I change hardware frequently. Currently my DOS machine is a Pentium 200mHz, S3 PCI video card, Soundblaster CT 4170 ISA soundcard, Samsung 52X CD-ROM, Seagate 8 Gig Harddrive, 3.5 floppy, AT power SUPPLY in a new-old Compaq desktop case. I want an understanding and detailed information of what the config.sys and autoexec.bat files do, memory addressing, device channels, DRIVER installation, things like that. I'm still learning DOS, but I'd like to get an advanced book while they're still around. I'm using DOS 6.2. Thanks.I kinda hesitate to "recommend" any publication but have found that MS-DOS Bible by The Waite Group published by Howard Sams & Co is a very good starting tome. My copy is the Third EDITION published in 1989, found it at a fire sale a coupla years ago. I don't know if the MS-DOS Bible is still in print but doubt it. |
|
| 4100. |
Solve : Windows NT4? |
|
Answer» Which DOS utility could be used to convert Windows NT4 EVENT Log FILES in to TEXT files for viewing on a non Windows NT machine? |
|