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.
| 2551. |
Solve : all,Task Scheduler? |
|
Answer» Hi all, |
|
| 2552. |
Solve : i want to hide batch window? |
|
Answer» i want to hide batch WINDOW while runing what is the command A few possibilites pop to mind: |
|
| 2553. |
Solve : RUNAS command? |
|
Answer» I just have a quick question here. I am working on a BATCH file to fix a current problem on my network, and i'm running into a roadblock. I'm trying to use the RUNAS command to run a file as an administrator for it to work properly, and i was wondering if there is a WAY to have the admin password inputted automatically when prompted to. I'm running Windows 2000 server and windows 2000 professional for the workstations. Any help is going to be greatly appreciated. Thank you.This might work...It isn't COMPLAINING to me on runas syntax errors or authentication when swapping out the UserName with a valid user name and Password with my local password for that admin user. My one Windows 2000 system in my stack of computers launches the program mspaint.exe under the local admin privileges. I grabbed this off of a google hit, and added for mspaint.exe to launch. I also added the Pause to see if there are any complaints vs having the shell window close. |
|
| 2554. |
Solve : batch file to change XP pro policy? |
|
Answer» hi , need a batchfile that can change the policy setting/ |
|
| 2555. |
Solve : NoteBook black screen on reboot after flashingBIOS? |
|
Answer» Ok, my brother owns a Excel G736 Laptop and he had been having trouble with the graphics in the machine flickering and going funny, so i told him to look up the manufacturer website for the mobo drivers and see if there was new drivers and BIOS. Here is the specs on the machine : |
|
| 2556. |
Solve : Restarting widnows with a batch file? |
|
Answer» I WANT a batch file that will restart my computer ten times then stop. Is This possible if so how is it done?restart 10 times why? for what reason.. a little more detail and i might help u out..You could use a batch file to restart once (I don't THINK batch files can keep track of the number of times you have restarted, but feel free to correct as necessary) but it WOULD be a lot easier using a language such as VB or C(++) where you could make the appropriate calls or execute the shutdown (NT/XP) command. This would allow you to keep track of the number of times you have restarted in a file. I don't think VB or C would be any easier than a batch file for this task ... at least not for Windows XP / 2003 / Vista. Try this: thank you GuruGary you are god in dos scripting Quote I don't think VB or C would be any easier than a batch file for this task ... at least not for Windows XP / 2003 / Vista. Try this: Thanks It worked GREAT. |
|
| 2557. |
Solve : I need Help!!!!? |
|
Answer» How can i force DELETING of read-only files? |
|
| 2558. |
Solve : VB-Script Need Help? |
|
Answer» i want to put a file in the regedit= "C:/Xtm.exe" and im wondering if its possible to have an *.bat extension? Generally this has to do with how you want to accomplish the task. If you want to write a batch file, check out reg add /? from your command prompt. Thank you! 8-) |
|
| 2559. |
Solve : I'm trying to understand the process? |
|
Answer» What is wrong with the following bat FILE PLEASE. |
|
| 2560. |
Solve : Error/File already Exists? |
|
Answer» Hello, I recently had to pay a company 1000.00 for 1 hour consultation to fix a problem I had with ONE of my programs. They were able to fix the problem but the problem is it is now suppose to be a totally automated hands free operation which runs every morning around 7:45. The entire process does work but only if Im at the computer or remotely logged in to "PRESS any key to continue" 3 or 4 times to finish the process. I ran out of time on the consultation Im not a DOS person and do not have time to really teach myself. In any case I RECEIVE a file daily and it has to go through a "prebatch" and then a "postbatch" process. here is what Im ACTUALLY seeing: <Prebatch> Is this output being generated by a batch file or some home-grown program? If it's from a batch file, please post the code; if it's from a program a forum may not be your best bet for a solution. 8-) |
|
| 2561. |
Solve : how to supress newline?? |
|
Answer» Is there any way for me to display two echo result on the same LINE? |
|
| 2562. |
Solve : Batch Programming Question, How do you ...? |
|
Answer» Hello ... I need a batch that will write an incremental folder structure, such as test to see if the folder exists and if it doesn't create it, and copy data from point A a Static Drop Point to Point B being the next available value folder just created 1, 2,3 etc. I am thinking that I can use the IF EXIST function to test for the folders, but dont know how to go about this part past that. |
|
| 2563. |
Solve : BACK UP IN Batch? |
|
Answer» I need to write a batch file. When you drag & drop a directory in the batchfile, it will automatic backup the directory iclude the files and the subdirectories in it. How to let the batchfile recognise this directory and backup fot it. could any one help me? thanks very much!Batch files do not support drag & drop. You can include commands in a batch file that will backup files. You can even prompt for file names (SET /P). |
|
| 2564. |
Solve : Help with a DOS command? |
|
Answer» I have a custom built computer whose HD crashed. I am reinstalling everything on the new HD but FORGOT how to enter a command in the autoexec.bat file. |
|
| 2565. |
Solve : Bat File Q? |
|
Answer» I have a bat file that i use with xcopy to backup. Is there any way i can program the file to give me a report of any errors it encountered or report it's success. |
|
| 2566. |
Solve : change admin password via MS-DOS? |
|
Answer» Hey everyone, |
|
| 2567. |
Solve : Batch File Under Windows 2k? |
|
Answer» I am trying to MAKE a BATCH file that will prompt the user to enter a DRIVE letter under windows 2000 and read it in, but to no succcess. I know how to make it a parameter, but choice is not available under windows 2000 for it to be input. If anyone knows what I am talking about and can help please send me an email.Use set /p var=prompt |
|
| 2568. |
Solve : gather all the files on a drive and copy them? |
|
Answer» Can anyone tell me how I can write a batch file on an XP system that will find all the files of a certain file type on an entire hard drive and copy just the files to a specific folder? |
|
| 2569. |
Solve : create logfile? |
|
Answer» im very new to DOS and writing batch files. i want to KNOW if there's a WAY to write whatever is displayed to the screen into a text file. i want to save this file and be able to VIEW its contents so i can see what exactly was running. its kinda like the DIARY ON command if you're familiar with MatLab. any HELP would be greatly appreciated! thanks!!nevermind...i got it.... |
|
| 2570. |
Solve : Dos errors in win xp? |
|
Answer» When I go to Dos command window and TYPE : "ipconfig" command , I receive message : "can't regconize as an internal or external command", so what should I do, Please help me. Thanks Is this the only command you're having PROBLEMS with? IPCONFIG is an external command (a STANDALONE executable) and lives in c:\windows\system32. Try doing a search and see if you can find it. The only other thing would be to CHECK your path. |
|
| 2571. |
Solve : I think I broke my computer... Please help.? |
|
Answer» Hi, first of all I registered here because I need to ask a few questions on how I can fix my computer. alright here is what you do.... Unfortunately WinME cannot USE NTFS at all. Maybe this would be more helpful: http://www.windowsreinstall.com/windowsme/installme/index.htm |
|
| 2572. |
Solve : Rem Prob? |
|
Answer» When EVER i put "REM" in my batch file i get "this is not recognised....yatta yatta" |
|
| 2573. |
Solve : xcopy from network drive to local? |
|
Answer» I have two machines. One is a desktop that functions as a kind of master FILE server at home. The other is a laptop that I boogie around with. |
|
| 2574. |
Solve : Calling a Specific diskette? |
|
Answer» Need syntac for CALLING a SPECIFIC floppy DISKETTE or cd and if the wrong diskette or cd is in place it errors out, but it doesn't end the batch file. -thanks :-?How do you know if the disk is correct or not ?? you COULD use the Volume label |
|
| 2575. |
Solve : Help with quoting syntax for .bat arguments? |
|
Answer» Hi, (^ is the escape char) Thanks Graham, Code: [Select]MYPROG 'http://somewher.org/something.cgi?fred=x1^|x2^|x3' linuxcommand: URL sucessfully added That's it |
|
| 2576. |
Solve : Need help with my Batch file script ...? |
|
Answer» I WANT to MODIFY the following script to block or not transfer users files bigger the 500MB. |
|
| 2577. |
Solve : facing problem while generating the log file? |
|
Answer» hi below is part of the script in which i am facing problem. |
|
| 2578. |
Solve : local login account batch file? |
|
Answer» i got this batch file to create a local user login ACCOUNT , the account that i created .. the password never EXPIRES is never checked. How to create a batchfile that create a local login with password never expires? |
|
| 2580. |
Solve : MS DOS / The command prompt on steroids? |
|
Answer» Read all about >Windows PowerShell<.Why do I GET this error message when trying to OPEN the link :-? |
|
| 2581. |
Solve : batch file opening? |
|
Answer» could some one tell me how to open a batch FILE? |
|
| 2582. |
Solve : Reboot with a batch file at a certain time given? |
|
Answer» Hy everybody, Hy everybody, Could you please explain to us why you would wish to create something like that .......Oh ...wait.... the ultimate April fools joke .......sorry pal not funny ......in fact if THATS what you want to do I would SUGGEST you go and find another forum . dl65 I searched for this thread and am a little surprised at the response. I would like to shutdown all the PCs on my network each night. I work in a school and MANY users leave their computers on and open gradebooks and print shop items always cause exceptions on the backup. I can see that you could see malicious intent here. I guess I'll look around more...Innocent Hacker, Actually, you could put the shutdown command in a script or batch file and then schedule the file (thru the Windows Scheduler) to run at a certain time each evening. Type help shutdown for the switches to use. I do this weekly on my machines after the backup has completed...they run late at nite. As for starting up the MACHINE, maybe if the machine was in standby but not from a cold start. Hope this helps. Ps. You might have worded your original request a little better. |
|
| 2583. |
Solve : Read output from commands? |
|
Answer» I want to compare two program versions ie program.exe /v OUTPUTS SOMETHING like 4.2 if it is less than another version ie program.exe /v returns 4.4 then I want to copy the newer FILE over the OLDER one. |
|
| 2584. |
Solve : troubleshooting when making a batch file? |
|
Answer» can any one please tell me why when I TYPE edit test.bat itgives me this ERROR: C:\WINDOS\system32\cmd.exe - edit test.bat |
|
| 2585. |
Solve : "Operating system not found"? |
| Answer» When my system reboots I get "operating system not found" My IBM thinkpad has been completly FORMATED. I also get a red box that reads "hard drive not installed. Physically the hard drive is in. I need to know A- How to install operating system. B-How to install/fix hard drive. And C- How to Get computer to read all drives/create (C) drive. Have some idea's but I am not a PROFESSIONAL and I am afraid to screw it up more than I ALREADY have. Could I get some professional advice on how to continue the proper way? | |
| 2586. |
Solve : HOW TO INSTALL MS-DOS WINDOWS\SYSTEM32\AUTO.EXEC.N? |
|
Answer» HOW TO INSTALL MS-DOS WINDOWS\SYSTEM32\AUTO.EXEC.NT If you are referring to autoexec.nt, then it would have been installed with the operating system. If for some reason it has become corrupt, you can repair it by: |
|
| 2587. |
Solve : format windows now nothing works? |
|
Answer» i need some major help here...i lost everything on my hard drive...it does not even reconize i have one..i was trying to reformat it and now i cannot get pass this screen of c:\ i'm running windows 98 i cant reinstall anything by cd or floppy...it says i dont have the dive or drivers for it even...i have been working on this about 7 hrs now none stop....win98 pentium 2 PROCESSOR dell LATITUDE CPXJ...any help WOULD be great! thank you.....angelwingsWell, use www.killdisk.com. Use this program to enter format. You should see your Hard Drive. Reformat it again this time correctly. |
|
| 2588. |
Solve : serial port? |
|
Answer» I have a dos APPLICATION/program that needs to use the serial port. It can be used in windows 98. I am trying to use it in XP. (Command /DOS windows) What did Microsoft change in the way you use the serial port from Windows 98 to XP? |
|
| 2589. |
Solve : Killdisk woked? |
|
Answer» hey ty for the help i GOT the killdisk to work now...i'm on a screen here that says to press f10 to ERASE all data on selected device....hard disk DRIVE (80) h so i'm see what HAPPNES next here i will post back soon...THANK you again angel |
|
| 2590. |
Solve : Windows98 Fat 32 Partition?? |
|
Answer» Ok i did the erase C drive and thats fine...but now it tells me when i start up with the win98 floppy that win98 dectected that C Drive does not contain a valid FAT or FAT32 PARTITION.....and give's 3 reason's why it's not working right.....1. drive MAY need to be partition....2. you may be using third party disk partition software....3. some viruses ALSO cause Drive C not to Register...then goes on to say that...the Diagnostic tools were successfully LOADED to C Drive....press ENTER for help...so now do i try to partition the C Drive? thank you for all the help ...Angel |
|
| 2591. |
Solve : disable system restore? |
|
Answer» looking for a batch file to disable system restore. All i found is this site .. |
|
| 2592. |
Solve : Creating shortcut in Batch file?? |
|
Answer» Can anyone help me on how to create a SHORTCUT within a BATCH file? |
|
| 2593. |
Solve : trouble installing cd rom in dos? |
|
Answer» I am new working in dos and am trying to install a cd rom on my daughter's computer so I can install windows. I downloaded the generic driver but it says wrong VERSION of dos when I try to install it. What now please :-/? Help from anyone is APPRECIATED. |
|
| 2594. |
Solve : check file size? |
|
Answer» OK i need to do a batch file that would check for the size of a text file all i want is to know the size ifts 0 or not, any one can help. thanksYou have to jump thru hoops to do this one: Sample Only @echo off dir filename.ext > dummy.txt findstr /i "xpBackup.vbs" dummy.txt > dummy.dat for /f "tokens=1-4*" %%a in (dummy.dat) do (if %%d EQU 0 ... del dummy.dat del dummy.txt The above is just to give you some ideas on how to go about it. You'll have to jigger the code to run on your machine. YMMV. Hope this helps. im not too good at batch so this is not making too much sense, the file i wanna check is c:\error1.txt do i really need thse dummy files and why a for loop. helpOK. This little piece of doggerel will eliminate one of the dummy files. The reason for the loop is that the FOR statement offers the only batch command that will read INPUT from a file. The fact that garbage.dat contains just one record is to your advantage so a value for %%d can be evaluated. Note: The FIND command will produce to two lines of output. Batch file programming is not only knowing all the commands and their obscure switches, but knowing how to combine them so that nothing makes sense....the result just works. A batch file is not the best solution for your request. It's UNREALISTIC to use cryptic code to accomplish simple tasks. If you ever have to revisit this file (and you will), you'll wonder "what the *censored* was I thinking". I would substitute WINDOWS Script for it's simplicity and readability. Code: [Select] @echo off dir c:\error1.txt | findstr /i "error1.txt" > garbage.dat for /f "tokens=1-4*" %%a in (garbage.dat) do (echo size error1.txt ^= %%d) del garbage.dat Feel free to change the ECHO statement to an IF statement and perform what ever action you need to do. Hope this helps. thanks for your help, and the fact im using batch is thats what the boss wants he wants everything consistent and this is a good for me as i never worked with batch before. |
|
| 2595. |
Solve : changing win98 folder? |
|
Answer» can someone please TELL me why i cannot change the folder? here is what i did |
|
| 2596. |
Solve : DOS Install? |
|
Answer» I need to get a copy of DOS 6.22 or older. I have got old software for a Plant control systems that cant run in Win 98 95 or newer. the disk that I have for my dos recover are bad. Floppys dont last forever. (13 Years old ) Any help would be great... |
|
| 2597. |
Solve : Read inputs from a file? |
|
Answer» Hello All, |
|
| 2598. |
Solve : Resulting file name from multiple file copy? |
|
Answer» I'm trying to merge two files together one of which has date-time as part of the name. I want the resulting file name to be the second listed file (the one with the date/time) of my copy statement. For INSTANCE given these files: |
|
| 2599. |
Solve : Dos script to copy a file into a subdirectory uniq? |
|
Answer» Hello, |
|
| 2600. |
Solve : Commands doesn't work in MSDOS? |
|
Answer» Hi everybody, I have a problem in my MS-DOS commands, they do not work, i.e. if I typed ipconfig nothing shows up, but it says [size=16] 'ipconfig' is not RECOGNIZED as INTERNAL or external command, operable program or batch FILE [/size] |
|