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.
| 3651. |
Solve : Deleting Files with .bat? |
|
Answer» I work with a network of computers that are used by the public and constantly have a problem with mp3's being stored on the machines. I am not allowed to have these file TYPES on the network and wondered if it was POSSIBLE to write a batch file that i can run once a week to delete *.mp3??? Im using windows xp.You can use the /s switch with the DEL command to cleanup a single drive: |
|
| 3652. |
Solve : Autoexec error fix, cannot find program to run?? |
|
Answer» I have been reading over the fix for this autoexec.nt error and have for the last half hour being trying to make it work, unfortunetly its all been to no avail. |
|
| 3653. |
Solve : delete al files exept .exe? |
|
Answer» hi, i WOULD like to delete the whole temp folder, exept the exe files. My os is windows xp and i would like to have the whole folder cleant, but the .exe's must be still thereDidn't we just do this? |
|
| 3654. |
Solve : Copying dos commands to notepad? |
|
Answer» hi, as soon as I right click it is no longer highlighted and does not give me any options. After that, open your notepad and paste it in using the Ctrl+V KEYS or selecting paste from your notepad menu. |
|
| 3655. |
Solve : Folder Wildcards? |
|
Answer» How might I be able to copy or move folders using wildcards? |
|
| 3656. |
Solve : file copy? |
|
Answer» Need to COPY files from a server to other locations in the server and local drives. Can this be done USING ".BAT" files? |
|
| 3657. |
Solve : Running a game in DOS? |
|
Answer» Hey, |
|
| 3658. |
Solve : return value in dos command? |
|
Answer» Is there any equivalent to SHELL variable in Unix in DOS that gives the return value of the LAST command EXECUTED? Is so, what is it?check out the "errorlevel" variable as WELL as the "call" command |
|
| 3659. |
Solve : find command in batch file? |
|
Answer» I am trying to execute find command in batch MODE. The command that i gave is I invoked it with file4.bat "file1.bat" file1.bat. I get the same error. what are you trying to find actually? if you are finding patterns inside a file, use findstr instead.You might try changing the FIND command in file4.bat to: Code: [Select] find "%1" %2 Not SURE what you're trying to do, but as written, your code will run file4.bat and search for the string file1.bat within file4.bat. Too surreal for me. :-/ |
|
| 3660. |
Solve : String Manipulation? |
|
Answer» Can one split the contents of a text file into INDIVIDUAL words using any DOS command?Are you talking real DOS (what version) or some sort of Windows command prompt (what version)? They are not the same.I was refering to MS Windows 2000(version 5.00.2195)Quote Can one split the contents of a text file into individual words using any dos command? Not just any command but the FOR command can read a file and PARSE the data. Type for /? at the command prompt for more details. |
|
| 3661. |
Solve : MS-DOS v1.00 need? |
|
Answer» Where I may download the OLDEST VERSION of MICROSOFT DOS version 1.00 (not PC-DOS 1.10)? |
|
| 3662. |
Solve : Don't show MSDOS prompt? |
|
Answer» Hi there! |
|
| 3663. |
Solve : Trying to load devices through autoexec.bat? |
|
Answer» I am pretty new to writing batch files and I've been given the task of writing a batch file that prompts the user to choose between booting (RUNNING) several different network capable Ghost start-up utilities. I have gone about this 2 different ways so far. I started out using a menu based in the config.sys file. But then I decided to try out the choice function in the autoexec.bat file. I like this option more, but I can't seem to figure out how to load the appropriate devices through autoexec.bat. The config.sys file has been the only way I've been able to get this to work so far, so I went back to it. This is my Config.sys file: In most cases, DOS based systems run with both files so as to customize your PC experience Amazing! I see a future for you.Quote Amazing! I see a future for you. Good. I enjoy writing fiction. Maybe some day I can write for the Microsoft Press OFFICE. Then you will be known as $idewinder ! |
|
| 3664. |
Solve : Rename adding date in XP? |
|
Answer» I used a batch to rename a FILE as following on Windows 2000: ren test.xml test%date:~4,2%-%date:~7,2%-%date:~10%.xml This worked fine. |
|
| 3665. |
Solve : How to open a ms-dos batchfile on my hard drive ?? |
|
Answer» I WANT to use a command promt to open a ms-dos batch file LOCATED on my hard drive. |
|
| 3666. |
Solve : how to make txt files with bat?? |
|
Answer» PLEASE help! @ECHO off >> name.txt ECHO your message pausethanks BLACKBERRY!no PROBLEM |
|
| 3667. |
Solve : How to make folder with *.bat ?? |
|
Answer» I want to create batch file witch creates directory that i want.. I think you need to read a good DOS book! Do you have a library near you? i agree, as SEEN that you ask questions that you learn in the beginning of working with dos, that tip may be a good solution to start learning working in dos |
|
| 3668. |
Solve : Date format in DD/Month/YYYY? |
|
Answer» Dear All, |
|
| 3669. |
Solve : Format HD, Load OS 4got to copy files 1st? |
|
Answer» I formatted a HD then Loaded an OS (XP) But forgot to copy pictures to thumb drive before doing so. How can I recover them using DOS Undelete?The XP command prompt does NOT permit the USE of the DOS Undelete command, the utility Undelete.exe is not available when using XP, it requires DOS as an operating system and XP does NOT run DOS just a DOS emulator. |
|
| 3670. |
Solve : How to add file to zip /arj /rar with batch file?? |
|
Answer» i want to ARCHIVE files with bat... |
|
| 3671. |
Solve : xccopy help list? |
|
Answer» hi all, Right click on MSDOS prompt and select properties. Under the screen tab set the initial size to 50 lines. Click OK. Now when you open the prompt from within windows, type xcopy/? and the window should have scroll bars to allow viewing the entire display. You can also resize the window to suit your needs. Quote Is this a reply ? ? /sorry I wrote out a message by quoting wot u said but ended up cocking it up!!! ANyway wot I intended to say woz that, when I set the window to full screen mode ALT-ENTER, the problem is still there. Your help is very much appreciated! best regards, za Try following the above directions. Full screen mode is not the same as displaying it in a window. |
|
| 3672. |
Solve : 16 bit MS-DOS Subsystem???? |
|
Answer» no point, i just need HELP finding the windows 32 directory |
|
| 3673. |
Solve : echo > into a file? |
|
Answer» I WANT put the following line through a batch file into the SECOND batch file |
|
| 3674. |
Solve : install a file (bat, exe, ...)? |
|
Answer» First hi to all (since i'm new) |
|
| 3675. |
Solve : Original DOS system? |
|
Answer» Can i download somewhere the original DOS version... not the emulator but the whole system -or how it can be called too- with downloading i mean "legaly" and not an pirated version or some other illigal copies... I was just wondering if it isn't for free on microsoft's site or somethingYou cannot download it for free legally anywhere. Microsoft long ago proclaimed "DOS is dead" but they won't give up the body. Quote You cannot download it for free legally anywhere. Microsoft long ago proclaimed "DOS is dead" but they won't give up the body. OK, thanx for the information and ALSO for the very quick responseNo problem. GX1_Man's above information is 100% correct. It would be illegal to download and isntall MS-DOS. If you really want an official copy you could try E-Bay. If you just want a DOS machine you may just want to setup a MS-DOS emulation using an emulator such as DosBox. http://dosbox.sourceforge.net/ Otherwise just stick with the MS-DOS shell included with every version of Windows.www.bootdisk.com allways solves my boot/DOS needs Quote www.bootdisk.com allways solves my boot/DOS needsNice, another good recommendation. There's always DRDos and FreeDos. They are probably as good as, or better, than MSDos. Full versions of Dos 7.x can also be found and downloaded.Quote There's always DRDos and FreeDos. They are probably as good as, or better, than MSDos. are they free to download, if they are, can you give me a link pleaseGoogleThere's also 4DOS, which is a free download.I would SAY, look at google, yahoo, altavista, etc. just typ 'download DOS' and you would surprise how much download sites you get. If that is legal don't ask me but you sure will get the program. |
|
| 3676. |
Solve : Unable to open Batch file? |
|
Answer» Hi everyone, |
|
| 3677. |
Solve : choice.com question? |
|
Answer» I'm using "choice" in a batch file, similar to this: If this isn't possible with choice, is there something else that will do this?With a Win9x machine (CHOICE is not available on NT machines), you might be able to do something with a Windows Script. Just what are you trying to do? Hope this helps. This is a separate batch file I'm calling from autoexec.bat on win98. It overwrites the system.dat, user.dat, and a growing list of key system files and folders from copies on a CD. It runs automatically at each system reboot unless a certain keystroke is made. No screen display of the choices. This is PART of a bigger project using an "alternate registry" that gets overwritten during reboot. I did try putting multiple entries in for one of the choices, something like: CHOICE.COM /N /C:1[234567890qwertyuiop] /T1,5 The letters and numbers worked but the batch had problems when I added other characters. Could "IF" be used to handle to an invalid entry? Rick At first, a good solution might have been escaping special characters, but CHOICE only allows single character choices. Some special characters (/, \, &, and others) are used by DOS itself, which would probably CREATE some interesting but unexpected results. You could try writing a QBASIC program. Good luck. I don't know anything about QBASIC or any other programming language. That will have to wait until I have more time. I experimented with that batch file a little more and got some encouraging results. The first part looks like this: @echo off CHOICE.COM /N /C:1234567890qwertyuioplkcjhgfdsazxvbnm`[emailprotected]#$^&*()-=_+[]}{;:'",.? /T2,5 IF ERRORLEVEL ==2 GOTO TWO IF ERRORLEVEL ==1 GOTO ONE Written this way, any of the keys above default to "2" except for "1" which works as I wanted. The only keys I couldn't add to it are: \|%>< Not quite what I wanted, but it will get the job done. I do have another question for you. The rest of this batch file makes extensive USE of the copy and xcopy commands. Can the be used so that there is no output on the screen? I'd like to get rid of the "1 file(s) copied" and similar messages on the screen so that there are no indications that this is running. Rick Glad to see you got it worked out. Code: [Select] copy source target > nul xcopy source target > nul I don't know how much material I've looked at, but none of it explained > nul. That works great. Now I just need to go back thru this thing and double check all the paths and filenames. That and one more system backup just to make sure. Thanks again. Rick |
|
| 3678. |
Solve : BAT file HELP !!!? |
|
Answer» HELLO i am new i'm write from poland and my english is not wery well . i need help i must write bat FILE, it must find mp3 files on all c disk and copy this files on one folder in drive d .but i don't know how do it. please help me . p.s. Merry Xmass to all This may help you out: Code: [Select] @echo off for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do copy %%i d:\folder Be sure to change d:\folder to a real folder on your machine. Good luck. i hawe a file who can find some files on fdd it is look that @echo off echo ......................... echo SPRAWDZAM ZAWARTO—Ź DYSKU echo ......................... dir a: /p pause if exist a:\*.* goto copy if not exist a:\*.* goto FINAL :copy md Koszyk md Roboczy copy A:\*.* E:\Koszyk if exist E:\Koszyk\*.jpg goto kopiuj if not exist c:\koszyk\*.jpg goto gify :kopiuj md E:\Roboczy\Jpeg copy E:\Koszyk\*.jpg E:\Roboczy\Jpeg :gify if exist E:\Koszyk\*.gif goto powiel if not exist E:\Koszyk\*.gif goto HTML :powiel md E:\Roboczy\Gify copy E:\Koszyk\*.gif E:\Roboczy\Gify :html if exist E:\Koszyk\*.html goto strony if not exist c:\koszyk\*.html goto teksty :strony md E:\Roboczy\Html copy E:\Koszyk\*.html E:\Roboczy\Html :teksty if exist E:\Koszyk\*.txt goto txt if not exist E:\Koszyk\*.txt goto INNE :txt md E:\Roboczy\Teksty copy E:\Koszyk\*.txt E:\Roboczy\Teksty[/color] but i need a program who can find all mp3 files on c disc and coly this files to d:\mp3\ and delete copy files from c disc @echo off for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do copy %%i d:\folder i create d:\folder but if i run bat file i see text 'i can find a file' but if i write 'dir c:\*.mp3 /s /b' it find all mp3 files why it don't wont copy this files to d:/folder/.......i'm using win xp sp1Sorry about that. I was so intent with the embedded spaces on the front end, I neglected the backend. Code: [Select] @echo off for /f "delims=" %%i in ('dir c:\*.mp3 /s /b') do ( copy "%%i" d:\mp3 del "%%i" ) Hope this helps. [glb][/glb]it's work fine thanks |
|
| 3679. |
Solve : Mandatory Background? |
|
Answer» Hello GUYS, |
|
| 3680. |
Solve : Howto log all screen activity to a file? |
|
Answer» Hello! I am using a batchfile with xcopy for backing up my files, as I would LIKE to VERIFY everything after he batch file has RUN I wonder if there is an easy way to log all screen activity to a log-file... I am shutting down the computer AUTOMATICALLY after the BACKUP is done so the command line window is gone. Hello! I am using a batchfile with xcopy for backing up my files, as I would like to verify everything after he batch file has run I wonder if there is an easy way to log all screen activity to a log-file... I am shutting down the computer automatically after the backup is done so the command line window is gone. Usually you can verify your copying of files using errorlevel. you can log what you do in your batch file by piping your outputs to a file and viewing them later. |
|
| 3681. |
Solve : batch file that awnser for u... possible?? |
|
Answer» hi all! write a y in the file answerl.txt and it will do it. good tip! 8-) now is it possible to make the script get an awser from a specific row on "answer.txt". that way i can have "y" and "n" on lines 1,2. and switch between em.. another question. how do i make the script fetch the [enter], [return], button/commads...? for use in awsering the "press return to continue" or "press any key" prompts thanks for all tips guys! To get enter / return hit it before you save the *.txt file. To switch between the lines you can read it out with find in a for loop. To choose use if...else... Where is the sense to choose, when you first automate it? uli Quote
well in my job i make tons of these bootdisks. as u se first of i format the disk, then i load the progg that makes the image, and last i replace a "ini" file with a preconfigured one. cls =clears screen @echo off =helps the start of script look sweet type info.nfo = PRINTS info about the script, in case anyone else at work need to use it. @echo on =helped the start look sweet format a: /q =runs the format command Fl_sco5c_228.exe =runs the image loader copy getinput.ini a: =copys the "ini" file now the script already saves me much time but if i could MANAGE it to awnser when prompted i would be glad! hope u get the sense uli 8-) hi all! wanted to say that i have solved the script now. cls @echo off type info.nfo @echo on format a: /q /y "the /y commad worked fine XXXXXX.exe a: "dicovered tha puttin an "a:" after the image loader command copy getinput.ini a: "would load the image without prompting thanx for all the help guys! |
|
| 3682. |
Solve : username and password in batch file? |
|
Answer» How do I provide a USERNAME and password to a mapped DRIVE on a WINDOWS achone in a BATCH file. I know the /user: cammand for username, but cant SEEM to get he password to work. This mapping to a W2k machine, using a local username and password. I can do the following: |
|
| 3683. |
Solve : DOS on Mac? |
|
Answer» Can you run a DOS PROMT on a mac or apple computer?No. that is a different operating system. KIND of like wanting to play a CD in a TAPE deck.You have a full Unix Command Shell on Mac OS-X. Since version 10.3 it is a Bash with a few "special features" like sudo. |
|
| 3684. |
Solve : Connect to Internet by MS-DOS....Can I???? |
|
Answer» Hello my friends. I want to connect to internet by Ms-DOS. I want open web sites bu DOS. I know that is is POSSIBLE. PLEASE if anybody know about it write to me...What version of DOS? Or are you TALKING some version of command prompt within Windows? How are you planning to connect? What hardware?Try Googling for info. Here's just one result. Arachne might help. Hope you're running standalone MS-DOS??? Good luck...Perhaps he will come back and tell us. Should I make a poll on "yes" or "no"? Not holding breath while we wait. I want to connect to internet by standard way___>Srart-Run-CMD< I know that I can. Please help me....Quote I want to connect to internet by standard way___>Srart-Run-CMD< you stupid fool, you really THINK that an higly EXERT like GX1_Man don't now how to open dos, and did you even read the other messages, they wait a long time for an answer to this question " What version of DOS? Or are you talking some version of command prompt within Windows? How are you planning to connect? What hardware? " and you give us an answer that tells us how to open dos.....Telnet to your ISP and see if they have lynx installed if you want to browse in text.Quote
Tha's what I like most about you Blackberry. You are so subtle! You can make a wget to download websites. (Gnu package) (I have a problem to get this nice smiley with the cool sunglasses in my postings. If I paste it I just get a link) :-( hope this helps uliUse the 'insert image' button Uli. |
|
| 3685. |
Solve : Dos directory changing help needed.? |
|
Answer» I am trying to make a batch file that will search children of a FOLDER(a few thousand) for a given file type to output in such a format in a txt file that all that is output is the filename and extension. |
|
| 3686. |
Solve : .bat file help.? |
|
Answer» Im not very good at creating a .bat file. I mean I can make a basic one but nothing advance. Now I need some help. I help with a BATCH file that can get the name of a netware SERVER/or ip that it isi on and RUN. For example...If I have 2 server and the smae .bat is on each server in the same location. I need it so that when the login SCRIPT call it it will launch the .bat on the local server and run. I have alot of server and need a .bat that I can just copy and paste in the locations and know it will work. thanks for all the help. |
|
| 3687. |
Solve : Also a bat file question,help? |
|
Answer» I am a green hand. I COME across this qustion: |
|
| 3688. |
Solve : outputting the results to a text file? |
|
Answer» I am trying to do a basic file that will output the commands to a txt file |
|
| 3689. |
Solve : i broke it....registry? |
|
Answer» :-/ try to use in safe modus the option, system restore No system restore in Win 95...ow crap, i tougth it was. Because there is one in windows xp, so i tought it was copied from win 98. But i'm totaly wrong, sorry |
|
| 3690. |
Solve : logging defrag output? |
|
Answer» I'm trying to create a batch file to defrag my drives. The code is: |
|
| 3691. |
Solve : OS Installation CD? |
|
Answer» What does the OS mean? And where can i find that?OS means Operating System - such as Windows 98, Windows XP, Linux etc... |
|
| 3692. |
Solve : Batch file to copy file to users local? |
|
Answer» I'm not sure if my question is in the right forum here, but since Batch files are a bit DOS-related i'm gonna give it a try. |
|
| 3693. |
Solve : MS-DOS?!?!?!? |
|
Answer» Can anyone tell me what to do with ms-dos when the computer doesn't read it? My game wont work because of it. Any ideas? Quote Can anyone tell me what to do with ms-dos when the computer doesn't read it? My game wont work because of it. Any ideas? When the computer doesn't read what? Which OS, which game, what error messages are being displayed? I am trying to load my old SIMS onto my new computer and when I push the install button it always gives this error ---- 16 bit windows subsystem and then C:\WINDOWS\SYSTEM32\AUTOEXEC.NT. THe system file is not suitable for running MS-DOS and Microsoft Windows applications. Choose 'close' to terminate the APPLICATION. That is why I can't get the game to install. Someone told me to use a demand prompt to fix it and that is why I asked about the OS because appearently you need to use that to do the prompt. Any way my computer's OS is XP and I have no idea of what to do. My brother has his game on the computer and had no problems. He plays CALL of duty online. (team speak SOMETHING) Please help me I would really like to play my game. You are defective.Defective or not, here is just the first of 28,200 Google hits on the error message you are getting, see if this helps. Make Google your friend Good luck |
|
| 3694. |
Solve : Lost or deleted docs - "shadows?"? |
|
Answer» Lost .docs due to a major computer crash (naturally only the most important ones ). Have tried EVERY conceivable search/retrieval method without success - save for trying under DOS. Have read that a "shadow/ghost" of everything ever created REMAINS on the hard drive in DOS -- unsure whether this is correct? If it is correct then could someone please help this new chum out with info on where/how to locate such "shadow/ghost" files in DOS. Have tried every conceivable search/retrieval method without success - save for trying under DOS. Having tried all of that I reckon you might have to consider some REAL heavy forensic type software, very good and v-e-r-y expensive. You don't give us an inkling as to what OS you were/are using but assume that it's XP in either form and that your file SYSTEM was/is NTFS which NO Dos version will recognise. Your files will still be on your hdd partition unless they have been overwritten during your recovery process, whatever that was (no info given), but looks likely you have lost the Master File Table and/or some such other index. Dos can run a utility named Undelete.exe but is only useful in a FAT file system. Undelete.exe is not available in XP, even in the XP Dos emulator. Sorry, my knowledge level means that I can't be of help to you, I hope someone more knowledgeable picks up the thread.. Good luck |
|
| 3695. |
Solve : No boot drive available (updated 1/10/06)? |
|
Answer» Gentlemen/Gentlewomen: |
|
| 3696. |
Solve : Drive probs? |
|
Answer» Hiya, I'm having this problem I'm hoping someone can help me with. My comp downstairs (which uses win 98) got a bad virus and I was forced to format the computer. And now I'm having trouble installing Win 98 again. I put the boot disk it goes through some OPTIONS (asks what image to use or something) then after a lot of loading, goes into the DOS Command prompt where I have no further IDEA what to do. |
|
| 3697. |
Solve : trying to partition extended dos version? |
|
Answer» ok....well first...the computer i have working right now...does NOT have a floppy drive, can i burn images to cd and use that as a boot disc? if not im screwed...lolSo you never did use the boot disk, and the Caldera MESSAGE was from Partition Magic. Shame on you! Info like that can be helpful ("I don't have a floppy drive"). alright to give a quick update....THANK YOU ALL FOR ALL YOUR ADVICE.....ive finally got windows 98 downloaded, however i seemed to wipe out the driver for my network card and am now trying to figure out what a network card looks like so i can find the name to download the driver...lol....this weekend has been a peach...haha...thanks again for the windows advice.....love this site ... its my new best friend... what twas the secret to your success? We are always curious how things turned out. Can you post the computer or motherboard make and model? Then we can get the driver to make the network card (and probably other things) work. |
|
| 3698. |
Solve : What is a batch file?? |
|
Answer» Can someone please tell me what a batch file is? |
|
| 3699. |
Solve : is this redirection or something else !? |
|
Answer» Hi |
|
| 3700. |
Solve : Process Id? |
|
Answer» Hi, |
|