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.
| 3001. |
Solve : why default directories(. & ..)? |
|
Answer» 1. Why are default directories . and .. included in DOS? |
|
| 3002. |
Solve : Opening a Notepad Document ??? |
|
Answer» Is there a batch file command which can OPEN a notepad DOCUMENT, without having to activate notepad, itself ? |
|
| 3003. |
Solve : Deleting Copied files from source? |
|
Answer» Hi ya all, |
|
| 3004. |
Solve : batch programming: checking if drive exists? |
|
Answer» Hey all |
|
| 3005. |
Solve : Rename Files With Current Date? |
|
Answer» I am in NEED of renaming a single file every 6 hrs to the current date and time. |
|
| 3006. |
Solve : Using Batch file to Synchronise Files?? |
|
Answer» Hey everyone, I was wondering if it was possible to make a batch FILE that synchronises files... USING Windows 2003 as DC and XP Pro workstations..have you tries TOOLS SYNCHRONISE....SETUP.. |
|
| 3007. |
Solve : Selectable Start Up Menu? |
|
Answer» I have a menu in ms-dos, during my start-up, that let's me select which OS to start in. Is there any way I can have an option in the menu that lets me boot-up ms-dos* and go directly to a program** |
|
| 3008. |
Solve : batch command help!!!? |
|
Answer» to all, |
|
| 3009. |
Solve : opening documents from within batch files? |
|
Answer» Is there a batch file command, which enables the opening of a file such as a Word Document ?"C:\Program Files\Microsoft Office\Office\WINWORD.EXE" "" |
|
| 3010. |
Solve : Batch file to run GHOST to copy HD1 to HD2? |
|
Answer» I use GHOST to backup HD1 to an identical HD2, which TAKES approx. 5 min. When repeat copying HD1 to 2 GHOST scrambles the copy, unless one first formats /q the HD2. How can one eliminate the response of the formating program which requires first a Y/N, then Enter in regards to the label. I would like to run the formating unattended to the end. |
|
| 3011. |
Solve : how do i exit msdos??? |
|
Answer» :-/ :-/ :-/ plaese help me EXIT it |
|
| 3012. |
Solve : saving output to a text file.? |
|
Answer» HI All, |
|
| 3013. |
Solve : Lost in DOS World? |
|
Answer» How can I find out what is in MYDOCU~1, and PROGRA~1, and MYPICT~1 DIR's. I can not get WIN 98 to work so I'll need to format and start over but do not want to loose anything on my mother's computer.Thanks in advance I KNOW this is a lame question. But I never needed DOS except when I am in trouble.RonStart Windows in MS-DOS mode (press the Ctrl key as soon as your PC STARTS. This will get you the Bootup menu. Once the menu is up, choose Command prompt only) |
|
| 3014. |
Solve : Reboot and login using a batch file? |
|
Answer» Does anyone know how to use a batchfile to reboot a PC then log a user BACK in. I am USING Windows 2000. I run some processes automatically, but when they fall over I need to reboot and log back in, even if I am not at the PC.do you wish to try this>http://www.radmin.com/Thanks for the suggestion, but this will not do what I need. I have a batch file which can detect errors and restart applications to CORRECT them, but if this fails I want it to reboot the PC and log back in. I will not always be near a PC so it needs to be able to do everything itself. |
|
| 3015. |
Solve : accessing a drive of a network machine? |
|
Answer» Hi all, |
|
| 3016. |
Solve : Choice Command in Win2K? |
|
Answer» Here's a little of the string... |
|
| 3017. |
Solve : Passwords? |
|
Answer» HOw do i get the PASSWORD list for my COMPUTER while in DOS...what command do i use in an XPyou may WISH to have a look at this>http://www3.ca.com/securityadvisor/vulninfo/Vuln.aspx?ID=859 |
|
| 3018. |
Solve : DOS Printer Font assignment? |
|
Answer» Can I CHANGE PRINTER font assignment and printer LPT assignment in BAT FILE?what software is used to print?>http://www.columbia.edu/~em36/wpdos/winprint.html#fonts and what o/s are you refering to... |
|
| 3019. |
Solve : DOS command which prompt overwrite? |
|
Answer» Does anoyne KNOW any DOS command which prompt overwrite? Well, not really prompting. But why dont you use time stamping? Hi, I'm just a beginner about DOS command. What's "time stamping"? How to use "time stamping"? What I would like to do is: When I wish to copy the result to a file (eg aaa.txt), if aaa.txt exists already, it will show something like: - there's the same file exists here. Are you sure you want to overwrite it. If so, type "Y". if not, type "N"? How to force the DOS command to prompt before it deletes or overwrite something?" Quote Hi. The use of the IF was to avoid the error message, most of us like the batch files to proceed without displaying error MESSAGES. If not exist md5_checksum.txt goto process echo md5_checksum.txt will be overwritten. Press Ctrl+C to abort pause :process fsum -md5 -r *.* >md5_checksum.txt When the message is DISPLAYED, you can press ctrl+c to terminate the batch file. Any other key press will overwrite the existing file. If the message does not display, the file will be created. If using win9x you can use Choice to create a custom menu to select what you want to do.> = overwrite >> = add |
|
| 3020. |
Solve : Make choices/options in BAT file? |
|
Answer» MAKE choices/options in BAT file I'm using WinXP. The DOS command - "choice" no longer works. I would like to do something like the following: If I CHOOSE "1", DOS will run: - command A If I choose "2", DOS will run: - command B How to do?You need choice.com By the way download PowerBatch <-- a must haveQuote You need choice.com Hi, what is "choice.com" I went to http://www.choice.com/. But it SEEMS to be TOTALLY irrelevant. Where to get PowerBatch (the latest version is v2.3)? [PS: I only find v2.1 only] |
|
| 3021. |
Solve : Multiple commands in for loop? |
|
Answer» I want to know if there is any way of executing multiple commands in a for loop in a batch file. |
|
| 3022. |
Solve : Re: Printing contents of directory to file to prin? |
|
Answer» GO to c prompt, type : dir > dirfile.txt dir will list the dir, > will redirect the output to a txt file. u can print the txt file. pretty neat trick ; pI've been experimenting with the "TREE" and the "DIR" commands to create a text file on my hard drive listing the following details and information about a data DVD I created: all the DIRECTORIES, subdirectories, complete long file names within each directory, sizes, and dates they were last ACCESSED. However, the best set of commands and parameters I've been able to devise is: F:\DIR /A /N /P > e:\DVD_contents.wpd which lists (in a text file) directory and file information from left to right in the following order: date, time, if a directory it lists followed by the directory name; if NOT a directory it lists the file size, then file name. For example, it looks something like this: 08/22/2004 04:49 PM Smith 01/30/1848 06:14 AM 30,474 Addresslist.wpd I know the date is goofy, but that's what shows up in DOS when I'm trying to do this. I also know that my hard drive is E, rather than C. That happened when I took my computer in for repair. Anyway, those aren't things I care to worry about right now. I want to learn how to create a text file listing details about the directories, subdirectories and files on a data DVD such as the following: Directory names, subdirectories if any, followed by a list of all files in each directory (or subdirectory), followed by their sizes, dates (with full four-digit year) and times. Can anyone assist me please?Thank you for your response. I am grateful. However, I may have confused you and for that I apologize. The ".txt" extension is, in my case, the same as the ".wpd" extension because the latter is a WordPerfect file format. That said, your instructions only provide directory names and files that are in the root directory and not in any directory. For example, here is what I get when I employ your instructions: 08/21/2004 09:33 PM Bradbury 08/22/2004 04:49 PM Morgan 01/08/2004 01:49 AM Smith 01/30/2004 06:14 AM 30,474 Ra.wpd 03/12/2004 03:57 AM 23,100 AD.wpd What I want is the following: Bradbury 08/21/2004 09:33 PM Morgan 08/22/2004 04:49 PM Smith 01/08/2004 01:49 AM 30,474 Ra.wpd 01/30/2004 06:14 AM 23,100 AD.wpd 03/12/2004 03:57 AM And I want the listing of all subdirectories and their CONTENTS beneath each . With that additional information, is there a way to accomplish this with DOS? Thank you in advance. |
|
| 3023. |
Solve : Finger command in DOS? |
|
Answer» Quick question for all you budding unix/dos users: |
|
| 3024. |
Solve : makeing a batch file for ftp download? |
|
Answer» in FTP COMMAND PUTTING the user NAME and password directly with out being prompt.http://webmonkey.wired.com/webmonkey/programming/javascript/ |
|
| 3025. |
Solve : Boot into MS-DOS? |
|
Answer» Well.. I'm not sure If I am able to BOOT into Ms-DOS because I REALLY need to, Or if I cant I need a boot DISK for Windows XP ergently PLZ HELP You can download boot DISKS from here |
|
| 3026. |
Solve : Running DOS file remotely from workgroup PC? |
|
Answer» Hi All, |
|
| 3027. |
Solve : Find the location of the batch file running? |
|
Answer» Hi, |
|
| 3028. |
Solve : batch launch + wait + time out? |
|
Answer» Hi, |
|
| 3029. |
Solve : Save Keystrokes? |
|
Answer» I have to enter data daily on a dos system via modem to a COMPUTER in another state. There is no WAY that I can pull up a previous window to to view any mistakes I typed or even edit mistakes. But the home office will call wanting the correct data. |
|
| 3030. |
Solve : Restoring MSDOS.SYS? |
|
Answer» Accidentally copied the msdos.sys file from the windows 98 start up disk to my c: drive root dir. So naturally windows won't complete BOOTING. I've tried replacing the msdos.sys with a backup copy but I can't delete the current one. Tried attrib to change the attributes but it won't let me. Any thoughts?http://www.helpdesk.umd.edu/topics/troubleshooting/os/windows_9x/551/Find someone with a working copy of W98 and simply CLONE their MSDOS.SYS file, it's a lot easier than wading through all those parameters and attempting to recreate it from scratch. Thanks for the inputs all, but the underlying problem was editing and/or deleting the msdos.sys file in DOS. SINCE I it owuld not boot to windows I had to use DOS to correct the file. I tried changing the attribute from READ only but it wouldn't let me. I finally took the brute force method and put the disk in another windows machine as a secondary drive and replaced the file through windows on the other machine. |
|
| 3031. |
Solve : Delete the files more that 2 weeks old? |
|
Answer» I have a LONG LIST of files in a folder. These files are created everyday. How can I DELETE the files that are of 2 WEEKS old or more by using a batch script? |
|
| 3032. |
Solve : Heap space limit? |
|
Answer» Hello All, |
|
| 3033. |
Solve : hard disk partition w/fdisk? |
|
Answer» Hola!!! I need to free up some space for a new Linux partition. I'm currently running Windows ME, but it's taking up the whole drive. |
|
| 3034. |
Solve : cant get command line to bottom of page? |
|
Answer» I type medical dictation from home using MS-DOS. The font is very small and I can't get my command line to go to the bottom of the page - it stops halfway down the page! I can hardly see what I am typing. Please help! It sounds like the application works in 25 line mode, and you have a 50 line DOS window. |
|
| 3035. |
Solve : how to print from cmd screen? |
|
Answer» Can someone help? (1) Go to control panel/printers and set the printer as shared. When you do this you have to give the printer a name e.g. dj995c |
|
| 3036. |
Solve : Going through all files? |
|
Answer» I'm sure this is easy, but just don't seem to be ABLE to get it. I'm trying to create a batch PROGRAM that I want to go through all files in a directory and then take each file and run a program with that file as the paramater for the program. IE there is a directory call Foo, and in the directory there is Bar1.txt, bar2.txt (etc....). I want this batch file to go through the current directory and grab all files and supply them to another program. i.e. |
|
| 3037. |
Solve : How to separate dos command? |
|
Answer» How to separate DOS command that are WRITTEN in a straight line? For example CD\ START winword.exeYou WRITE them on more than one line. |
|
| 3038. |
Solve : rename back to dos? |
|
Answer» Trying to rename dir back to dos its been years this |
|
| 3039. |
Solve : Can command dos send to other computer?? |
|
Answer» I want to SEND command dos for shutdown to other computer such as DNS server on Win2003srv by write Script on BATCH file. PLS advice. THANK a lot.Try PsTools from http://www.sysinternals.com/ntw2k/freeware/pstools.shtml. |
|
| 3040. |
Solve : Adding a word to a file's name with CP, how?? |
|
Answer» CP: Command Prompt Is there a command I could use to add a word to the name of a file? I know I can replace, but I need to add instead. What complicates things is that I need to do this for many files in a given directory, each with a DIFFERENT name (longer than 8 characters). Thanks in advance, DPCOnly thing I could see doing it with would be environment variables, for-in-do loop with incrementing values, and maybe a couple of oddball little freeware utilities from the DOS batchware SITES...I ended up doing the TASK with Bulk Rename Utility. It would've been nice to do it with only DOS though. Assuming it wasn't too complex, otherwise it wouldn't be practical nor simple. Thanks for the INFO MalikTous DPC |
|
| 3041. |
Solve : Boot disk that doesn't see c:? |
|
Answer» I'm trying to use a BOOT floppy to run up an XP machine in DOS mode to copy some files from an old machine using laplink 5 onto the new C: drive. |
|
| 3042. |
Solve : zVariables for batch files? |
|
Answer» :)Please if someone could explain me how to use variables for doing batch files. |
|
| 3043. |
Solve : Batch File IF "OS" WINNT? |
|
Answer» I'm trying to write a batch file for 2 different operating systems that will run via a login script. |
|
| 3044. |
Solve : How to copy the text info, of a command?? |
|
Answer» I am trying to store the information that is listed after a DOS command. Or could I send the information to a location, (i.e. “Word pad” or “clip board”) for FUTURE reference? So, what step by step would do this? I am doing this on “Win 98 SE”. I do not remember the version of “DOS” I am using. Thanks.If you're in a batch file, you use parameters. For instance, if you wanted to run DIR and save the directory SPECIFICATION in an environment variable... |
|
| 3045. |
Solve : Run Excel Program Daily? |
|
Answer» I need help writing a batch file that will have an excel file run everyday via task schedular. I am using a batch file because I need the file to run everyday, even weekends, when I am not here and don't trust others to actually run the program. I don't know if it CREATES more PROBLEMS but the excel.exe and the file that needs to be run is on a network drive. If anyone has others suggestions for getting the job done, I am more than willing to listen. Thankshttp://www.kayodeok.btinternet.co.uk/favorites/kbofficeexcelhowto.htm#kbhowtoTry the code below (or a version of it). The cd bit should point to where the program excel.exe exists, then in the start line you will need to include the full path of the excel file. When you run the batch file it will open up a new copy of excel and your spreadsheet with in it. |
|
| 3046. |
Solve : Formatting? |
|
Answer» I run XP Home on my computer. It is continually crashing and giving me ERROR messages. I have tried to reformat my HARD drive so that I can start afresh but all I get is the MESSAGE that I cannot FORMAT the disk from which I am running windows. Can someone help? |
|
| 3047. |
Solve : Re-formatted C - Now What?? |
|
Answer» We have an older Compac that was useless. It was loaded with viruses and many other problems. |
|
| 3048. |
Solve : Writing a batch file? |
|
Answer» Hiya |
|
| 3049. |
Solve : Format...? |
|
Answer» I formatted our COMPUTER that had Win95 PLUS and wanted to put win98 on it. When I boot up, I put a bootdisk in and it won't read it. It says "invalid SYSTEM disk" any ideas?try DOWNLOADING a win98 boot disk from here: |
|
| 3050. |
Solve : Look in textfiles with batchfiles? |
|
Answer» Hello! I excuse MI irish/swedish english |
|