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.
| 501. |
Solve : Copy with Omissions? |
|
Answer» Does anyone know how to omit certain files from a list of files? For example, say you want to copy all files, EXCEPT those that start with the letter "S", something like *.* omit S*.* this is a VERY CLUNKY reply. |
|
| 502. |
Solve : ^Z in batch file? |
|
Answer» my problem: |
|
| 503. |
Solve : Play movie from bat file that can't be turned off? |
|
Answer» Does ANYONE KNOW what command I can use in a batch file to play a movie with Windows MEDIA Player (when a COMPUTER starts) so the person cannot turn off media player and has to watch the whole video. Can anyone help?LOL, funny problem.. Try playing a more interesting video.. or disconnect the keyboard and mouse.your question reminds of of how the teachers went on and on in elementary school. |
|
| 504. |
Solve : building complex cmd on one line? |
|
Answer» I want to build then execute a command in one LINE at a DOS prompt (i.e. storing in doskey, not a batch file). |
|
| 505. |
Solve : COMMAND NET USE? |
|
Answer» I USED the COMMAND NET USE LPT1: \\XXXXX to ASSIGN the port to a network PRINTER and It work succesfully but the PROBLEM is I dont Know how to cancel it and restart to print to another printer conectec directly in my Port LPT1 (locally) that is not a NETWORK PRINTER.net logoff should do it |
|
| 506. |
Solve : mysqld.exe does not run for me? |
|
Answer» Ok so I install the server for wow following DEVS guide and I GOT everything going right.. I even had the ENTIRE database extracted perfectly... But then I got a new database and wanted to redo the batch file. |
|
| 507. |
Solve : Where do i find ms-dos in windows 2000 Prof ?? |
|
Answer» Hi |
|
| 508. |
Solve : Changing from A:\ to C:\ after bootdisk? |
|
Answer» How do I Change from A:\ to C:\ when CD C:\ or CHDIR doesn't work?Typing: |
|
| 509. |
Solve : Umm.. Copy..?? |
|
Answer» I Seem to not be doig something right..?... hmmm |
|
| 510. |
Solve : For loop for running a batch file? |
|
Answer» Hiya. I'm running a script to automatically CREATE directories. The script so far looks like this: |
|
| 511. |
Solve : how to jump to a new line?? |
|
Answer» i want to Verify and CHANGE the MSDE SYSTEM ADMINISTRATOR Password, so on windows support i found this: |
|
| 512. |
Solve : Help on IF Command in Windows? |
|
Answer» Hello , I have a requirement whereby I am supposed to convert one unix script into NT. |
|
| 513. |
Solve : telnet from a batch file? |
|
Answer» I was able to set up a batch file to open a telnet session, but I still have to type in my username and password for the session to actually start. Is there any way to set up the batch file to automatically enter my username and password? |
|
| 514. |
Solve : Batch or Command to set computer time remotely...? |
|
Answer» I'm working on a small network (~8 computers) that is not connected to the internet. We are developing this network with two servers and a datalog computer. Recently I've been working on ensuring the time on all the computers is synchronized. If the computers belong to an Active Directory domain, the Windows Time service configures itself automatically by USING the Windows Time service that is available on domain controllers. The Windows Time service configures a domain controller in its domain as a reliable time source and synchronizes itself periodically with this source. You can modify or overwrite these settings, depending on your specific needs.After reading you post again and again, It seems you want to set the time on all computers from none console. There requires a remote execution program. For XP you could use: Rexec Runs commands on remote computers running the Rexec service (daemon). The rexec command authenticates the user name on the remote computer before executing the SPECIFIED command. Windows XP and Windows 2000 do not provide the Rexec service. Used without parameters, rexec displays help. http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rexec.mspx?mfr=true You will have to find it and install it on .your computers. http://www.theether.org/rexec/ Sorry I can not help you with using Rexec. Please read the links abut. It is said to work onX P, but is not part of the regular XP tools. You have to download it and install it. Alternate: http://www.codeproject.com/KB/system/remoteexec.aspx |
|
| 515. |
Solve : Network Access? |
|
Answer» Hey All |
|
| 516. |
Solve : MS dos commands, deltree ?????? |
|
Answer» Is there a dos command that I can PUT in a batch file to do the following? |
|
| 517. |
Solve : need help coping directory? |
|
Answer» I'm trying to copy full DIRECTORIES from DOS but it will only copy the files in the directory and not the subdirectories. |
|
| 518. |
Solve : exiting dos? |
|
Answer» i have a DOS program that will exit back to windows on one pc (a compaq) but on my dell pc it will not exit back out . It goes to a black screen and then i have to shut down the pc.......can any one tell me how to fix this. |
|
| 519. |
Solve : Creating within a Batch File? |
|
Answer» In order to help do some error trapping I require the ability to create a file from within a .BAT file. |
|
| 520. |
Solve : How can i run a batch file minimized in xp? |
|
Answer» HI all |
|
| 521. |
Solve : .PIF HELP? |
|
Answer» How would I go about opening a .pif in DOS .pif FILES are not intended to be opened or used in DOS. They would serve no useful purpose. PIF means program information file, and is intended to pass information to windows about DOS programs how they should be run. To run a DOS program under DOS, navigate to its directory, type the name of its startup command, and press enter.Is there a way to create a file that I COULD open in DOS that would act like a shortcut so that I do not have to navigate to the desired FOLDER to open the exe?The closest THING to a shortcut in DOS is to create a batch file and save it in the root directory. The batch file can change directories and launch the program for you by entering the batch files name at the DOS prompt.Actually, that DOS batch file can be in any directory in PATH. It doesn't have to be in the root. |
|
| 522. |
Solve : Hidedos.exe? |
|
Answer» HI there, How do I use the Hidedos.exe command in a BATCH file so I can run the file on a PC without a DOS screen popping up? Cheers!maybe adding this to the bat file will do it SET DIRCMD=0http://www.networkd.com/newsjune.htm This showed up when I used a (gasp)search tool, specifically www.alltheweb.com. Google also works. |
|
| 523. |
Solve : Re: start-up in DOS? |
|
Answer» There is no DOS on Win2k.If you are using FAT32 FILESYSTEM, USE a Win98SE boot disk (www.bootdisk.com). If you are using NTFS, burn a KNOPPIX LiveCD, as there is no DOS mode in NTFS. |
|
| 524. |
Solve : errorlevel in windows ??? |
|
Answer» Hi all, i WANT to KNOW if when i call an APPLICATION with start /wait "appname", and "appname" is a WINDOWS app, it sets errorlevel to 0 if it finish sucefully an other value if it fails ??It should... but you'll have a time TRYING to do anything with errorlevel from Windows... You would have to make test statements in DOS and use them to build a file for Windows to respond to. |
|
| 525. |
Solve : Renaming a file to today's date? |
|
Answer» I am trying to rename a file to include the current date. So I want to rename the file myfile.txt to myfile08262004.txt. I am writing this program that will create this file every month and put it out in a DIRECTORY. Once it is there I am using DOS to rename the file to the current date and then FTP to a server. I can't find a way to rename my file to the current system date..can anyone help?? |
|
| 526. |
Solve : Using IF in a batch file? |
|
Answer» I want to create a batch file that starts out by CHECKING if a certain file exists. If the file exists then the rest of the batch file will run, if not it will exit: Like this |
|
| 527. |
Solve : Is this Possible....?..?? |
|
Answer» I have a good question... I HOPE... |
|
| 528. |
Solve : Formating? |
|
Answer» Now me using window ME |
|
| 529. |
Solve : Remote open of cd-rom, how?? |
|
Answer» Does ANYONE KNOW how to remotly OPEN a cd-rom through ms-dos?http://www.zarr.net/vb/download/codedetail.asp?code=26 |
|
| 530. |
Solve : Help, How to make a new folder with batch file? |
|
Answer» Well im new to dos, and im trying to make an bach file for a auto start cd, that im working on. when the auto cd opens up it first opens the bach file. |
|
| 531. |
Solve : how to send messeges...? |
|
Answer» hey, I open comand prompt and type in |
|
| 532. |
Solve : executable bat file? |
|
Answer» I'm trying to map a DRIVE and then execute a file in that drive using a batch file. I'm SURE it's relatively simple but I can't figure it out. Suggestions anyone? |
|
| 533. |
Solve : Running Dos On XP? |
|
Answer» I know that Dos can't run on xp but there is ways you can. Simply get a boot disk for 98, and you can run dos programs on xp with a full fledged msdos. But my question is, I have a program that accesses a .exe that runs in msdos. Now you have to run one program in windows and when you HIT start it runs the other .exe in msdos. You CANT access the .exe by itself because it needs the windows program to drive it. So what I want is the ability to run the one program in windows but when I hit start I want that .exe to run from the boot disk with msdos on it. Any info is super greatly appreciated. and if its not POSSIBLE please say so. Thanks ALOT I know that Dos can't run on xp... Not true anymore. See this. I want to running DOS on XP Quote
DOSBOX works on Windows. And Computer Commando, did you get that link from me? I have been digging around on the dosbox link, I have been there before and downloaded it. But it seams to be all in outerspace with no identity. For Windows XP ?Try and prey ? Did you read its instructions on how to set it up? You need to do a little work to set it up... it doesn't just MAGICALLY click into work, unfortunatly. |
|
| 534. |
Solve : Upgrading MS-DOS? |
|
Answer» Hi |
|
| 535. |
Solve : Copy files in order by size? |
|
Answer» HELLO! I'm using the dos FOR command to copy some files from one directory to another. This files are being copied by directory order, but I'd like to copy the files in order by size or in order by name... I've tried to use dircmd=/os variable, but it doesn't work. Anyone knows how to do it? Thanks, W Fischeryou might try sorting the files before you copy.. some of the old norton utilities could sort a directory by file, type ,size, attribute. i daily use a file i got once in a MAGAZINE called pc computing, called 'dirmagic.com' it is extremely small but can do many not so simple things. i sort my directories by size or extension or date after i create a directory to store the sorted files. then i either highlight specific ones or the whole direction and copy those files to the new directory. the author of the file Michael J. Medford. thank you , Michael for the hundreds of hours of joy you have afforded me. i do not know what the rules are for sending this file. i cannot find a reference to it on the internet,; was freeware and if some knowledgeable PERSON can tell me about the legalities, i WOULD be HAPPY to send it out. the file was written in 1988 I have a similar thing called PFM (Personal File Manager) and an accompanying text edittor called E88 that I have been using as DOS add-ons since the mid-80s. There are probably later versions out, but these are minuscule EXEs and were nice because they fit easily on a floppy. They have been serving reasonably well into Win9x... |
|
| 536. |
Solve : delete by file size only? |
|
Answer» is there a way to delete files by size |
|
| 537. |
Solve : Dos 7.10? |
|
Answer» I printed out history of dos. |
|
| 538. |
Solve : Trouble with DOS Boot Disk from Win 98 SE? |
|
Answer» Sorry, I posted this in the Windows Forum as well, as I wasn't sure which was most appropriate. |
|
| 539. |
Solve : Opening Files [advanced]? |
|
Answer» Okay, i'm making a bat file and I need to open two .txt files at once INSIDE windows XP, is there an arguement that I can pass such as Bash's '&' character? Thanks for any help. Also, below is my batchfile, any suggestions for additions would be appriciated. Specifically, i'm trying to open pid.txt and netstat.txt at the same time so the user can compair the files and find out which program is involved with which PID. |
|
| 540. |
Solve : Checking if files are non contiguous? |
|
Answer» Hi Friends , Hi Friends :), Hi! By using the command CHKDSK. CHKDSK filename That's it.it really depends what PLATFORM you are using i use win98 and at the dos prompt i simply type and enter defrag it connects all the defragmented PARTS. then you will knowscandisk /fragment [file name/path] eg scandisk /fragment example.txt |
|
| 541. |
Solve : trying to find an old system.ini on my computer? |
|
Answer» i need helpmore info >msconfig in the run BOX?what platform are you using. |
|
| 542. |
Solve : ILLEGAL INSTRUCTION? |
|
Answer» How do i get rid of this problem. This keeps popping up on my screen and no matter what i do it still come back. 16 BIT MS-DOS Subsystem. C:/WINDOWS/SYSTEM32/2mdsrch7.exe The NTVDM CPU has incountered an illegal instruction. CS;053d IP:0112 0P:8f 94 96 Choose "close" to terminate the application. There are twe chocies to click on close and ignore i have click on both and it GOES away for less the a min. and pops back up again. i am just a novice when it come to computer so any help at all WOULD be great to get rid of the problem. Also computer run real slow. help please if you can Thanks to All that Reply scan for TROJANS etc...and read more here>http://www.techspot.com/vb/showthread/t-5039.htmlAre you rounning an old DOS programme. NTVDM is the windows virtual DOS machine SUB system |
|
| 543. |
Solve : command to run a file using the program name? |
|
Answer» i have forgotten...it has been so long. i want to put a DOS command in an autoplay.ing FILE that will CAUSE ADOBE READER to read a specific file on the current cd. it is something LIKE adobe.exe filewhat.pdf does anyone KNOW how to do this? |
|
| 544. |
Solve : Multifunctional batch file help? |
|
Answer» Hi Everyone |
|
| 545. |
Solve : DOS: PATH cmd to run EXE files - DLL file reference? |
|
Answer» I am trying to run an EXE (within DOS) from a directory that doesnt have the EXE in it. Unfortunately the EXE file doesnt work properly, as it can't find DLL files it needs If an exe file requires a DLL or DLLs Windows Windows first searches the set of pre-installed DLLs such as the performance library (KERNEL32.DLL) and the security library (USER32.DLL). Windows then searches for the DLLs in the following sequence: The directory where the executable module for the current process is located. The current directory. The Windows system directory. The Windows directory. The directories listed in the PATH environment variable. So put the DLL or DLLs SOMEWHERE where Windows can find them. Sounds to me like a paid app is being re-engineered to be made to run... What app is this and why does the .exe not exist in the app folder ? ? Quote from: cmpmike on October 12, 2011, 04:35:37 AM I am trying to run an EXE (within DOS) from a directory that doesnt have the EXE in it. Why? Why? - I need to run the EXE file from a job specific directory as it creates a heap of files in the root directory. CD to directory? - same as above. Using Path command? - this is in the MSDOS operating environment, not windows. App specific? - it is a specific stand along app with one EXE file and a heap of DLL files, I dont want to mess up the softward directory with a thousand job files. Does anyone have an answer? or Is it simply not possible.?With all of the restrictions you have described, I'm going to say you're looking at a not possible here. It MIGHT work if you could set up a dummy file and use the assoc and ftype commands to start the program from it's directory, but you are looking at a long shot and I'm pretty sure that isn't going to work either. I would stick with your original answer and copy the .dll files to the job specific directory. Write the batch file to delete the .dll files when done. That's about the best you can do at this point.Given the parameters at work here i don't think we should be assisting... Quote from: Salmon Trout on October 12, 2011, 10:46:40 AM pre-installed DLLs such as the performance library (KERNEL32.DLL) and the security library (USER32.DLL). Kernel32 is the base API (memory management, forward declarations to ntdll.dll). user32 is user interface stuff (Window and desktop management, arrangement, the default window procedure, etc). Aside from that nitpick though the actual order is CORRECT. Although... Quote Using Path command? - this is in the MSDOS operating environment, not windows.What does this even mean? If it is a DOS program that uses overlays or DLLs than it doesn't use the windows search order and typically only searches in predefined locations, almost always only the current directory. Quote from: cmpmike on October 12, 2011, 04:42:29 PM Using Path command? - this is in the MSDOS operating environment, not windows. MSDOS doesn't use DLLs. You must be talking about Windows command line environment. Quote from: BC_Programmer Aside from that nitpick though the actual order is correct. Blame Microsoft - that's where I copied it from! http://msdn.microsoft.com/en-us/library/7d83bc18%28v=vs.71%29.aspx Quote Search Path Used by Windows to Locate a DLLQuote from: cmpmike on October 12, 2011, 04:42:29 PM Using Path command? - this is in the MSDOS operating environment, not windows. Both Windows command line and MS-DOS - they are not the same thing - use the PATH command, so I'm not sure why you wrote that. What version of MS-DOS are you talking about? You can check this by typing VER at the prompt and hitting Enter. Quote Does anyone have an answer? Best not to post remarks like that, no matter how impatient you are. The level of joining and posting fees you paid determine the level of service you are assured of getting. Quote or Is it simply not possible.? Is it almost certainly possible but we need better and more accurate information from you. It is certainly interesting that you refuse to say what the software application is. Quote from: Salmon Trout on October 13, 2011, 12:00:49 AM Blame Microsoft - that's where I copied it from!I know. Surprised they haven't fixed that yet. |
|
| 546. |
Solve : FOR command starting with double quotes.? |
|
Answer» I have a simple batch command that wants to capture a program's output. It works fine when used directly: Also, for anybody who'd like a shortcut for escaping the parenthesis with the caret, try this: And in case you are wanting to do that through an entire file: Code: [Select]echo off set /p file=What file do you need to caretize? for /f "delims=" %%A in (%file%) do ( set line=%%A call set line=%line:)=^)% echo %line%>>output.txt ) ren %file% %file%.old ren output.txt %file% Make sure the file to be changed is in the same directory as the batch file. Otherwise you would have to adjust the code a little bit/ |
|
| 547. |
Solve : is there a way to make windows batch files accept arguments?? |
|
Answer» is there a way to make windows batch files accept arguments? C:\test>type argument.batHe is a Troll...and has been banned from the Forums... Take the advice with a grain of salt. Quote from: Radiation G0D on OCTOBER 12, 2011, 10:03:16 AM Wait, I just want to make sure if I got it? Exactly. That's how arguments are passed to other programs. It's up to the receiving program on how to use the arguments passed.I found this in the snippet closet. It mimics the VBScript named arguments feature. More of a demo, but it shows method and technique. Code: [Select]echo off setlocal if .%1 EQU . goto Help :ParseTheArgs if .%1 EQU . goto UserCode set argNamed=%1 if "%argNamed:~0,1%" NEQ "/" echo Parameter Error [%argNamed%]...Job Canceled & goto :eof set argNamed=%argNamed:~1% for /f "tokens=1,2 delims=:" %%i in ("%argNamed%") do set %%i=%%j shift goto ParseTheArgs :UserCode if defined month echo %month% if defined day echo %day% goto :eof :Help echo. echo Named arguments have this format: /varName:varValue echo Exsmple: %0 /month:NOVEMBER /day:Thursday goto :eof It allows variable names and values to be passed into the batch file. The batch file must be coded to handle the input, but the parameters are passed by name not position. If you run the snippet with no parameters, a mini help screen will show the correct syntax to use. Hope this helps. |
|
| 548. |
Solve : Call another .bat on Win2K? |
|
Answer» CALL \\pc1\folder\test2.bat Result: Logon failure: unknown user name or bad password. How to send a username and password forThe error you posted says you aren't authenticating to the \\PC1\VALIDSHARE with a VALID username and password. Maybe this will help you? You didn't say what OS(s) these 2 systems are running... hmmm If it's a flavor of Windoze why not run a straight bat file starting with a NET USE command? That will let you authenticate to the remote SYSTEM with a username and password, then map a drive. Then you can run or call or whatever remote bat files you want as you please? Here's a LINK to how to use Net Services: http://www.microsoft.com/windowsxp/home/using/productdoc/en/default.asp?url=/WINDOWSXP/home/using/productdoc/en/net_use.asp |
|
| 549. |
Solve : DOS vs Windows? |
|
Answer» Now the fun starts!
Really? In MS-DOS? Name one version where you have made that work. Without an LFN driver. Raven, That might work, but why would I change something I've been doing with 100% success, since before Windows. I'm really kind of bummed out, that MS in their infinite wisdom would eighty six the Deltree.exe command. I've heard it called the most powerful DOS command ever. It's power lies in the syntax in which it's used. It can delete just one file off of an entire HD, or it can delete a whole group of like files or an entire tree of files and folders or even wipe an entire HD. ( Deltree /Y C:\*.* ) With power comes danger and maybe that's why MS did away with the command. I still use it a lot for my own work. I've been using long file names in DOS batch files for years, just by putting the path inside of Quotes. I'm hard pressed to even understand why anyone would doubt that. Eh? At about 3AM this morning I finally figured out why my file counting line did not work from my DOS boot disk. The command line has the "Find" command (Find.exe) in it and that's an external DOS command that must also match, the version of the OS being used. (Command.com) So for the line to work at all, the Find.exe file has to be on the boot disk. After finding and fixing that problem, I gave up and went back to bed. For now, I'm tabling the whole project. I have some other projects that are pressing me to complete them. Thanks to some great help I got on this forum, my XPCleanup.bat program works great when run from within Windows, and the file counting routine now works too. Thanks Guys! Quote from: TheShadow on October 13, 2011, 11:51:56 AM I've been using long file names in DOS batch files for years, just by putting the path inside of Quotes. Because MS-DOS filenames are limited to the 8.3 format? Eight characters for the filename and three for the extension? http://en.wikipedia.org/wiki/8.3_filename Of course, you might be one of those people who think (wrongly) that it is accurate to call all Windows command prompt environments "DOS". Which does call your self-awarded rating of "guru" into question. Quote from: Raven19528 on October 13, 2011, 10:14:54 AM I'm going to show my naivity now... The windows XP boot diskette is really just a Windows ME boot diskette, as VER will tell anybody booting from such a diskette. The DOS version itself is 7.2, I believe, (7.1 being the version that introduced support for FAT32). Either way, it still only has basic DOS command parsing ability (it splits at spaces, quotes are not a special character to it at all), and the internal commands are equally limited. rd and rmdir accept no switches. (this means you cannot use /s to delete a folder) and you can only remove an empty folder, so that wouldn't work. Quote from: Salmon Trout on October 13, 2011, 10:50:53 AM Really? In MS-DOS? Name one version where you have made that work. Without an LFN driver. Best not to ARGUE with an expert. In any case, the run-down is this. the for /f is never going to work. That would need to be changed. There isn't really anything you can change it to in pure DOS batch. You might be able to get away with something involving find, but it is fairly limited pre-NT extensions as well. To be clear that entire for command is invalid syntax. there are no switches in plain DOS for the for command. Another idea is that if you are creating a disc image or a USB drive for the purpose, you could use a Linux distro and set it to automatically run a shell script, which ought to be able to do any of the things necessary in the NT batch file. Also, it has "built-in" support for NTFS on any recent distro. Or you could try a WinPE environment, which should give you the NT command extensions your batch file needs. As for long file names, as ST notes, it simply doesn't exist in pure DOS. the XP/ME boot disk doesn't read or consider VFAT entries, nor does it support the use of quoted names as one would CLAIM. This can be tested directly from a running XP machine by simply trying to use the the quoted form in the command.com interpreter (rather than cmd.exe) where it will issue 'Parameter format not correct - "C:\Documents" Quote from: Salmon Trout on October 13, 2011, 12:00:37 PM Which does call your self-awarded rating of "guru" into question. I'm a proud Beginner! |
|
| 550. |
Solve : Adding blank line within batch file? |
|
Answer» I would like to display blank LINES in some data that will be displayed when running my BATCH file. |
|