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.
| 2051. |
Solve : Where could I download MS-DOS 6.22? Is it free?? |
|
Answer» Is MS-DOS 6.22 free to DOWNLOAD? I have MS-DOS 6.22 but it's in a different LANGUAGE. I have mine as ISO's on CD's. I didn't make the ISO's myself. I don't have a floppy drive. Could I get it for free as an ISO?MS-DOS 6.22 was only released in a 3-floppy set AFAIK; it's also still under Microsoft's copyright and any discussion about where to obtain it would breach the forum rules. MS-DOS 6.22 was only released in a 3-floppy set AFAIK; it's also still under Microsoft's copyright and any discussion about where to obtain it would breach the forum rules. Thank you. I knew DOS was Microsoft. I thought maybe MS would let DOS free. I am sorry about that part. Would DOS bootdisk's be the same as MS-DOS 6.22, or is it different?The boot disks will only contain the essentials; command.com, the boot loader, etc. Stuff it won't contain are all the utilities, such as MORE, FIND, etc. I don't know how MS made the multiple languages of DOS, but it is feasible that you could take the core files from a English Boot disk and use the utilities from your foreign version; whether it will actually work I couldn't say. Also- I looked it up, and I was wrong, DOS 6.22 was actually 4 floppies. (not that it matters, but I thought I'd correct myself anyway) Google searches might help you find some Disc images; the trouble then would be getting it onto a CD... Quote from: BC_Programmer on December 10, 2008, 02:12:56 PM The boot disks will only contain the essentials; command.com, the boot loader, etc. I can't do anything with DOS. I can't do anything now. I have a thread here in Windows section. I have a thread on techguy, about pushing towards page 2 with no replies. I can't run EXE files. I found I can run the DivX installer. It's I am getting this error I never seen before. I let someone reply to my thread. I be patient. I go and listen to some music on my Blackberry. |
|
| 2052. |
Solve : Internet Explorer cleanup? |
|
Answer» is there a BATCH COMMAND that can RUN the FOLLOWING for all USERS: |
|
| 2053. |
Solve : REMOVAL of file path from DOS variable? |
|
Answer» hi, sorry if this has been ASKED and answered before, im terrible at searching forums |
|
| 2054. |
Solve : '%' in batch command? |
|
Answer» Hello |
|
| 2055. |
Solve : Create .Bat file to count files in folder? |
|
Answer» What do I NEED to create a txt file which lists and counts files in folders. Directory and sub directory And a more tricky question, if the folder contains .docs created by a mailmerge, is it possible to return the number of letters contained within the mailmerge? What method do you use to split out each letter? Seems like a third party program would be involved. Need more details. THANKS Sidewinder I will have to play around with the code. With regards to the mailmerge. These are number of letters (.doc) contained within word. To split I have the start and end of each letter identified with a flag and Quote With regards to the mailmerge. These are number of letters (.doc) contained within word. For this you'll either need to WRITE an internal Word macro (VBA) or an external script using any of the COM aware script languages (VBScript, JScript, Python, REXX, etc.) This link may give you some ideas about scripting Word using VBScript. Good luck. |
|
| 2056. |
Solve : makefile help? |
|
Answer» Hello every one |
|
| 2057. |
Solve : Help Please: move files with variable names? |
|
Answer» I'm a total newbie to batch files so my apologies upfront. Scenario: I have an outlook rule that saves attachments from a specific person in a certain folder. Can you not save Bob's files directly to Folder A and Bill's files directly to Folder B? Seems easier to change the rule rather than getting batch code involved. If you do need some code, does it have to be batch language? , Outlook is written for Windows, not the command shell; might be easier to use a Windows tool. Is there some sort of NAMING convention so Bill's and Bob's attachments can be separated? The more details you provide, the better we can serve you. |
|
| 2058. |
Solve : add file path in batch file? |
|
Answer» how to add path of files in batch files which will generate EVERYDAY & then tobe run using DOSSorry, what EXACTLY do you WANT to do here? MAKE a batch file save its location? |
|
| 2059. |
Solve : How to copy files with the same name?? |
|
Answer» Hi GUYS, |
|
| 2060. |
Solve : Extract first line of multiple text files and aggregate into a single text file.? |
|
Answer» I have x text files, each of which has multiple lines. I need to grab the first line of each text file and WRITE them all to a single new text file. |
|
| 2061. |
Solve : Date manipulation in Windows XP batch scripts...? |
|
Answer» Several members have asked how to add dates to filenames etc. The ability to manipulate dates in batch scripting is very LIMITED. Day, Month and Year can be extracted from either the %date% environment variable or the "date /t" command only if the date format is known. One cannot go back or forward with either of these two without checking for things like a Leap Year, new Month, new Year. The following two codings will extract day month and year from the date format day mm/dd/yyyy. |
|
| 2062. |
Solve : Re:How to find a file but it replace already in cp? |
|
Answer» hello to all |
|
| 2063. |
Solve : Batch File to Copy a Folder named in todays date? |
|
Answer» Hi However I am trying to copy to destination path which also has spaces. I works fine if path has no spaces. Can I get around this? As i already posted Quote from: Dusty - reply #5 Ok on that, your original destination path has spaces so must be enclosed in " "so enclose your destination path/filename in double quotes which I show in red below for emphasis. And yes, using the environment variables will work: "C:\Document and Settings\Copy Of Files\%Year%\%Alfamonth%\%Today%" Quote from: petreli I have added \e and \v to but now is asking me to specifiy a file name ((F = file, D = Directory)I've never had reason to use Xcopy so am not well versed in its use but adding a backslash at the end of your destination path might get round the problem. e.g. "C:\Document and Settings\Copy Of Files\%Year%\%Alfamonth%\%Today%\" Thank you ...this work perfectWell done - great performance. Thank you for COMING back to report your success. D. |
|
| 2064. |
Solve : How to check if a Directory already exists...? |
|
Answer» Would the syntax: CD \Program Files it's \ that distinguishs a folder from a file Quote from: Prince_ on December 07, 2008, 05:23:16 AM QuoteUnfortunately, ELSE isn't a command. Quote from: Carbon Dudeoxide on December 07, 2008, 05:26:06 AMCD \Program Files Quote from: Prince_ on December 07, 2008, 05:23:16 AMQuoteUnfortunately, ELSE isn't a command.CD \Program Files Careless Quote from: Prince_ on December 07, 2008, 05:23:16 AM QuoteCD \Program Files So what? You cannot have a file and a folder with the same name in the same folder. so what is your point? if there is a file named alec, then the code snippets below won't work. Code: [Select]CD \Program Files IF not exist ALEC (md alec) ELSE ( {Codeing here} ) ACTUALLY,the best codes would be : Code: [Select]CD \Program Files IF not exist ALEC\ ((if exist alec del alec) & md alec) ELSE ( {Codeing here} )yes, because it's always important to delete possibly vital data in the better INTEREST of a proper batch file.You really cannot get any simpler than: Code: [Select]cd Program Files if not exist ALEC ( md ALEC ) else ( codes here ) Quote actually,the best codes would be : Quote from: BC_Programmer on December 07, 2008, 06:55:02 PM yes, because it's always important to delete possibly vital data in the better interest of a proper batch file. LOL The price of fame! Where did the last 7 years CORPORATE tax records go? |
|
| 2065. |
Solve : move file from one server to another? |
|
Answer» HELLO every one I need help to UNDERSTAND the below code and what I should to for my requirement I have a batch file which is being called from another script file, with some parameters Let me show you my batch file code ========================= ECHO ON net use P: /DELETE net use Q: /DELETE net use P: %1 /USER:%4 %5 >> "C:\Test\Log Mover\Logs\sharelog.txt" net use Q: %2 >> "C:\Test\Log Mover\Logs\sharelog.txt" attrib +R Q:\*.zip xcopy /Y /C /D:%3 P:\*.zip Q:\ >> "C:\Test\Log Mover\Logs\sharelog.txt" attrib -R Q:\*.zip net use P: /DELETE net use Q: /DELETE ========================== where :: 1 is the src of the logs, or the web server :: 2 is the destination or local NAS :: 3 is a date like 3/02/2008 to go back and check for logs that got missed :: 4 is the username to use for the remote share, or 1 :: 5 is the password to use for the remote share, or 1 My doubt are 1> what is this code doing 2> what does >> mean 3>where did it get /Y and what is xcopy line doing Plz let me know the answers. Quote My doubt are 1> move file from one server to another 2> >> means to add the "output" to a file 3> xcopy /? |
|
| 2066. |
Solve : computer name for batch file? |
|
Answer» good DAY, |
|
| 2067. |
Solve : batch file to run telnet and type in commands for me?? |
|
Answer» i want to be able to run the .bat file and have it TYPE out a load of commands in TELNET for me. |
|
| 2068. |
Solve : Autoexec.bat ***help***? |
|
Answer» My autoexec.bat reads |
|
| 2069. |
Solve : need to recover a sys tem file in dos tried by not working pls help!!!!!!? |
|
Answer» ms-dos version 6 deleted a file by mistake now i get c:\dos\ansi.sys Hey dose anybody know a great site where i can get some cool graphic software free full versions that i can use on xp maybe adobe and macromedia programs No. READ the rules about piracy. Was this your real reason for joining? hey wait a second- DOS 6 comes with Undelete... Quote from: BC_Programmer on December 06, 2008, 08:17:31 AM hey wait a second- DOS 6 comes with Undelete... Of course it does. Personally I think the OP made up the part about MS-DOS in order to smooth the way for the pirate software question. |
|
| 2070. |
Solve : Var problem...? |
|
Answer» I'm trying to combine 2 variables together, but it's just not WORKING... |
|
| 2071. |
Solve : Why won't cmd let me change to C:?? |
|
Answer» This is LIKE one of the easiest questions. Why won't cmd let me change to the root of C:? I am TRYING to cd Program FILES. I am pretty SURE that I need to be on root C, right? I will post my cmd logs. |
|
| 2072. |
Solve : Moving files from desktop with extension on creation? |
|
Answer» I want to be ABLE to download a type of file and not have to manually move it to a directory I want to be able to download a type of file and not have to manually move it to a directory try Code: [Select]echo off copy "C:\Documents and Settings\Owner\Desktop\*.rec" "c:\program files\Microsoft Games\Age of Mythology\savegame" Quote from: BC_Programmer on December 04, 2008, 08:19:48 PM Quote from: nomrid on December 04, 2008, 08:18:00 PMProblem solved.I want to be able to download a type of file and not have to manually move it to a directory |
|
| 2073. |
Solve : How to delete the duplicate record in text file using DOS?? |
|
Answer» Friends, Output file should be in below format: Quote from: Dusty on December 03, 2008, 02:19:04 PM Nice one again Dias but it seems the OP doesn't want the output in alpha sequence? Without further confirmation from the OP that he wants the ORIGINAL (presumably) random order preserved, I would take that example as just showing the removal of duplicates. However, I will think of a way to PRESERVE the original order... Quote However, I will think of a way to preserve the original order... Yes, I'd probably prefix a number to each input record, alpha sort by name, remove records with duplicate names, resort by the number, remove the number. No doubt you'll come up with something a lot more sophisticated. Look forward to perusing your next gem. Kind regards. Code: [Select]echo off setlocal enabledelayedexpansion set /p firstline=<%inputfile% echo %firstline%>%outputfile% for /f "delims==" %%L in (%inputfile%) do find "%%L" %outputfile%>nul || echo %%L>>%outputfile% Quote from: vinoth124 on December 02, 2008, 03:19:23 AM Input file : I see nothing logical in the requirement, and a "logical" computer will probably disappoint. If "employeeGanesh" is transformed to "Ganesh" due to a previous "employee", then "Smithson" will be transformed to "son" if there is already a "Smith". This type of duplicate deletion will ensure that rajesh does not get two paychecks, but Mrs Smithson will not get any housekeeping !!! Is this really what you want ? Regards Alan Quote employeeGanesh I just saw this as a failure by the OP (who appears to have buggered off) to press Enter between typing employee and Ganesh, as a perusal of the "format" of the output file will confirm). |
|
| 2074. |
Solve : Dos Delete - still get access denied? |
|
Answer» i am trying to delete an exe file that has my computer crashing on startup but when i TRY to delete it, it tells me access deniedYou need a third party PROGRAM to do this, DOS cannot perform the task of deleting FILES that are restricted, for example viruses.stop it from loading up at startup using msconfig |
|
| 2075. |
Solve : Conversion from bat to bash? |
|
Answer» I have to convert a big BATCH file to bash script. Can someone tell me how this line will translate to in bash ? |
|
| 2076. |
Solve : Reading data from inst.dat file and passing to batch argument? |
|
Answer» I am trying to figure out how to extract data from an inst.dat file and pass it into an arguement in my BATCH file. The inst.dat file contains a single raw ascii code that the batch would USE to use logic as to if the data equals say CF4C then do this and if it equals B62A do that. The batch is controlling other automated routines and it would be nice to read in this raw ascii, but hex natured data file and pass it to the argument to have the logic process correctly. This inst.dat file is working as an intermediary between batch and other programs. The other program outputs this 4 digit hex to this inst.dat file as raw ascii. Currently user intervention is required and I am looking to fully automate this process by being able to have the batch read in this 4 hex digit code from this file and then perform the required operations based on what the code referenced in the IF statements. Guessing that I need to read in the file and then pass that data to a variable and then call MD %%variable or is there more involved? Something like that. When reading those FOUR characters, the command shell will see text and interpret them LITERALLY as CF4C and B62A. If those are hex representations you can convert them to decimal equivalents by using the set /a command. Code: [Select]echo off set /a var=0xcf4c echo %var% set /a var=0xb62a echo %var% In a batch file, it doesn't seem much important as long as the batch logic matches the interpreted values from the inst.dat file. Good luck. |
|
| 2077. |
Solve : Routine does everything but /s for XCOPY within FOR statement? |
|
Answer» Hello, |
|
| 2078. |
Solve : "Scheduling" using a batch script, "programing" file, and Windows Task Scheduler? |
|
Answer» Hello All I get is a prompt to press any key to continue. No error or any other feedback. That's a bit surprising. There is no pause statement in the snippet, so I'm at a loss where the press any key to continue comes from. I was unable to duplicate your results running the code from the command prompt. Quote The script will run every minute, using Windows task scheduler How did the job get on the scheduler? Did you use the Windows GUI or the AT command? When running from the scheduler are you pointing to the correct location for prog.txt. What was the code in the scheduler under last result? In the scheduler, under Creator, is this the same as your user name and are you logged in when the job runs? The scheduler has it's own set of quirks, better to get job running from the command line first. |
|
| 2079. |
Solve : Please help~! "zellers"? |
|
Answer» I found a strange little ms-dos application in my documents folder...... I scanned it with AVG, came out clean. i clicked it, trying to determine what it was, and it popped up a dos prompt window that flashed and was gone. I only think it is because it says so.... What is "it"? The "it" refers to the icon I have that says ms dos application "zellers" No worries, I think I am safest just to re-format and start clean if I cannot figure it out. I keep all my files in a safe remote hard drive, so if this is part of some auto dialer or some bizarre piece of brilliance and I have already cleaned off the other portion, then I am best to clean this out and start fresh, I suppose, correct? Given that it shouldn't be too tough to do....? I am mostly concerned that something has invaded me and it has remained hidden. I have never, nor will ever go to Zellers, so it has no reason to be there, IMO. Anyway, I APPRECIATE the help. It will NOT open in notebook...... Have you checked the file dates? Created and last modified? Why don't you just delete it and do a virus scan? Could be a virus similar to the old Trivial.25 MS-DOS virus. Virus only works under specific conditions. Have you been running old DOS games? I checked the file dates and they corresponded directly with my credit card fraud....hence the fear. It was last run on the same date exactly. I did end up deleting it and scanning, and even when I directly scanned there was no warning.... So I kinda figured like you, it may be a very "specific condition" kind of virus..... No old Dos games either. I have now deleted the little sucker and called my credit card company to ask them to be vigil on any large purchases (really just a heads up to cover my *censored* should anything go aray) . So, I will WAIT and see. I feel a BIT better knowing that it is at least not a wide spread thng and that it is seemingly unknown as of yet. Perhaps it is just a freak, I dunno. Wish me luck, and thank you very much for your efforts! Cheers! |
|
| 2080. |
Solve : Variable in script.? |
|
Answer» Win XP H SP3 echo offThank you for the very speedy solution. W. |
|
| 2081. |
Solve : At command issue? |
|
Answer» Hi, the bat file works great but when I execute it using AT it opens the program but I can not see it in in windows Without seeing the actual AT command you used, it's hard to tell. Try using the /interactive switch on your AT command. Note: Jobs pushed to the scheduler with the AT command run as SYSTEM and not under your user name.. |
|
| 2082. |
Solve : Replace a specific string all files in a folder? |
|
Answer» I have the following requirement.I need to replace a specific string in all the files with the servername specified in the input parameter of the batch file. in all the files with the servername specified in the input parameter of the batch file I'm guessing that by input parameter you're referring to a command line argument. CODE: [Select]echo off setlocal enabledelayedexpansion for /f %%x in ('dir /a:-d /s /b') do ( for /f "tokens=* delims=" %%i in (%%x) do ( SET input=%%i set input=!input:^<servername^>=%1! echo !input! >> "%%x.chg" ) ) The CHANGED files have .chg appended to the original file name. Batch file is designed to run in the same directory where the files are LOCATED. This can be changed, you never gave any specifics. Pass original server name as a command line argument. If the original server name contains brackets, the code needs to be adjusted. Again you provided no specifics. Good luck. |
|
| 2083. |
Solve : How to make a bat file to LOG all the DIRs in all the drives?? |
|
Answer» i have a really old pc, and im about to giv it away, but before i do i want to see if theres any file i need, and its a little slow for going to all the dirs to check, plus, i had some hidden files....ect |
|
| 2084. |
Solve : Needing to strip text out of a file and save it into different file? |
|
Answer» OK, it's been a very long time since I've done batch PROGRAMMING and the EX gave away most of my old books from 10 years ago. Now I'm stuck... |
|
| 2085. |
Solve : Cyclic Copy Error ...Help? |
|
Answer» Hello ... I have a batch that I am trying to have not loop back on itself and Cyclic Copy Error. I know that it is because the XCOPY instruction does not like to XCOPY the data from the source drive back to itself. I also want *.sav hits to copy the entire directory tree over with the *.sav files only to c:\saved so that any duplicates are not overwritten as well as each time this is run it will update the c:\saved with the latest date/time stamped copy of *.sav |
|
| 2086. |
Solve : Batch File Output to Log file? |
|
Answer» I am working with python scripting to expedite some basic processes utilized in ESRI ArcInfo. I have a list of 200+ python scripts that I put into a .bat file to process overnight (which works fine), but I want to output the results of each into a single logfile. Anyone know how to do this? The .bat file LOOKS like this. |
|
| 2087. |
Solve : How to use batch to list the services running? |
|
Answer» TRYING to list all services running on an XP system with dos batch language. I'd like to be able to start and or stop specific services. list: CODE: [Select]SC query type= SERVICE type= interact|find "SERVICE_NAME" start: Code: [Select]sc start ServiceName stop: Code: [Select]sc stop ServiceNameI will try this, THANKS. |
|
| 2088. |
Solve : cml2 tool - makefile help? |
|
Answer» I am using cml2 tool as configuration managment system , curentally i have a set of configuration which build numbers of library needed by a exe , now i want to build another exe with the HELP of same configuration FILE but this time i want to build few libraries from that configuration file. |
|
| 2089. |
Solve : Hiding a Batch? |
|
Answer» Hi... I have a question... the only evidence if the running batch file will be a listing in your task tray. Is that the *censored* child of an incestuous union between the task bar and the system tray? I think we should be TOLD! Quote This is assuming you have Windows OS. Aw SHUCKS! I was hoping this would work in Solaris! Plzzzzzzzz give instruxions for so doing, Sir. Quote from: Dias de verano on November 29, 2008, 05:03:57 PM Quote from: iONik on November 29, 2008, 03:54:09 PMi will hide my batch window .. but how must i do this automaticly ?plz use mshta.exe to launch .bat files when you'd like to hide the black windowthe only evidence if the running batch file will be a listing in your task tray. Quote mshta "javascript:new ActiveXObject('WScript.Shell').Run('c:\\mybatch.bat',0);close()" or you can use a .js file Quote new ActiveXObject('WScript.Shell').Run('c:\\mybatch.bat',0) or .vbs file...yes you can hide consel use this program nircmd |
|
| 2090. |
Solve : about Encryption Dos? |
|
Answer» Can I make ENCRYPTION is some talk shows in the form of Stars I mean have some bat FILE and if open this I wanna SHOW this word LIKE stars like this "*********" |
|
| 2091. |
Solve : urgent:check file type and move file to accurate folder type!!!? |
|
Answer» sorry make up confused. Please post the full path to your .tgz files and the full path to which you want them moved. Please post your entire script.echo on cls set sourcefolder=D:\FW_Purge_Archive\ set dirfile=%FW_Purge_1%\.tgz dir /b %SOURCEFOLDER%*.tgz> %dirfile% for /f "Delims=*" %%a in (%dirfile%) do ( set tgz=%%a && call :con ) goto end :con set DESTFOLDER=%SOURCEFOLDER%\zipfile\%tgz:~4,4%\%tgz:~4,4%-%tgz:~8,2%\ if not exist %SOURCEFOLDER%\%tgz:~4,4% md %SOURCEFOLDER%\%tgz:~4,4% if exist %SOURCEFOLDER% md %DESTFOLDER% move %SOURCEFOLDER%%tgz% %DESTFOLDER% > nul goto :eof :end pause Quote but one folder name 2008 always AUTOMATIC create by script in my path Quote echo on Look at the two emboldened and underlined command lines. |
|
| 2092. |
Solve : batch file menu help? |
|
Answer» How WOULD I make a menu in a batch file that lets me open a certain website like www.msn.com, www.weather.com, or www.cnn.com |
|
| 2093. |
Solve : Batch file writing to a batch file writing to a file? |
|
Answer» Right now I'm just messing around with DOS to try and learn it and I'm trying to make a single script that splits itself into smaller scripts -- one of which I want to write to a text file. |
|
| 2094. |
Solve : displayed comment in a batch? |
|
Answer» how would you make a comment appear on the cmd screen but the script wont exicut it |
|
| 2095. |
Solve : Should I run CHKDSK in SAFE node ? And please explain these details ...? |
|
Answer» I use Windows XP Home with SP3 on a 4 year old Acer laptop Travelmate 244LM. |
|
| 2096. |
Solve : how to add delay? |
|
Answer» i GOT a reset software, and I write a autoexec.bat for this reset utility. |
|
| 2097. |
Solve : Windows 95 config.sys,Autoexec.bat? |
|
Answer» WILL GET BACKAre you USING a cdrom driver? Please post your Autoexec.bat and Config.sys files. |
|
| 2098. |
Solve : cacls? |
|
Answer» I am trying to use the /E OPTION of the CACLS command to enable read and write on a particular file for a particular user. |
|
| 2099. |
Solve : Terminating Task Manager Processes with batch code.? |
|
Answer» Does anyone know how to batch code the ability to END a process LISTED in Windows Task Manager without using the windows task manager, thus using batch or other code? Code: [Select]taskkill /f /im PD91Agent.exethat easyGood, if you find it easy, maybe some people do not. I suggest you remove your snobby behaviour from your posts. |
|
| 2100. |
Solve : Installing POS system on newer computer?? |
|
Answer» O.k. the short of it is my family is runing a old IBM PERSONAL 300 GL with dual os, windows 98 and Ms-dos, when you turn puter on it ask if you want to boot normal, safe, etc. , etc., and 8. Previous version of MS-Dos , a POS (point of sale) retail program from the early 90's called ABC the COMPUTER is fine but starting to show signs of aging and some bugs, I have the MS-Dos 6.22 bootable disketter and a installation diskette of the standalone release 7.0 , I am trying to load it onto a windows xp computer and when i hooked up floppy drive and loaded the boot disk then the standalone diskette it said load from tape drive which we have but it is in the IBM computer i found one on ebay reasonable and i recently backed up to the tape drive succesfully, i just want to make sure this is going to work before much more money and time are invested. Is it possible to download the program from the Ibm I can enter windows and FIND files on harddrive for abc software but i am sure that isn't all of them. we have about 1,500 Accounts Recievable, and 30,000 INVENTORY Items and no easy way to transfer them to a new POS or would have already done so. Have contacted serval POS standalone retail business that say they can transfer files to new system but leave cost to amount of time spent, could be 5,000 to 10,000 dollars so I was trying to figure it out any help will be much appreciated and welcomed again thanks .MS DOS needs to reside on C: only... |
|