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.
| 4301. |
Solve : Looking for a command? |
|
Answer» I am looking for a DOS command that will show all the technical information about the computer such as, computer`s model and processor, memory, video adapter, version of MS-DOS, mouse, etc. Forget about the MSD command. It didn't ship with XP. You could try dxdiag which might have all the info you need Thanks, Sidewinder but this only gave me DirectX information. What I am trying to accomplish is create a DOS boot disk that has some kind of command utility to DIAGNOSE the computer that I have booted off the disk. Since MSD did not ship with XP, I know I would not be able to use it if I made the DOS boot disk from XP. If I made the boot disk with a 6.22 DOS version then I should beable to use MSD, right? So where would I find this command so I could add it to the boot disk. Regarding commands for WinXP, what about "Systeminfo" and "Msinfo32" coomands. These should work in XP, but they only exist in XP Pro. So I would need to find these files and copy them to the boot disk if I made the DOS boot disk from XP.You can get an updated free version of MSD from: http://www.mdgx.com/umb.htm SCROLL down until you find MSD.EXE v3.01. I don't know if it runs in an environment created by a XP boot disk. If you want to create a DOS 6.22 boot environment, you can download from here: http://www.svrops.com/svrops/dwnlddisk.htm Scroll down until you find "DOS 6.22 boot disk with CD-ROM support". Once you create the disk you can add MSD. Good luck. |
|
| 4302. |
Solve : user input to batch files? |
|
Answer» Good day guys: |
|
| 4303. |
Solve : files missing/corrupt? can't make dos boot disk? |
|
Answer» Hi, |
|
| 4304. |
Solve : user input to dicide a acion in batch? |
|
Answer» can you get INPUT from the user and itput it into the BATCH file |
|
| 4305. |
Solve : User Input For net send? |
|
Answer» Hey there im fairly new to batch programming. |
|
| 4306. |
Solve : attach a batch to a folder? possible?? |
|
Answer» I was wondering if there was to attach a batch file to a folder so that when you open the folder it starts the batch. Anyone know if this is possible?As far as I know all files are attached to one folder or another. I know of no mechanism that will launch a batch file when it's folder is opened although I can see a NIGHTMARE scenario if one existed. |
|
| 4307. |
Solve : reformat comp? |
|
Answer» i want to reformat my COMP...my ms dos is windows XP....im not sure but if u use their windows xp cd to reformat, u only recreate the partition and dont erase all data? how can i reformat and install win xp using a ms dos bootup disk?You can EITHER just reinstall Windows over the top or do a full format and reinstall if you have a retail product. SOme OEM's are DIFFERENT. What are you wanting to do? |
|
| 4308. |
Solve : Still cannot make dos boot disk? |
|
Answer» THANKS sidewinder for your advise but it did not work. I tried the copy commands in c:\windows DIRECTORY and no commands worked. I than went to the c:\ directory and the commands that worked before (see earlier thread) worked and the other commands did not. Anyone else have any suggestions? Can I install dos 6.22 without MESSING anything up? ThanksIf you have Windows loaded, it's a LITTLE late to install DOS. Always load the lowest common denominator operating system first. However if you load DOS 6.22 it can only recognize a 2 gig PARTITION. If you have Partition Magic, you can do it after the fact. |
|
| 4309. |
Solve : Regedit? |
|
Answer» Lets say i wanted to add some registry enteries without being prompted. Windows Registry Editor Version 5.00 If i saved it to a .reg file is there any way i could get a batch file to add this reg file ot my registry without user prompt.p.s. these reg tweeks do things LIKE allowing the renaming of the recycle bin and also allowing faster internet browsing using IEIf the file is called TWEAKS.REG you could do: regedit /s tweaks.reg |
|
| 4310. |
Solve : ms-dos is asking me for the command interperter? |
|
Answer» not SURE what that isPlease EXPAND your post to include what Operating System you are using and GIVE the exact message you are RECEIVING and what you are trying to do when the message is displayed |
|
| 4311. |
Solve : RUnning DOS programs in MS-DOS start up? |
|
Answer» Using WIndows 98, when I select the MS-DOS icon, I can only run only ONE DOS program. The other two DOS programs will not run. When I start the computer in MS-DOS, I can run the two programs, but I can't run the one program that ran under Windows MS-DOS. IS there a SOLUTION? |
|
| 4312. |
Solve : hide files? |
|
Answer» can you hide files and FOLDERS with a dos COMMAND Attrib +H path/filename |
|
| 4313. |
Solve : AutoIncrement variable within loop? |
|
Answer» I WANT to increment the value of a variable within a loop. |
|
| 4314. |
Solve : Executing a Batch File Remotely? |
|
Answer» Good afternoon- |
|
| 4315. |
Solve : Add a string value from a data file to new file.? |
|
Answer» I have been trying to find a way to read a STRING from a data file, then copy this to the end of a string in a different file. |
|
| 4316. |
Solve : Autoexec.bat?? |
|
Answer» Please enlighten me as to what this Autoexec.bat batchfile is? :-? |
|
| 4317. |
Solve : Cmd immediately closing? |
|
Answer» I never use it, and don't REALLY wan't it but my brother got mad and TOLD me to reinstall so he could download his "BEVERLY hills cop theme". |
|
| 4318. |
Solve : Variables ???? |
|
Answer» It has been a long while SINCE I have written a batch file. Can anyone tell me where I can find a list of variables that can be used? I can't exactly remember how they go but here is an example of what I'm looking for |
|
| 4319. |
Solve : copying files from one folder to the next? |
|
Answer» I have two folders on the root of my C: drive, one is named "In" and the other "Out". I have tried to create a batch command that I hope would allow me to copy the 'In" folder and it's contents to the "Out" folder. I have used this command, however all it does is a continuous scroll, what am I doing wrong ? A WMI script like this works by “polling;” it periodically goes out and checks to see if any new files have been added to the folder. For this sample, we’re checking every 3 seconds (that’s what the WITHIN 3 represents) to see if there are any new files in the folder. If that’s too fast or too SLOW, you can change that value to anything you want. Keep in mind two things, however. For one, if you poll too often (say, every second), you’ll have a script that is constantly running, and could theoretically put a drain on your system resources. Good luck 8-)SW- thanks for all your help and suggestions, i did increase the polling time and it seems stable now. I am very happy with the result and of course with your knowledgeable assistance much appreciated !!! I knew i shouldn't have said it was my last question, but is there a way to also transfer a folder that is placed inside the "in" folder. these folders could have different names. At present all files will be transferred to the "out" folder without any problem , folders however,do not get transferred. I guess basically what I'm trying to say is that everything that's get placed in the IN folder, I would like to get transferred to the out folder. thanks againApparently WMI does not support any Directory monitor events. Code: [Select]strComputer = "." set fso = CreateObject("Scripting.FileSystemObject") Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & _ strComputer & "\root\cimv2") Set colMonitoredEvents = objWMIService.ExecNotificationQuery _ ("SELECT * FROM __InstanceCreationEvent WITHIN 7 WHERE " _ & "Targetinstance ISA 'CIM_DirectoryContainsFile' and " _ & "TargetInstance.GroupComponent= " _ & "'Win32_Directory.Name=""c:\\\\in""'") Do Set objLatestEvent = colMonitoredEvents.NextEvent ' Wscript.Echo objLatestEvent.TargetInstance.PartComponent arrFile = Split(objLatestEvent.TargetInstance.PartComponent, "\\") fname = arrFile(UBound(arrFile)) If Right(fname, 1) = """" Then fname = Left(fname, Len(fname) - 1) End If fso.CopyFile "c:\in\" & fname, "c:\out\" & fname, True fso.DeleteFile "c:\in\" & fname, True Set f = fso.GetFolder("c:\in") Set sf = f.SubFolders For Each fl in sf fso.CopyFolder fl, "c:\out", True fso.DeleteFolder f1, True Next Loop Note: The folder logic is dependent on a file arrival. Another option is to isolate the folder logic in another script and use the task scheduler to check for folders, say every hour or so. 8-) SW-thanks for all your help, it was much appreciated !!! |
|
| 4320. |
Solve : If It EXIST with Modified Date of Today? |
|
Answer» Hello all, |
|
| 4321. |
Solve : Documenting program lines? |
|
Answer» Hello, I was asked to build an autoexe.bat fil in the ROOT directory that CONTAINS five commands and I'm supposed to document EVERY LINE of this program. How do you document lines of a program?Use REM (remark): |
|
| 4322. |
Solve : Open text file w/- Notepad.exe (Read-Only)? |
|
Answer» Hey all, |
|
| 4323. |
Solve : How to set a variable to the result of a command? |
|
Answer» I am trying to write a a BAT file that can do something like this: |
|
| 4324. |
Solve : Choices? |
|
Answer» How would you allow a user to INPUT some text as a VARIABLE? |
|
| 4325. |
Solve : Eject CD with Batch file? |
|
Answer» I have created a special Pinball game for my Racquetball friends. I am using a batch file to construct a CD that will install the Pinball game. After the last Install command, I would like the (handout) Installation CD to auto eject for each of my friends (the end USERS). This little snippet will turn your cd drive into a cup holder.Good grief. Are we so bored we start dragging them back from the crypt? Anyways, here's an update: Quote the above script does not work correctly on XP SP2 machines The script works as advertised, however the intepreter program (wscript or cscript) continues to execute. If you run the script and then bring up the task manager you can see for yourself. Not critical but very sloppy. Probably a bug in the WMP object. The script will work on network drives provided they are mapped to the local machine. Not all machines have WMPlayer.ocx; TRY using WMPlayer.ocx.7 Now, can we give this a burial we can all be proud of? Oh, eject...not open Tongue You can use this little script: Set WMP = CreateObject("WMPlayer.OCX.7" ) Set CDROMs = WMP.cdromCollection If CDROMs.Count >= 1 Then For i = 0 to CDROMs.Count - 1 CDROMs.Item(i).Eject Next End If Save the script with a VBS extension, then run it. It only works for CDROMS. Hope this helps Cool this is from one of your posts Sidewinder this one works with all comps |
|
| 4326. |
Solve : Deleting Directories Within Directories and Files? |
|
Answer» I am trying to learn DOS and I am currently using the website Deltree is not available at the XP command prompt. Del is the one in XP see here for all the NT commands. Again.... Deltree is NOT available at the XP Command Prompt. It is neither an internal nor external command for Cmd.exe or Command and therefore cannot be used at the Command Prompt or in a .bat file. It seems you are not familiar with the use of NT Commands, I suggest you familiarise yourself with them before trying to follow the guides in Rob van der Woude's scripting pages. The damage you might do to system files by not understanding NT Commands defies description. Good luckwhat about the rmdir command |
|
| 4327. |
Solve : save a list of file names? |
|
Answer» Hi, |
|
| 4328. |
Solve : Hacker? |
|
Answer» I have an awful hacker on my system and my computer company does not even know how to get them off. What they do is somehow you go to certain places to make changes so I can be in control of my computer but they grey out the areas that NEED to be checked therefore they are unavailable. Does anyone know how they do this? I am desperate to get them off. They have been on my computer now for 1yr and about 9 months. I am taking it to the sheriff's department to look into it because that is what my computer company told me to do however I have been told they won't do ANYTHING unless serious things have happened do to it. No such thing as HACKER........i would say a company has it manager how is paid to deal with this problem? |
|
| 4329. |
Solve : Opening a cmd.exe window from a batch script.? |
|
Answer» Have the FOLLOWING testing script. And I'm trying to have it open a new cmd window and have it display the contents of a text file. The contents of the file at this stage are just some ramblings, but when INCORPORATED to production will contain the output of SQL Logfiles. |
|
| 4330. |
Solve : I need help for my school MS-DOS exercises? |
|
Answer» 5º Make a batch file called copier.bat that by defect copy all the files with TXT extension contained in the A: unit to the C: unit. Your inferences are wrong. I have stayed occupped with a lot of importants problems and I have had only time to do the first exercise and I have spent 5 hours to do it. Try to live for the next days from coke and coffie "Try to live for the next days from coke and coffie" You are so, so, so, fuuuunnnnny.... INSTEAD of are saying and saying nonsenses, I have made my third program in MS-DOS. Like this: ¡¡¡Ladies and Gentleman!!! With us..... COPIER.BAT!!!!! @ echo off if "%1" == "" goto 1 if not "%1" == "" goto 2 :1 copy a:\*.* c:\Probe4 goto end :2 if exist %1 copy %1 c:\Probe4 :end echo on Quote "Try to live for the next days from coke and coffie" just shut the f**ck up your silly idiot. Stand right and walk a round arround your chair. I hope that is the number you will get for you examen. I believe for your image, you are a little Saint Anthoni´s frog. Not more. You can´t give any help to anybody. Only you can do in life is making fun things, like jump and croaking. Poor strange Saint Anthoni´s frog, what exude venom to all criatures around it. Take care, and walk looking back over your shoulders.... Quote I believe for your image, you are a little Saint Anthoni´s frog. Not more. You can´t give any help to anybody. lol, i've ended a lot higher then you, so I wouldn't be that rude I don't help with homework. I help with computer issues. Had you ASKED in a different way other than, "oh please someone do all my homework for me", then I'd be glad to help. Good luck. |
|
| 4331. |
Solve : scheduled event / batch file? |
|
Answer» Hello, |
|
| 4332. |
Solve : moving dir and sub dir to a different dir? |
|
Answer» How can I move an entire directory structure to another using a BATCHFILE, lets SAY i wanted all directories, sub directories and files from c:\fold1 to be moved to c:\fold2 ..First copy, after delete: |
|
| 4333. |
Solve : detect cd rom from the batch file? |
|
Answer» I want to detect the cd ROM drive letter from the batch file and POINT it into my file which is on a cd.I want to access the file on a cd in different systems with different cd drive letters and access my file by means of a batch file.please help me in this regardThis code search your file in all the drive letters for devices (DISK, CD-ROM USB pendrive, diskette, ...). You can remove the letter A, B (maybe C) if you are sure that the CD isn't in this drives. |
|
| 4334. |
Solve : About Dos? |
|
Answer» DOS written in C ? |
|
| 4335. |
Solve : I need fast help for my school MS-DOS exercises? |
|
Answer» 3º Make a bat file, called words.bat, that by means of an only FOR curl, show by SCREEN 15 words that have formed themselves like a result of concatenate the syllables CA, GA, PE, SO, PA with the syllables SA, LA, TA. Please I need only help to do my MS-DOs homework. I have given my explanations before in other topic. have you even gone to the lessons than you surely should can do thisYour INFERENCES are wrong. I have stayed occupped with a lot of importants problems and I have had only time to do the first exercise and I have spent 5 hours to do it. I know I could do them in TWO days, but not with only today time. 5 hours x each problem I have yet = 25 hours. I have no time. It´s impossible.Well, I have started for the most simple. The code I have written is echo off for %%A in (ca, ga, pe, so, pa) do echo %%ASA But I need the same with la and ta in the same for.Now I have improved this code with echo off for %%A in (ca, ga, pe, so, pa) do echo (%%Asa, %%Ala, %%Ata) echo on Weeeeelllllllllll , i have finish this problem already. The final MS-DOS code is: ¡¡¡Ladys and Gentleman!!!! echo off for %%A in (ca, ga, pe, so, pa) do echo %%Asa %%Ala %%Ata echo on Quote Weeeeelllllllllll , i have finish this problem already. first of al try @echo ff because when you enter echo off, it will stil say on the first line: echo is off Harlequin : Code: [Select]@echo off for %%x in (CA, GA, PE, SO, PA) do ( for %%y in (SA, LA, TA) do ( echo %%x%%y ) ) Good luck with your studies. 8-) BLACKBERRY: You'll never get my vote for Miss Congeniality ¡¡¡by means of an only FOR curl!!! Sidewinder, your code is so good, better than mine, but my teacher wants only on for loop and yours has two. Today I have present my teacher all the homework made. Thanks very much. I always learn things so good here thanks to you. Greetings.I do nominate Sidewinder for Miss Congeniality! Quote I do nominate Sidewinder for Miss Congeniality! i'll vote for him |
|
| 4336. |
Solve : Batch at windows close? |
|
Answer» Hi all |
|
| 4337. |
Solve : Create a file? |
|
Answer» Hi all. |
|
| 4338. |
Solve : redirecting a redirector? |
|
Answer» I am WONDERING if anyone out there knows how to create a 2ndry BATCH file with the < SYMBOL included. |
|
| 4339. |
Solve : NTVDM CPU Error? |
|
Answer» I've been trying to run a ping check through DOS Prompt and lately i've been getting this error. |
|
| 4340. |
Solve : FOR command challenges? |
|
Answer» Hi all, |
|
| 4341. |
Solve : copy sub-directories in dos???? |
|
Answer» I am new to dos and commands. I have managed to master COPYING FILES in a folder but was wondering if I am ABLE to copy sub-directories within a folder as WELL :-/.http://www.codeproject.com/csharp/xdirectorycopy.aspThanks for the site and your time. I found it and UNDERSTAND the xcopy /s and so on. |
|
| 4342. |
Solve : MS-DOS data to Excel? |
|
Answer» How can one take data created in an MS-DOS program and put it into excel? I have very limited EXPERIENCE with Dos, and in fact would have to have a step by step discription. I COULD use the Data, text to column, in excel, if I knew how to GET the text out of DOS so that I could copy it into excel. |
|
| 4343. |
Solve : autoexec.bat and config.sys help please? |
|
Answer» i would EQUALLY be greatful for some explanation on the function of the autoexec and config.sys and the importance of having these files. |
|
| 4344. |
Solve : How do you prevent the type command overflowing? |
|
Answer» Im MAKING a database type thing for my files and some of them go over the limit of characters that the cmd prompt can hold. ANYONE know how to prevent this?You don't! But if you really want to GET whimsical, a combination of FOR, SET (WINXP, WIN2000, NT) and ECHO just might do it. |
|
| 4345. |
Solve : shutdown a pc remotely on Local LAN? |
|
Answer» how to SHUTDOWN a PC REMOTELY on Local LAN in command prompthttp://www.chami.com/tips/windows/011697W.htmlUse FREEWARE psshutdown.exe from www.sysinternals.com |
|
| 4346. |
Solve : Power shutoff before rebooting or startup hangs? |
|
Answer» ???Can not reboot without shutting down power. Startup will stop after Memory CHECK and CD-ROM Drive is RECOGNIZED. BIOS might be incorrectly configured because hangup is just before harddrives setup. I have OLD Award Modular BIOS v.2.51PG 08/11/97. Setting bootup order has limited selections. I can't set to >Floppy>CDROM>IDE-0 or A. E, C drives boot order. Closest selection offered is A > C > SCSI. |
|
| 4347. |
Solve : batch for copying certain extensions? |
|
Answer» I'm trying to create a batch that MOVES .tif images from one directory to another, after those have copied it will then copy a .dat file to the same directory. Then move on to the next directory. I'm a little confused on how I go about this because all I've done is very basic, simple batches and I'm not sure how to begin with this task. |
|
| 4348. |
Solve : xcopy error routine? |
|
Answer» I am trying to add an error routine for using xcopy in a batch file using windowsXP & 2000 at the command prompt |
|
| 4349. |
Solve : Batch file to move files based on date created? |
|
Answer» Dear users: |
|
| 4350. |
Solve : XP Dates & Batch files...? |
|
Answer» I am trying to create a log file based on the date the batch file is run. for /f "tokens=1-4 delims=/ " %%i in ('date /t') do ( Problem I am having with this code is that the variables are returning with a space on the end of the number. Instead of getting 20050613, I am getting 2005 06 13. Is there any way to REMOVE this extra space from the variable? If I was doing this in VB it's a simple function. Thanks for any help that you can offer.You're right. When you write the code: Quote for /f "tokens=1-4 delims=/ " %%i in ('date /t') do ( I get the results you posted. When I write the code: Code: [Select] for /f "tokens=1-4 delims=/ " %%i in ('date /t') do ( set mm=%%j set dd=%%k set yy=%%l ) set TodayDir="c:\Documents %mm%-%dd%-%yy%" I get the correct result with no embedded spaces. I notice however, when you write the code the file is 151 bytes and when I write it, it's 141 bytes!! Something is amiss. What editor are you using? What OS? And where did those 10 bytes come from? VB has date functions that batch can never hope to duplicate. When dealing with dates or any other calculations Script is a better choice. Hope this helps. I am using WinXP SP2. The editor I was using was notepad. After reading your reply, I opened a 'dos' window and tried the 'edit' command. I then tested the new batch file and it didn't have the embedded spaces. So it seems that the problem had something to do with the way that notepad was saving the file. Thanks for all your help.. I'm trying to create a new boot drive and when I use the boot disk the program starts but it is INTERRUPTED with this message: Command or filename not recognized Batch files nested too deeply Anyone know how I can UN"nest" these batch files? Another thing, however, is that sometimes that message does not come up and the copying process begins. However that process is halted due to a file copy error. Could these nested batch files be causing the copy error? If not what else could it be? JelloConcoction, Are you the same person as the original poster? If not please do not piggyback on someone else's thread. Start your own post. Your post is too general for a specific reply. Please post your batch file. There used to be a limit on how many levels of batch calls you could make. What OS are you using? It's doubtful the copy problem is related, unless of course a file is missing or you are trying to use a invalid or corrupt media. Get back to us. Oops... sorry, I didn't know... And thanks for the help even though I can't be of anymore help since I don't know the batch file... (I'm using WINDOWS XP) And I'll keep your advice for the future! |
|