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.
| 5901. |
Solve : disconnect command? |
|
Answer» Hi is there a command to disconnect/connect from the internet in dos?I think you can type "ipconfig /release" to disconnect your IP settings, and "ipconfig /renew" to renew them.Quote I think you can type "ipconfig /release" to disconnect your IP settings, and "ipconfig /renew" to renew them.No that won't disconnect me I'm on a broadband connection. I can do ipconfig /flushdns but when I try ipconfig /release and ipconfig /renew I get an OPERATION failed as no adapter is in the STATE of permissible for this operation.Quote No that won't disconnect me I'm on a broadband connection.I'm on a broadband connection too, do you mean you have the broadband modem plugged DIRECTLY into the back of your computer?Quote QuoteNo that won't disconnect me I'm on a broadband connection.I'm on a broadband connection too, do you mean you have the broadband modem plugged directly into the back of your computer? No I have it GOING to a hub than the two pc's thanks for your help btw An alternative is to use a fire wall such as Zone Alarm, which has the capability of locking down the internet. The Internet Lock feature prevents all traffic to/from the internet for the computer on which it is installed. |
|
| 5902. |
Solve : xcopy ignoring same name files?? |
|
Answer» i'm trying to move files from one folder to another. however the distination folder share the same files (updated) and as such same filenames as some i'm trying to move |
|
| 5903. |
Solve : help with the "RD" command in a .bat? |
|
Answer» I work at a school and every time a student logs on a PC it creates a profile folder in C:\Documents and Settings. I WOULD like to run a script to delete them all. Eventually there are hundreds of profile folders taking up 4 or more GB of space. If I leave the path as above it will try to delete Administrator, and All Users, then get an error. Can I delete everything in a directory except certain path names, or are there any other idea's for me to try???That would be relatively simple, HERES an outline |
|
| 5904. |
Solve : How can? |
|
Answer» How can i BLOCK the property for desktop BACKGROUND chanching ? (If i can) |
|
| 5905. |
Solve : Set help? |
|
Answer» Hey |
|
| 5906. |
Solve : boot dos cd and access files outside of img? |
|
Answer» is it possible to boot a dos cd and access files outside of img on the same cd? if not, how can i use my files when in dos boot cd mode? i hope you get this QUESTION...Quote is it possible to boot a dos cd and access files outside of img on the same cd? I've never done it with DOS with a CD, but I've done it zillions of times with a floppy. That is - boot from a floppy, and access and use files on the hard drive. I would expect to be able to get the same results, booting from either floppy or CD. It is possible, but not guaranteed. For example, the hard drive may be malfunctioning. Booting from floppy won't help that. Quote if not, how can i use my files when in dos boot cd mode? i hope you get this question... Not to complicate the issue, but I have booted from CD, with linux, and accessed and used the hard drive. We don't know what it is that you are trying to accomplish yet - beyond booting to DOS from CD. Maybe it would be better if you described whatever it is that you are working on, and what you want to do. I just want to run some dos games at prime, and the reason i cannot access the hard drive is because it isn't the correct file system.Quote I just want to run some dos games at prime, and the reason i cannot access the hard drive is because it isn't the correct file system. So your DOS CD boots fine? But after you boot, you cannot access files on your hard drive, and that is because DOS doesn't recognize whatever file system your hard drives uses? Is that it? What file system does your hard drive use? I don't know if what you want to do will be possible at all, but anyone reading along here will need this info to help you. When you boot to Dos, at the command line EXECUTE this command ver and post back here what it responds with. How would you auto boot a Batch file from a floppy please tell!! It would save me a lot of time been a sys-admin Thanks!!Quote How would you auto boot a Batch file from a floppy please tell!! It would save me a lot of time been a sys-admin 1.) Best to start a new thread, rather than RIDE on the bottom of an older ONE. That way your question gets more exposure and the attention it deserves, and you get a better chance of getting more help. 2.) Need you to re-phrase and perhaps explain what you mean. I think the answer will be to run your batch file from the last line in autoexec.bat - but again, am not sure now. Start a new thread, ask your question, and it might be best to describe an example of what you want to do. |
|
| 5907. |
Solve : command line argument in Batch file? |
|
Answer» how can i call/use the command line arguments inside a batch file ? |
|
| 5908. |
Solve : Yes or No reply? |
|
Answer» Hi |
|
| 5909. |
Solve : Help with bat file for Vista reboot-Update-SOLVED? |
|
Answer» I like the dual boot walkthroughs.. Would have been nice to have as I was copying partitions and setting up 2 XP and 2 Vista loads on my multiple HD's. Never fear it all WORKED out. Any preference vs. Easy BCD ?Whatever works and STAYS the heck outta my way is my motto.... Quote from: patio on February 05, 2008, 08:46:47 AM QuoteAny preference vs. Easy BCD ?Whatever works and stays the heck outta my way is my motto.... Cool. Was hoping that maybe you'd tried both, and would have an opinion to share. Vista bootPro won't automatically change your default with just one click as well as force reboot..... should read the entire post...thanks anyway.Quote from: matnat on February 22, 2008, 12:42:20 PM Vista bootPro won't automatically change your default with just one click as well as force reboot..... should read the entire post...thanks anyway. I'm not sure what your saying here... |
|
| 5910. |
Solve : Current file name generation .bat? |
|
Answer» Good afternoon. |
|
| 5911. |
Solve : shutdown from batch file in xp limited account?? |
|
Answer» Hi, without having to drag the batch file into a privileged command prompt. How did you CREATE this privileged command prompt? You can use the runas command to run a JOB using more privileged credentials. Note: you cannot supply the password on the command line and the password must not be blank. runas /? at the command prompt will give you all the gory details. |
|
| 5912. |
Solve : Searching for specific folder? |
|
Answer» Hi, |
|
| 5913. |
Solve : how to make bat file that is a text editor? |
|
Answer» help. im trying to make a bat file that lets me type in what ever i want and doesnt respond to the text. like they have on the old MS-Dos Edit.you can type edit for "old ms-dos edit" |
|
| 5914. |
Solve : Delete Directories by Date? |
|
Answer» Ok, I am trying to set up a back-up BATCH file... |
|
| 5915. |
Solve : xcopy problem...? |
|
Answer» I recently made a BATCH file that would copy and replace a file on a floppy (i USED the same file a lot). It saved me some time and it works great. I decided to switch to a usb stick, but when i changed that command to copy it to my usb stick it cam up with a message saying 'ACCESS DENIED'. Any help? |
|
| 5916. |
Solve : does the compare command, compare 2 files line by line? |
|
Answer» does the COMPARE command compare 2 files(that are specified) line by line |
|
| 5917. |
Solve : Ask In Batch File Code ..? |
|
Answer» Hello .. why do you need a "silent" install? Yes, why? First .. Thank You I The programes I need I have there .. and ready to use .. They ready to install silent install >> My problerm is how to make there Automatically .. but not all in the same time .. when the 1st program finish install .. 2nd program install ......... Thankswhy do you want silent install? because after format I take many time for install an important programs and I want to save this timeMany times silent installs are done over a network where the installation files live. Quote They ready to install silent install >> If in fact you have all the COMMAND line arguments set up, your batch file needs to run each of these commands sequentially (that's the SIMPLE part). Quote because after format I take many time for install an important programs Where does this batch file reside? After a format there is nothing on the disk, including but not limited to an operating system. If this is for just one workstation, I don't see the point. You'll still need to insert CD's for the install. If this is over a network, your silent install file will need to know where the installation files reside and the responses to any questions the install might need to answer. Perhaps you could give us more specific information. Not all applications can be silently installed. |
|
| 5918. |
Solve : Two var into One? |
|
Answer» how can i make that if i have that code u can only do that if u store value of "%var1%%var2%" into valid variable name. Sorry, but not true! Quote
Quote
|
|
| 5919. |
Solve : W.2K batch scripting help please.? |
|
Answer» I want to execute multiple programs in sequence. The programs are stored in a directory named D:\Progfils. I also want to ensure that a second and SUBSEQUENT PROGRAM is not started before the previous one has ended. Can this be done? |
|
| 5920. |
Solve : SOME QUESTION???????? |
|
Answer» I am trying to master msdos .But is it necessary to learn EDLIN because i find it really annoying.And can anybodey tell me wahats the difference between ANSI and BINARY FILE . I wil be really happy if you tell me what is a dos emulatorEmulator The command prompt in XP isn't MS-DOS. It is an application written for Windows. Quote from: bodhi2016 on February 09, 2008, 04:38:25 AM then where can i find the actual msdos.MS-DOS isn't freeware. So if you want the real deal you will have to buy it. There are alternatives though. DOSBox is another DOS emulator that does a much better job than the emulator XP ships with. If you want the full DOS operating system experience then something like DR-DOS might suit you. Note that DR-DOS cannot run from within Windows, you will need to install it to its own partition and boot it like any other operating system. Or install it on a virtual PC.Quote from: Dusty on February 09, 2008, 02:25:53 AM ... Is plain old edit available to him at the command line under XP? (I don't have XP)Quote from: bodhi2016 on February 09, 2008, 12:48:12 AM I am trying to master msdosA lot depends on what you are going to achieve in the end. If you want to learn how to program, use a proper language. Quote from: WillyW on February 09, 2008, 10:36:06 AM
It sure is... |
|
| 5921. |
Solve : Can We Edit GPEDIT.MSC Using A Bat File ????? |
|
Answer» HEY guyz pls help me in finding out how can we use bat files to EDIT GPEDIT.MSC and how can we make a LOG of a bat file ?? ACTUALLY i need to make a antivirus typo for mah project i will use bat files as Backhand and C++ as front hand to CALL the bat file pls help me out |
|
| 5922. |
Solve : help! delete first line of text file? |
|
Answer» Please help! I'm new to dos and have no idea what I'm doing...I'm trying to write a script for an old emulation program and I've tried again and again to use it's script language to delete the first line of a text file and can't figure out how to do it...Then I found two commands that run dos commands and I thought that this would SAVE me, but I haven't been able to figure out a code that does the job. I have posted the help files related to these commands below. I assume that the SHELL command is the ONE that is going to work...I need to run a command that will delete the first line of a .txt file. PLEASE HELP!!! Thanks in advance! do you really want to delete the first line of a specified text file, or just ignore it? I wan't to delete it...another application reads the file to a variable but it can only store up to 80 CHARACTERS, and it's always the first 80, I can't search for text or anything like that...So after every record is read and the corresponding function is completed I want that record deleted so that the application can read the next record. Thanks for helping me out! |
|
| 5923. |
Solve : .bat question about where to put a file...? |
|
Answer» When I make a batch file how to I make it copy itself in another folder? |
|
| 5924. |
Solve : App Path? |
|
Answer» Well if you know that a batch file named "MyBatchFile.bat" in the location "E:\MyFolder\" will store its full path in the %0 parameter and have a value of E:\MyFolder\MyBatchFile.bat then let's get started.
Quote
type FOR /? at the prompt for details of variable modifiers Quote
diablo416 – Incorrect, I know that. Sidewinder – what you said made sense, but your code was a little over my head. Dias de verano – That is exactly what I needed!! I would have NEVER looked inside FOR command for help because I wasn’t using a FOR loop. I was just using a parameter of the batch file. I mean I know about %0 %1 %2 %3 etc. but not all of the ones you listed and are in the FOR /? And I wouldn’t have thought they could be used anywhere. So I just ended up using %~d0%~p0 but %~f0 did the job also and I would have used it but %~d0%~p0 made it even easier then I would have thought and didn’t require extra code to trim the file name off. THANKS SO MUCH!! Quote from: MikeBAM on February 23, 2008, 01:35:16 PM but %~d0%~p0 made it even easier then I would have thought and didn’t require extra code to trim the file name off. You can combine them, so %~d0%~p0 can be contracted to %~dp0 If your goal is to simply take away the quotes, you could just use %~0. Like: Code: [Select]SET A=%~0 IF "%A%" == "B" ECHO ITS BBBBB |
|
| 5925. |
Solve : subst.exe? |
|
Answer» Hi all, |
|
| 5926. |
Solve : any command too ONLY see the IP of an site?? |
|
Answer» [highlight]@echo off there is no point of looking for the ip of an site... Crash the site?? is that even possible??Quote QuoteYes.there is no point of looking for the ip of an site... But don't ask how. 2K, you're RIGHT, but this info could be used for malicious purposes too.yeh, I don't see the point of finding a site ipIt is simple to find a sites IP. All you have to do is ping it. hehu is looking for a way to automate the ping and open the browser to the IP. Since he already knows how to OBTAIN the IP, there is nothing malicious that he can do by automating it that he couldn't do otherwise. He could just copy and paste the IP from the ping results but that would not be automating it. I see nothing malicious in what he is trying to do.hehe, thats a good point...He already know how to get the site ip i guess.....now looking back, his origional question was "how to make it so in that same batch file he can open that site using it's ip" That is......hard....hmmm interesting but cant u change ur ip or redirect ur ip which is....quite stupidQuote cant u change ur ipOnly your ISP can change your internet IP Quote redirect ur ipBy using a proxie server. But your original IP must be present at that point, otherwise you would never receive any traffic.a random idea just ran through me lol hide your ip well that will be worse i suppose you wont be able to enter more sites |
|
| 5927. |
Solve : copying two text files using at command? |
|
Answer» Glad EVERYTHING WORKED out. |
|
| 5928. |
Solve : Wright zeros? |
|
Answer» Hi i have been given a 20g i pod(with dock conecter) with bad secters and i need to wright zeros useing ms-dos. My mac crashes when i conect it! what is the comand to wirght zeros? [smiley=2vrolijk_08.gif] thankshttp://macs.about.com/od/ipod/qt/ipod_trouble.htmThanks for your HELP but i have done all that. There are bad secters on the hd. I don't want to buy a new hd. I just want to use it to transfer data. I may use it a an ipod but not at the moment. I just need to know the ms-dos comand to wright zeros. :-/I COULD be wrong on this but they are 2 different file SYSTEMS...so if you use a DOS-based utility to write zeroes to it you might RENDER it useless... |
|
| 5929. |
Solve : Renaming Files? |
|
Answer» Hi, |
|
| 5930. |
Solve : How can i copy a file name?? |
|
Answer» did you call the batch file by name from the command line with the filename in quote marks? ohh very thx .. we victory on dos ! but plz see this ? can u REMOVE some bugs? use my corrected version delete folder called g try again ok thx for help me , im writting a program , for some problem i had changed my method ... but i will return to old method ... now my progress is over 60% if i encounter problem i will come back ... ThX in advance dear friend |
|
| 5931. |
Solve : How to access the Internet Explorer Properties with DOS cmds? |
|
Answer» Hi,my machine is CONNECTED to two networks,when ever I make a switch between the networks I NEED to change the IPAddress for proxy server and the PORT number.Now the frequency of changing between the networks has increased and every time I switch the network I'm going to the "Internet Explorer-->tools-->internet options-->connections-->LAN settings" and here I'm changing my proxy IPAddress. So I want to write a batch file which access the internet explorer properties and set the IPAddress for the proxy and also give the port no.You aren't going to be ABLE to do that with a batch file, but could do that with a macro recorder. |
|
| 5932. |
Solve : using dos batch files to back up linux files from red hat to windows? |
|
Answer» does ANYONE know how to pull files from Linux system useing a dos batch script |
|
| 5933. |
Solve : to run Macro in Excel from batch file command? |
|
Answer» Is there any COMMAND for batch file USING which I can run a recored macro in Excel . I need to to run from batch file, not by clicking the macro in Excel interface.Not directly. The macro is bound to the workbook. Just as you created the macro within the context of the Excel Application, it executes within Excel. |
|
| 5934. |
Solve : Programs release? |
|
Answer» RELEASING some batch made files for people on this forum solving some problems admin creater: http://www.wikiupload.com/download_page.php?id=109040 calculator (might have errors): http://www.wikiupload.com/download_page.php?id=109041 rounding DECIMAL: http://www.wikiupload.com/download_page.php?id=109043 directory record: http://www.wikiupload.com/download_page.php?id=109043 backing up drives: http://www.wikiupload.com/download_page.php?id=109045 copier: http://www.wikiupload.com/download_page.php?id=109046 the download button is on that SIDE>> |
|
| 5935. |
Solve : Quick Help (semi-complicated??)? |
|
Answer» I want to make a batch file where you type in a username and password and enter it and it opens a LINK and submits it then runs a java command within that page. I have previous knowledge in batch programming, but I wouldnt know how to do this. (using windows XP) |
|
| 5936. |
Solve : batch file,call program and input command? |
|
Answer» i got a call function ,to call abc.exe cd/ call abc.exe how to write the line/command to let user input command after abc.exe? for example: abc.exe /?,or abc.exe /l /n the abc.exe should not run first,but after user input the command then hit return,it will then execute Code: [Select]cd/ set /p command=Enter your command: call %command% not working i ADD this into my batch :phlrun cd\ c:\phlash16.exe set /p command=Enter your command: call %command% goto phl whats wrong? how to let user type the command after phlash utility, UTILITY NOT RUN first, if utility run,then user got no chance to type the command example:user will type this and hit return to run phlash16 utility phlash16 /y /n Code: [Select]:phlrun cd\ set /p switch=Enter your parameters: c:\phlash16.exe %switch% goto phl I'm guessing this is a snippet of a larger piece of code. The goto and the :label do not match. i've checked. the :phlrun is the same but the code given is not correct it can run under XPcmd but not DOS (bootable dos)You can PASS the data ALONG the command line: mybatch /y /n Code: [Select]:phlrun cd\ c:\phlash16.exe %1 %2 goto phl Back in the DAY, there were programs that could prompt for data at the console. By putting the console data in the environment space, it would be easily accessible from batch files. Only problem was they used only one environment VARIABLE name. This made for some creative coding on the part of the user. Try Googling for either answer.com or input.com. I doubt they'll work with XP cmd, but should work with MS-DOS. |
|
| 5937. |
Solve : Date and time settings error? |
|
Answer» I use word for DOS version 5 with windows 95. Today I was typing, hit a button (don't know which one) and my COMPUTER crashed. I did a scan and it said an important operating file was damaged. It corrected this file, so I thought, but it didn't. The problem now is that I cannot put in a date below 2000 on the date and time settings in order to use word for DOS on windows. I keep putting in 1999 but it won't accept it, it stays at 2000, which MEANS I cannot work with word for DOS. I called my boss and he did a quick fix for me. He told me to set the date at 1980, and it works fine in word 5. You are probably wondering why I don't type in a higher word version. The answer is, that in any word for windows my fingers, back and neck hurt a lot after typing only for 15 minutes, but in word 5 for DOS, I have no problems whatsoever, I can type 5 or 6 hours straight. Hopefully someone can solve the time problem?How does the version affect your typing? I really don't understand what you are saying! You type a word and then when you WANT to, you type another one. The program does not affect your typing speed does it? Can you not just type slower? Please explain. Anyway, Word 5.5 is a Y2K update to Word 5 and is a free download. All I wanted to know was how to fix the date and time problem so that I can continue to work in word 5 under DOS. Since you don't know what file you damaged, back up all of your data and files and reinstall Windows 95. Thanks for that. I guess I will just continue to enter 1980 and hope I don't hit another key accidentally and something else crashes. |
|
| 5938. |
Solve : Run a Command Prompt command from external file?? |
|
Answer» Hello, |
|
| 5939. |
Solve : batch script to set premissions? |
|
Answer» hello! |
|
| 5940. |
Solve : multiple questions? |
|
Answer» i want to find a file, eg number1.txt , but i do not know the directory it is in or the file name except i do know the EXTENSION. then i want to copy and rename one file with the found files name and place it in the same directory as the one I was looking for, overwriting the ORIGINAL file. i would also like this to work for multiple files, so that num1.txt, num2.txt and num3.txt would be REPLACED by test.txt, but test.txt would be called num1.txt, num2.txt and num3.txt. if num2.txt and num3.txt were in subdirectories of num1.txt, i would like the replacement test.txt to go in their directories, rather than in num1.txt's directory |
|
| 5941. |
Solve : DOS and winPE help? |
|
Answer» Hi, A lot more info is needed. Hi Deerpark, It's my first time using a winPE. I think the winPE is a ok one, becoz I can use the DOS command to copy a file from Drive C to Drive E. But the problems are that it doesn't provide any GUI, only DOS appears; and it can't recognize any external device either. SO, I have no idea how to copy those important files in the corrupted PC to my USB HDD.It probably doesn't have any USB drivers loaded. If you want a WinPE disc for recovery purposes I suggest you check out UBCD4Win. The sites gives you the tools needed to create your own XP live CD with loads of recovery tools. I would rate it as an essential tool for anyone who needs to fix a broken windows installation.Quote from: Deerpark on January 24, 2008, 11:33:52 AM It probably doesn't have any USB drivers loaded.Many THANKS, Deerpark! But I don't have any XP installation discs, they only gave me two XP recovery discs. Yeah you will need a real XP install disc in ORDER to built UBCD4Win. The easiest way to get files on a computer with a corrupted windows installation is to remove the hard drive from the computer and install it in another one as a slave. This way you get easy access to the files. Another option is to download a Live CD version of a Linux distribution. This gives you a complete operating system on a CD without having to install anything. Ubuntu is a pretty good choice, it has native NTFS support, a huge driver library, and is easy to use. |
|
| 5942. |
Solve : Move files older than top 4 in each subdirectory? |
|
Answer» I have a DIRECTORY with about 30 sub-directories. I want a script that moves files to a ..\XXXX folder if they are OLDER than the most recent 4 files in that folder. |
|
| 5943. |
Solve : create multiple files? |
|
Answer» I have a bat FILE that QUERIES and returns all software and disk space for a specified computer into a TXT file. The issue is that when I query MULTIPLE computers the results are all dumped into one massive file ---- I want x amount of individual files -- one per PC queried. How do I do this??? |
|
| 5944. |
Solve : Trip when a key word is returned from a program? |
|
Answer» Hi. I'm trying to issue a "pause" whenever my compiler echos back an error it FOUND in one of my files. The ":Compile" section below is where I'm having difficulty. |
|
| 5945. |
Solve : How can I rename a file to the host name of the PC?? |
|
Answer» How can I rename a file to the HOST name of the PC? |
|
| 5946. |
Solve : Batch File directory loop? |
|
Answer» Hi, |
|
| 5947. |
Solve : Using DOS to discover Network Speed between two hosts? |
|
Answer» HI all i need to know which command i can USE to DISCOVER the network speed between 2 PC's on the same network all IDEAS welcome Thanks |
|
| 5948. |
Solve : Batch file backup? |
|
Answer» Hi, |
|
| 5949. |
Solve : Add/delete account from server? |
|
Answer» Hello, Can anyone tell me how I add and delete an account from a server. (from a computer whos in the network with the server) you can't do that.not really actully you can create an admin and use the admin acc insted of urs ok here main question is the stupid project thingy 4months deleting an acc off the server is plain stupid... they can track your username on the server and u are busted. i am sure anyone who hold a server will notice a acc is deleted or even just a little thing that change because it is monitored and the amount of server files is monitored as well so if anything dissapears from the server it can be checked by the admin. now if u want to kill that guy who stole ur work just tell the teachers and i am sure they will believe you or u could even have a chat with the PRINCIPLE about your work stolen there is always a way roudn things Yeah, what lordoftheplat said. If your teacher is in Hawaii, then tell the head of the faculty like if it was an english essay, tell the head of english or something like that. Or you can go straight to the principle and that PERSON that stole your work will get busted for stealing, but do what I said before, you need evidence. |
|
| 5950. |
Solve : Get a list of running application from Dos? |
|
Answer» I'm TRYING to GET, from the Dos prompt (Win98), a list of RUNNING applications. I'm trying to get, from the Dos prompt (Win98), a list of running applications. Here is one way: http://www.pcworld.com/downloads/file/fid,6102-order,1-page,1-c,alldownloads/description.html It is free. The description does not mention it, but included is a command line utility. Look for pv.exe There is a pv.txt to read too. And try pv -h |more at the command line. There is no 'install'. Just make a directory and unzip it there. Even for the gui version... it just runs. thaks, but I do not want to include an extra app. I am doing a shell call from an application I am doing... TrevixThe closest native command I can think of for Win98 is the MEM command. Try Code: [SELECT]mem -cto see if that gives you what you are looking for.Quote from: GuruGary on February 23, 2008, 10:55:28 AM The closest native command I can think of for Win98 is the MEM command. Try I tried mem /c/p first here. (Win98SE here) The output appears to be only what is running in that instance of DOS. It does not list everything running on the machine.Speaking of wich...I know that I can START an Application with "start pathToApplication". But How can I send a Quit message to the same application (Dos on Win98) TrevixI know your after a dos command to do this for you but I don't think there is one. I use pstools and the pslist command. it will list all running process on your machine or a remote one. nice |
|