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.
| 3951. |
Solve : answer yes or no? |
|
Answer» If you have DEL *.* how do you tell TEH batch file you WANT to answer YES to all?If your OS supports it, USE the /Q switch. |
|
| 3952. |
Solve : DOS commands having more than 127 chars, pls help!? |
|
Answer» Hello Everyone, |
|
| 3953. |
Solve : BIOS through DOS? |
|
Answer» Hello, |
|
| 3954. |
Solve : DOS redirection? |
|
Answer» I'm running a DOS command from a VB APP using the VB shell command. I WANT to redirect OUTPUT from the DOS command to a LOG file. The DOS command executes with no redirection, but does not execute with redirection. The DOS command is less than 127 char. Any suggestions?Can you give us the command. |
|
| 3955. |
Solve : Monitoring tape mounts? |
|
Answer» Hi all, |
|
| 3956. |
Solve : FTP Script Help? |
|
Answer» I need help running an ftp SCRIPT from within a batch file. When I run the FOLLOWING command from a batch file: |
|
| 3957. |
Solve : recursive find work around?? |
|
Answer» I am working on a way to find all images used in all my webpages using this to search the files in a directory and print the RESULTS. Ultimately what I would like to do is get a good enough report so that I can do some housekeeping on the image folder. <img src="images/firewise.jpg" width=311 height=64 border=0 alt="Fire Wise website"> ---------- INDEX.HTM [35] [50] So far this is GREAT for SEARCHING just that SPECIFIC folder. Is there a way to recurse the search so that it penitrates all subdirectories also? All the information I find says you can not do a recursive "find" if that is true can I determine the directory structure with a command before the "find" and then loop until all directories have been gone through? Also is there a way to format the output a little you can see that under INDEX.HTM the tags are right up against the line number ( I like this) but in HOMEFIRE.HTM line 35 and 52 have a space before the tag.yes you can ... :: clear the logfile Rem>found.log FOR /D %A IN (*.*) DO call MyFind %A (in a batch file, call the variables %%A) -- this will walk the directory tree recursively from the current dir then create MyFind.Bat cd %~f1 find /n /i " Graham OK after testing it appears to be attempting to step down each time if finds a subdirectory and only at the first subdirectory. It would probably work if I had the directory then just one subdir and then just one subdir inside that and so on. what I have is a main dir with multiple subdirectories that also have multiple subdirectories. I hope this makes since.Ive just had a quick play, change the FOR to read FOR /D /R ......... the /R means recursive, sorry I thought the /D would have done that Graham |
|
| 3958. |
Solve : Where do FTP files go?? |
|
Answer» Hi, I used the DOS command to FTP files into my computer and am WONDERING where the files go? It said the transfer was a success but when I did a search on my computer it didn't findy anything. Thanks.They go to the current working directory |
|
| 3959. |
Solve : Run shutdown from a flash drive?? |
|
Answer» I tried this on some of the computers at work today without much success! |
|
| 3960. |
Solve : Totalling in Bat Files? |
|
Answer» In my bat file, I am copying print files to a directory. I need to count each time I log an entry of a file that was COPIED to that directory. Is there a way in DOS, via the BAT file that I can take a running total of the files and update the log file with this total? I know that you can perform a CALL to a subroutine, but is there a DOS total function that I can make a CALL to?Without knowing your OS, you may be able to use the set /a batch command. This will allow you to do simple integer arithmetic. |
|
| 3961. |
Solve : batch file - internet explorer? |
|
Answer» hey, |
|
| 3962. |
Solve : Create file with current date? |
|
Answer» I have a batch file which creates a directory named, Backup. I would like INSTEAD to create a directory named the current days DATE so that each day it is RUN the data goes into a new directory. How can I do this?You never MENTIONED an OS but this work on most of them: |
|
| 3963. |
Solve : y-splitter serial cable? |
|
Answer» We are RUNNING on a DOS system for our stores and we are INSTALLING new scanners. However, we have about 33 stores that have the change machine that use COM2. Our registers only have 2 COM ports and does ANYONE know if we will run into any problems installing this cable or will DOS automatically recognize the extra COM port from the cable? Any help here WOULD be great, so we know what to prepare for. |
|
| 3964. |
Solve : batch file to hibernate? |
|
Answer» I want to create a batch file that hibernates the computer as SOON as the user logs off from computer....OS= win2k Professional, SP4, PC is on a domain, administrator PASSWORD is known to me.......help...anyonerundll32.exe PowrProf.dll, SetSuspendState |
|
| 3965. |
Solve : msdOs on win xp?? |
|
Answer» im just curious, is there any way that i could access msdOs through a computer running windows XP OS? if so, how could i possibly do so? :-?I think this is possible. With ANOTHER computer I reinstalled WIN XP, and it was possible to run it, but you needed to install something extra for it, i reinstalled windows XP home SP2It DEPENDS what you want to do. For most DOS-like purposes, the command terminal is adequate. If you want to run DOS games though (on an XP MACHINE?!)) you'll need something like DOSBox. |
|
| 3966. |
Solve : search for string in file and remove that line? |
|
Answer» Hey all, |
|
| 3967. |
Solve : compress of file or folder? |
|
Answer» In my WINDOWS 2000 servers I am able to cinnect through TELNET |
|
| 3968. |
Solve : Deleting folders through logoff? |
|
Answer» The problem with the for command is that it uses spaces as default delimiter, that's why only C:\Documents is returned when parsing. Two solutions: |
|
| 3969. |
Solve : Redirecting BAT output to file? |
|
Answer» This is a newbie question... |
|
| 3970. |
Solve : disc tray? |
|
Answer» hi, |
|
| 3971. |
Solve : Mutex? |
|
Answer» HELLO, I would like to create a mutex in MS DOS . Does Anybody have an ideas ?? :-? :-? Thanks AlmnWhat on earth is a mutex ?? GrahamIt's like Goretex but QUIETER. Mutex - not as daft as it sounds but I haven't GOT a clue how to create one in Dos, Assembler, C++ or any other language/system. See here.... Good LUCK |
|
| 3972. |
Solve : Running html files from dos? |
|
Answer» [size=16]I would like to run a html file from a batch file this is the command I am using: '"C:\Program Files\flash items\readme.html\"' You've entered " AND ' It's just the => " <= you should enter...YES when it replys it puts ' round the file name (i dont actually type it like that!!)Seems to me you are TRYING to Run a file, is it not necessary to Run a program (.exe etc) to DISPLAY a .html file :-? Maybe something like Start "c:\internet explorer" and somehow point I.E. at the file to be displayed :-? At the command prompt enter Start/? to see the parameters etc... |
|
| 3973. |
Solve : How to compare two strings in a dos batch file ?? |
|
Answer» I'd like to WRITE a batch file as a login script for ad user. |
|
| 3974. |
Solve : Bat file renaming? |
|
Answer» I am trying to find a way to change a single file NAME automaticlly daily with a batch file. I need the file name to include current date while keeping the extension. Can anyone help me with the SYNTAX for the bat file.For that case I think you need to have that file in a seperate folder then you can do this: For that case I think you need to have that file in a seperate folder then you can do this: In the command string the %TIME% is not a vaild syntax is there anything i can do with FOR command? The following CODE will put todays date in mmddyy format. Just use %currentDate% as the variable. (That is the variable that holds the date) So your code should look SOMETHING like this. SET dateMonth=%DATE:~4,2% SET dateDay=%DATE:~7,2% SET dateYear=%DATE:~12,2% SET currentDate=%dateMonth%%dateDay%%dateYear% ren "c:\folder\*.fileextension" "c:\folder\%currentDate%.fileextension" I didn't test this but i'm pretty sure it will work. |
|
| 3975. |
Solve : Batch File Assistance Needed? |
|
Answer» I'm trying to write a .BAT file that will ASK for the users imput, then create a directory combining the imput as the new file name along with the system date... ie. 06-04-12_Users Imput |
|
| 3976. |
Solve : registery? |
|
Answer» Hello, |
|
| 3977. |
Solve : Runing Program Files from a batch file? |
|
Answer» Hi i would LIKE to create a batch file that will run a specific file. the file is in C:\program Files\ |
|
| 3978. |
Solve : my computer time error? |
|
Answer» Hi everyone, |
|
| 3979. |
Solve : Search? |
|
Answer» Hi there, I can't really work good with the command FOR under windows xp so if sombody could help me with the following thing I would try to reach (or if somebody have a link to a place where I can learn the command). I want to make a batch file, that search in every file, of the same folder where the batch file is placed in, to the word: "boom" and REPLACE it by "aplle". Can anybody help me pleas? P.S. the extentions and file names doesn't mather, so you can use *.*)This may help you out. If batch language gets any more cryptic than this, I have yet to see it :-/ |
|
| 3980. |
Solve : press 1 to exit, press 2 to continue!?? |
|
Answer» How could you make a batch file that would "goto" a label if a certain key is pressed? |
|
| 3981. |
Solve : Use output as variable? |
|
Answer» Is there a simple way to define the output of a dos command as a variable for use in a batch file? |
|
| 3982. |
Solve : Del Archives? |
|
Answer» Necessary in ACCORDANCE with deletar archives the date of creation. |
|
| 3983. |
Solve : Hacking through DOS?? |
|
Answer» Is there a way to hack through DOS?Just wonderingYes.hummm, thought so, just wasn't sureLMAO |
|
| 3984. |
Solve : textfile contents as batchfile parameter? |
|
Answer» Dear Alll |
|
| 3985. |
Solve : xcopy and print log file help?? |
|
Answer» Hi, |
|
| 3986. |
Solve : How do i send a messege through cmd in xp? |
|
Answer» In win xp run cmd how do i SEND a messege to another computer using code because i see the ping number when i put ping in but i cannot communicate i wish to send a messge to them through cmd baxnet send (domain)-(compnumber) (message) net send (domain)-(compnumber) (message) Of course he'll need to start the Messenger Service first on both computers. Way 1: If you don't know how to do this GO to Start - Control Panel - Classic View - Administrative Tools - SERVICES, and then select the Messenger Service and start it. Way 2: Or just type "net start messenger" in a cmd.exe console session. Oh... right. i have tried this and it is not working :-?What's the error message? :-?I forgot. You might need an administrator account to modify services. :-/it comes up with error 3772 or something like that and i am the administrator so it should work plus im sending it through a network not the internet so that COULD be why all i know is that every timne i TRY it it just says something eles [ch351]s wrong Quote it comes up with error 3772 or something like that and i am the administrator so it should workUsing it over a LAN should be alot easier than over the internet. Could you tell me exactly what is says? I tried typing "net helpmsg 3772", but that couldn't find it. |
|
| 3987. |
Solve : hms-dos help? |
|
Answer» I have several cd's for my fids and we keep GETTING the error c:\windows\system32\autoexec.nt. what do i need to doUse the search function in the forum and then read that this is a very common problem, covered every week or so. I don't understand what hms-dos refers to. :-? I think he meant to TYPE MS-DOS but the "H" got in there by mistake. I hope he realizes that MS-DOS has absolutely nothing to do with this either. Maybe he thought it did... Which is no big deal, posts get posted in the wrong place all the time. That's why we got QA MODS. |
|
| 3988. |
Solve : Setting dos variable to file's contents? |
|
Answer» I've been playing around with batch files, and have a question: |
|
| 3989. |
Solve : For Loop and option ... delims="? |
|
Answer» Hi all, |
|
| 3990. |
Solve : Add variable to DOS command prompt title? |
|
Answer» Is there a WAY to add a varible to the DOS command prompt title in a batch file? I wanted to do something like the following: |
|
| 3991. |
Solve : Pinging? |
|
Answer» Hello, |
|
| 3992. |
Solve : Deleting System 32 Through DOS? |
|
Answer» yeah, pretty straigh forward, can any one give me the command i would need to do this?By far the easiest WAY is to obtain the Inkutils, and use the DD command from those tools (which deletes entire directories). Very useful for this kind of thing.Sorry, I am really DOS retarded...I have no idea what any of what you said means...LOL...can you please explain?The word Inkutils in his post is actually a link. Click there, and download Inkutils. Then do what he SAYS. alright but SEE, I am not trying to remove it from my[/b] computer, but another persons, long story, but yeah i just wondered if there was a line of command that could be entered into DOS through the command prompt that could do this wihtout having to download anything....This can be done with the rd command but why on earth for? The system32 DIRECTORY contains many critical files that keeps Windows happy. |
|
| 3993. |
Solve : Using copy with 2-word folder names...? |
|
Answer» How can I use the copy command when the PATH for the file to be copied has FOLDERS with spaces in the names? |
|
| 3994. |
Solve : Help with MS-DOS prompt command for "mounting"? |
|
Answer» Objective: To mount a CD image from drive E: to drive D: in order to play a game. |
|
| 3995. |
Solve : Trying to repair system32 file, MS-DOS illiterate? |
|
Answer» I'm trying to repair or replace the system32/config/system file on my computer using the Recovery Console, however, I have never used MS-DOS before. I have found a help file to guide me through the process, but as mentioned earlier, I have no clue how to OPERATE my computer in MS-DOS. I do have my Windows XP Home recovery disk. When I am in the MS-DOS Recovery Console, I type in C:\>'cd system32\config' (minus the ') and I get a message saying: The system cannot find the file or directory specified. Am I doing something wrong? If I can't repair the file, then I'm just going to reformat. Any help on this dillema will be GREATLY appreciated!!! |
|
| 3996. |
Solve : Ipconfig batch file? |
|
Answer» I want to create a batch file to CONFIRM a users IP ADDRESS, can this be done and how?Quote I want to create a batch file to confirm a users IP address, can this be done and how? You didn't said your OS. But I ASUME that your working under windows XP. Than you can do this by the following code Code: [Select]@echo off ipconfig pause |
|
| 3997. |
Solve : Dos to Windows? |
|
Answer» Hello all, |
|
| 3998. |
Solve : Boot disks and System Restore? |
|
Answer» I recently decided to do a System Restore because my scanner and printer and SEVERAL other things are being wiggy. When it was finished it kept freezing on a certain page of System Restore and after a while it stopped GOING to that page at all and TOLD me that the system wasn't properly installed and I have to do that. I don't have the boot cd that came with my computer (no IDEA where that WENT) so I decided to make a boot disk myself. |
|
| 3999. |
Solve : get result of std out and set to env var? |
|
Answer» HEY all, I am trying to write a bat file that gets the output of an exe that would normally print its data to the screen and use the result to SET an env variable. This is the example C:\progs\readReg.exe THIS_VAR would result in C:\thisVAR but what i want is basically this set ENV_THISVAR=C:\progs\readReg.exe THIS_VAR . obviously, ENV_THISVAR gets set to C:\progs\readReg.exe THIS_VAR Please help, Thanks, JasonI'm not really clear on what you're asking. As FAR as I know a batch file stores it's own name (%0) and it's parameters (%1-%9) but it's the command processor that keeps track of any executables that the batch file actually runs. A VBScript can be constructed to capture and process a program's output, but of course the information you're looking for would have to be included in that data. More info on the output of readReg.exe might be helpful. Let US know. 8-)Jason, This is what you want: Code: [Select]for /f "tokens=*" %%a in ('"C:\progs\readReg.exe THIS_VAR"') do set ENV_THISVAR=%%a echo.%ENV_THISVAR% Right? THATS exactly what i was looking for. Thanks a ton DosItHelp! |
|
| 4000. |
Solve : Batch file for USB applications? |
| Answer» OKAY so HERES what happens. We connect a camera to the usb, it automatically uploads images to a FOLDER located on the desktop. Is there a WAY to MAKE a batch file so that when the camera is connected, all the old files in the folder are automatically deleted after detection of device activity? | |