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.
| 2452. |
Solve : eof in skipspaces? |
|
Answer» I have some DOS software that has become CORRUPTED. When I RUN the executable BATCH file I get the ERROR "eof in skipspaces". I'm not SURE how this has become corrupted or how to fix it. Any help would be aprreciated. |
|
| 2453. |
Solve : Trying to Install Lexmark Z515 Printer? |
|
Answer» I'm trying to Install my Lexmark Z515 PRINTER & a pop-up reads 'Not compatible with MS-DOS'. The printer was installed once & someone in my family "uninstalled" it & the driver for it. I have Windows XP and am still pretty much computer illiterate. Please help!load the software first ...then attach the printer...it maybe that this printer is incompatable with winxp?/how old is this prt.you COULD NETWORK it with an old system win.........etc.....:'(ce Thanks for the advice, but it didn't work. The window still pops up that reads "AUTOEXEC.NT. This file is not suitable for running MS-DOS & MICROSOFT Windows applications. CLICK close to terminate." I went to a website & did what they recommended and it didn't work either. The site says that what's probable causing it is my ANtivirus thing is recognizing the file as a virus and deleting it. How can I check this & stop it?...Thx. |
|
| 2454. |
Solve : How to run a BATCH file while Computer is locked? |
|
Answer» Hi |
|
| 2456. |
Solve : Can't overwrite because of Read-Only file? |
|
Answer» I MADE a batch file wich should overwrite ANOTHER exe, but the exe was made bij an installer so i can't change the exe before the installer was FINISHED, so is there any msdos command to Un read only a file? So my installer will work?the command you are looking for is attrib -r |
|
| 2457. |
Solve : Backing up all files through DOS? |
|
Answer» Hey, I was wondering if someone could help me with this, if possible. I'm completely ignorant of DOS, and I'm looking for the CODE that will BACKUP all files on my COMPUTER to either a CD or external harddrive, using DOS code. There's quite good help for this elsewhere on the site, but I'm not sure what "directory" NAME I should use. Basically, it's everything in "My Documents" that I'm looking to back up. Apologies for asking something so basic, but I'd greatly appreciate any help anyone could give me. Thanks very much.Just wondering why you don't just drag My Documents to your backup drives. A lot quicker that DOS. |
|
| 2458. |
Solve : Modify a cookie file via .exe or batch file?? |
|
Answer» As you may well know, Google CREATES a "cookie" in our PC's, each with a unique ID that allows them to track our searches for God knows whatever commercial REASON. Being somewhat paranoid, I've been using a freeware utility known as "G-Zapper" which zaps the current current cookie and/or generates a new one. This is fine but once it executes, your Google Preferences are ALSO zapped and you must recreate them. No big deal but it's a nuisance. |
|
| 2459. |
Solve : boot disk does not boot? |
|
Answer» hello everybody- I blew my motherboard a few years back Off topic, but the answer MIGHT help me and others avoid such a thing. How did it happen? I once blew a motherboard while trying to fix my keyboard while the computer was on. Keyboards connect directly to the motherboard without any fuse. Dumb. And extra dumb because new keyboards are so cheap. So I got a new motherboard and everything was fine until I tried to use some backups that were on floppies. The old motherboard had an error unknown to me whereby my floppies were not readable by anyone but me. My new motherboard, of course, couldn't read it and I lost a lot of data. So I learned: Don't do any adjustments with the power on. (I sort of knew that, but was trying to see what was happening as I fiddled with the keyboard) Mac i dumped a cup of water onto the keyboard of my running laptop. everyone should avoid doing that :] |
|
| 2460. |
Solve : file name? |
|
Answer» i have a BATCH file which do the ftp and create a log file as ddmmyyhhmiss.txt format to record the ftp log. |
|
| 2461. |
Solve : How to group the functions in IF statement?? |
|
Answer» HI , I assume you are using windows cmd. |
|
| 2462. |
Solve : Deleting 5 text files which are in 12122006.bak? |
|
Answer» please HELP as to how will we delete 5 text files which are in 12122006.bak mmddyyy format . all 5 files are in ascending ORDER of DATE. |
|
| 2463. |
Solve : Start Command w/Parameters? |
|
Answer» On SEVERAL occasions I have needed to start a command with parameters in a .bat file but I am unsure how to pass the parameters properly. For example, I need to RUN the FOLLOWING command from a batch file: |
|
| 2464. |
Solve : My computer is a large paper-weight. Can any1 help? |
|
Answer» Hello! cool, i get what you mean. i dont want to take 2 steps forward and 3 back. although tbh at the moment my computer isnt taking any steps anywhere to maybe she will just enjoy the exercise even if it is backwards. LOL very funny. |
|
| 2465. |
Solve : PLEASE HELP ME GUYS..... File Deletion SIDEWINDER? |
|
Answer» PLEASE Kindly guide me as to how will we delete back up files that are older than the LATEST backup file. i am working on windows xp and will prefer any dos scriptWhy limit yourself? Your shiny new XP installed both VBScript and JScript and there are many script languages you can download and use for free (Perl, Rexx, Python, etc)Hi There SIDEWINDER !! Firstly thank you so much for your time and efforts spent . I am really grateful to you. Well along with the DOS commands sent by you I also got hold of this VB script which is also made by you only. The Script is as follows: --------------------------------------------------------------------- dim fso, f, fs, fc set fso = CreateObject("Scripting.FileSystemObject") set f = fso.GetFolder("D:\TEST") <=== change this to ur directory set fc = f.files for each fs in fc if datediff("d", fs.datelastmodified, date) >= 15 Then <=== the 15 is to delete files older than 15 days. fso.deletefile fs, true end if next ---------------------------------------------------------------------- and I tired this one and its working perfect . it works on the concept of the DATEMODIFIED properties of the FILE. I am really feeling much better now. Thanks again & see you soon Regards, JhedsIt's TERRIFYING to know that old posts may come back to haunt amuse us. On the other hand it's good to know that many solutions are timeless. |
|
| 2466. |
Solve : Guys can someone help me??????? |
|
Answer» [highlight]Guys i dont look for trouble,i m just kid which want to know everything,other people like when kid want to learn,and i really want to learn all,i cant know all but i ll do my BEST.[/highlight]Quote [highlight]Guys i dont look for trouble,i m just kid which want to know everything,other people like when kid want to learn,and i really want to learn all,i cant know all but i ll do my best.[/highlight]hey, why don't a read a book first. I have an ebook on the M$ command line here http://www.megaupload.com/?d=0NEWQEG2 which i don't mind sharing with you. ANOTHER link at http://www.sendspace.com/file/j5pjp7 Its called Microsoft Windows Command-Line Administrator's Pocket Consultant. Have a read and i am sure you will know quite a lot after that.Thank you all guys for helping me to figurate dos commands and vriting little programs,[highlight]i really appreciate that[/highlight]Quote It is quite difficult to try to write a virus in DOS and DOS doesn't do much for you anyway. I don't agree. You can MAKE a batch file tgat makes an externel *.vbs script. For example >> test.txt ECHO line one, ETC. And open that *.vbs script with your batch file. And with vbscript you can make a serious virus, after all, the I love you virus is MADE in vbscript Quote I don't agree. You can make a batch file tgat makes an externel *.vbs script. For example >> test.txt ECHO line one, etc. And open that *.vbs script with your batch file. And with vbscript you can make a serious virus, after all, the I love you virus is made in vbscript I think he was trying to design a "virus" with just a batch file I suppose, not any other programming or scripting language. That kind of batch file is just executing another program or script, but it does not have a "virus" embedded in the code. |
|
| 2467. |
Solve : How to make a calculation in DOS?? |
|
Answer» HI, you can look at the set command here http://www.ss64.com/nt/set.html |
|
| 2468. |
Solve : How to "Fold" a continous text string.? |
|
Answer» Hi everyone! Hi everyone! well, in windows you can use fold too.. http://unxutils.sourceforge.net/ |
|
| 2469. |
Solve : Port numbers.? |
|
Answer» HEY there, I play Everquest2 and I use the program Ventrilo to communicate with my FELLOW GUILD members. I have resently updated my ventrilo program I have lost the port number to the SERVER, I still have the servers Ip address but I was wondering is there was a command in DOS to get the port number to the server. :-/ Quote Hey there, I play Everquest2 and I use the program Ventrilo to communicate with my fellow guild members. I have resently updated my ventrilo program I have lost the port number to the server, I still have the servers Ip address but I was wondering is there was a command in DOS to get the port number to the server. :-/ i think the question is no sorry since you know the IP address of the server, you can find out which ports are open on that server by doing port scans. you can then try to connect to each port found to see if it is the ventrilo port..Thanks I'll give that a try! Quote since you know the IP address of the server, you can find out which ports are open on that server by doing port scans. you can then try to connect to each port found to see if it is the ventrilo port.. mmm newbie Question...: How do you do a port scan Quote from: HDL_CinC_Dragon
you can do your own programming with sockets, or you can download those ready made port scanners eg nmap, scanline etc...search google for more info. |
|
| 2470. |
Solve : How to compare the number?? |
|
Answer» Hi, Usually an if statement is used for a comparison: |
|
| 2471. |
Solve : CMD Help.? |
|
Answer» Is there possible to SET som kind of delay in my bat file something like this: I am using a windows xp professional ^^You can download the Win2003 Resource Kit or you can search the web for the standalone sleep executable. I think even CH offers a sleep program. Good luck. 8-)This should do it... Code: [Select]PING 1.1.1.1 -n 1 -w 200 >NUL. the 200 stands for 2 seconds. Change it to 100 for one sec, 150 for one and a half.. Miki (i asked the same question 1 or 2 years ago ! )Quote This should do it... correction: Code: [Select]PING 1.1.1.1 -n 1 -w 2000 >NUL. the 2000 stands for 2 seconds. Change it to 1000 for one sec, 1500 for one and a half.. its MILLISECONDS thus is base 1000 not base 100 |
|
| 2472. |
Solve : Aborting format - drive C currently in use etc? |
|
Answer» Hi |
|
| 2473. |
Solve : Partition resizing command in win98 DOS? |
|
Answer» what is the command for resizing the partition in WINDOWS98 DOSFor resizing partitions you NEED partition magic. For resizing partitions you need partition magic. Not neccessarily : From our VAST KNOWLEDGE Base... See HereThanks for the link. I didn't KNOW the scripting possibility. uliYou're Welcome, uli. |
|
| 2474. |
Solve : cmd closes immediatly? |
|
Answer» Hey its my first time here but mostly everyone seems friendly and seems to know what theyre doing |
|
| 2475. |
Solve : Scripting questions? |
|
Answer» Not REALLY a DOS question but a scripting one. |
|
| 2476. |
Solve : Archiving files? |
|
Answer» Hello everyone. |
|
| 2477. |
Solve : cd-r on dos 6.2? |
|
Answer» Can you use a cd-rom drive and cd-r in dos 6.2 Can you use a cd-rom drive and cd-r in dos 6.2Yes, if you have the RIGHT drivers and CD burning software Quote Can you use usb flash drives ?Yes, if you have the right drivers, and FAT16 filesystem on the flash drive. There are actually at LEAST 2 companies that have written OHCI drivers that will allow DOS to SEE and use USB drives, including flash drives and USB / Firewire EXTERNAL drives. If you have a recent copy of Symantec Ghost it will even build you a DOS boot disk with USB support. Otherwise you have to search to see if you can FIND drivers for your chipset. |
|
| 2478. |
Solve : installing windows 2000 from dos? |
|
Answer» i have an IBM Thinkpad... everytime i turn it on it SAYS "vmm32.vxd is required to run windows. if this file is not in ur path you might need to reinstall windows" and then its followd by a dos prompt... i have a windows 2000 disk but i dont know where to go from there... the computer does not have a floppy drive so the whole process needs to be done from the disk (D) drive.... can ANYONE PLEASE help me? thank you...Put the disk in the drive & boot the computer. |
|
| 2479. |
Solve : How to Count a character in a long string? |
|
Answer» Hi, |
|
| 2480. |
Solve : Batch File to process the "Enter" key? |
|
Answer» I need a batch file that will process the key after a command takes place that requires the Enter key to be pressed. |
|
| 2481. |
Solve : Date and timestamp in filename? |
|
Answer» Hi, Hi, You could use a simple script, but, in my script, you have to GIVE the date and time yourself Code: [Select]@echo off echo. echo. set /P choice= What's the date : set /P choiec2= What's the time : >> (location)/%choice%%choice2%.txt but, i dont think that this is something that you are LOOKING for Thanks, but no. I want it to determine the system date and time within the script (if there's no DOS command with a switch) and use that info to apply it to the filename.Code: [Select]@echo off for /f "tokens=2-4 delims=/ " %%i in ("%date%") do ( set mm=%%i set dd=%%j set yy=%%k ) set today=%yy%%mm%%dd% for /f "tokens=1-4 delims=:. " %%i in ("%time%") do ( set hh=%%i set mm=%%j set ss=%%k ) set now=%hh%%mm%%ss% Once you generate the %today% and %now% tokens, you can use them as you wish: Test.txt >> Test%today%%now%.txt 8-) PS. You failed to mention your OS, so this code may or may not work on your machineThanks - this worked just great! I puts a space between the date and timestamp and I'm not sure why, but it doesn't matter. Thanks again ! Quote [code] Curious ... what OS does that work in? XP's command prompt? Also, wanted to mention a program that I remember using, some years ago. Used it with some sort of scheduler, to set environment variables, so that I could use pkzip to archive some stuff weekly - filenames based on the date of creation of the zip file. Kept them all in one directory. www.ferg.org/fdate/ Fdate "Fdate is a utility for doing date formatting and date arithmetic in MS-DOS batch files. It runs under MS-DOS and WINDOWS. Fdate's output can be placed into an environment variable that can be used in a batch file in whatever way is useful to you. Fdate is freeware ("zero-cost shareware")." Worked great for me. I didn't find it mentioned anywhere with a search - I was surprised. This is a Windows 2003 Server. I'll go look for that s/w - SOUNDS good - especially the price! |
|
| 2482. |
Solve : 'shutdown' command help? |
|
Answer» I have just started learning about DOS, and I read about the 'shutdown' command. Let's just say that I wanted to "prank" my brother by remotely shutting down the 2nd computer in my house while he's on it. I know how to do everything except find out the 'computer name' argument. Could someone please tell me how to out the name of a computer?on your own computer, TYPE hostname on the command prompt.In the prompt you would Type Shutdown -s -m\\(your brothers computer name) then you can even *censored* a message with -c "then your coment in here" |
|
| 2483. |
Solve : MS-DOS *.bat and notepad.. HELP !!? |
|
Answer» this is the question... |
|
| 2484. |
Solve : How to create log of "echo" in batch file?? |
|
Answer» I've got a large batch file that is going to delete several hundred thounsand files from my network. I would like to LOG the "echo" message that either confirms that the file was deleted or states that the file coulnd't be found. How can I do that? My file currently looks like this: Is there a way to get the "1 file deleted" message printed in that file? erase xxx.yyy >MyLog.txt 2>&1 Try that, that is all the output there is Mac |
|
| 2485. |
Solve : Time taken by program? |
|
Answer» From a batch FILE, I am invoking a program and i want to calculate time taken by that program. Please let me know how can i achieve this |
|
| 2486. |
Solve : GuruGary - Automating the DATE string processing? |
|
Answer» GuruGary, every time you assist someone with a date related issue (ie. adding a date to a file name) you always say "depending on your date setup" it is either mmddyyyy or ddmmyyyy. |
|
| 2487. |
Solve : Command.exe need help !!!1? |
|
Answer» i have a question i have a textfile NAMED i.txt and one file named zap.bat First of all, there is no command.exe. Second, your question is unclear. Do you want zap.bat to echo the contents of i.txt? Or do you want zap.bat to insert an echo command at the end of i.txt. THANK YOU Sidewinder ! |
|
| 2488. |
Solve : need a dos batch file for generating files with da? |
|
Answer» HI All, I need a DOS batch file that generates RESULT files with date and time EVERYTIME I run my batch file . Basically this DOS file created will compare to files and give out a report in a HTML format.For this file comparision I'm using Beyond Compare 2 software.Here is the code i wrote for it..but i cant create files with date and time everytime this batch file is run. set BC_HOME="C:\Program Files\Beyond Compare 2" set Auto_home=C:\Automation cd %Auto_home% call %BC_HOME%\BC2.exe @%Auto_home%\Compare.txt %Auto_home%\report.html %Auto_home%\sampletest1.txt %Auto_home%\sampletest2.txt PLease help me in this regard..Thanks in advance.Check your mailbox Rajah. This was ANSWERED in a PM. |
|
| 2489. |
Solve : Counting no. of directories by running batch file?? |
|
Answer» HI All, I wanna create a batch file that counts the no. of directories in a particular path and write the result into a txt file. I am a novice in batch files. Though I am able to do it USING VB, I dont wanna do it via VB. My directory structure is somewhat like this: C:\Myfolders\A C:\Myfolders\B C:\Myfolders\C C:\Myfolders\D .............. .............. C:\Myfolders\Z Now in each folder from A to Z there are SUB folders staring from 1, 2... I want to have this count written in a text file like, Folder A 25 folders Folder B 34 folders ....... Please help... Thanks & Regards Newbie I assume you are running Windows 2000 or newer? Try this in a batch file: Code: [Select]@echo off for /f "delims=" %%a in ('dir /ad /b') do for /f %%c in ('dir "%%a" /ad /s /b ^| find "\" /c') do echo Folder "%%a" contains %%c sub-foldersThanks Guru. That was GR8. It solved my problem. Thanks again for your prompt reponse. No problem. Glad to help. |
|
| 2490. |
Solve : create folder automatically on filename values? |
|
Answer» Dear all, |
|
| 2491. |
Solve : Batch file to change program used to open files? |
|
Answer» Is it possible to write a batch file that adds a new file extension and tells Windows which PROGRAM you would like to use to open files with that extension? |
|
| 2492. |
Solve : RENAMING multiple files in the command promp? |
|
Answer» i would like to rename multiple files in a directory/folder in the command prompt (win xp) |
|
| 2493. |
Solve : Ip commands?? |
|
Answer» Hey everyone. Im a COMPLETE newbie so please have mercy . I want to know what the command to look at all of the IP addresses of a network is. Any HELP will be APPRECIATED. Thanks...ipconfig /all and hit Enter... |
|
| 2494. |
Solve : I want to bring to life an old laptop? |
|
Answer» Quote QuoteLet me get this straight...you need help with installing torrent versions of software ? ? ? That's warez! And due to legal restrictions we can't help with it. For DOS, try FreeDOS. For Windows, there's plenty of what you need, available cheaply and LEGITIMATELY on EBAY, |
|
| 2495. |
Solve : Removing Directory/Folder by Date? |
| Answer» HOWDY! I'm new to the DOS/batch file world and am trying to create a batch file that will remove a directory tree BASED on a date (i.e., RD c:\myDir if date is older than today). How can I ACCOMPLISH that? Thanks. | |
| 2496. |
Solve : send and read files on a webserver? |
|
Answer» Is there a WAY to send and read files on a webserver trough batch? |
|
| 2497. |
Solve : filling mysql via batch? |
|
Answer» HI |
|
| 2498. |
Solve : capturing the output of a dos (not ms-dos) program? |
|
Answer» HEY, So I am currently using dos (not ms-dos, just straight up dos) and am trying to capture the output of a program. The program returns a single line that shows the processor speed. e.g. C:/runprog Core Duo 1.6 C:/ So what I'm trying to do is put the "Core Duo 1.6" part into a variable. How do I do that? And if that's not possible, or is a real pain, are there any other ways to put my processor speed into a variable? Thanks, darryl"straight up dos" is a new one on me. I have heard of MSDOS, IBMDOS, DRDOS, FREEDOS, and a few more off the wall flavors, but "straight up dos" really has me stumped. The easiest way is to create an environment variable using the SET command. set duo = Core Duo 1.6 When you need to use it, %duo% will produce the variable. To remove the variable, set duo = To make the variable more permanent, put it in the autoexec.bat so that it will be set on every boot.Well, yes, I could do that... but it doesn't suit my purposes. The issue is not setting a variable that is always "Core Duo 1.6". I'll give a little more info on what I'm trying to do here... I am using a network boot cd that automatically installs the drivers onto a computer. The problem is, we have several different kinds of computers, and I am trying to make it so that it automatically installs the right one. As such, I need a model-specific string to compare in order to tell the program what driver to INSTALL. I've GOT everything figured out except how to get the program to distinguish between computers; right now I'm using a choice menu manually, which gets old when you're dealing with lots of computers... So, I need to get a variable that contains model-specific information. Because the boot cd doesn't have NICE, convinient built-in variables, I am using a program that returns the CPU speed (which is different ACROSS all models). So I need to figure out how to use the returned value. Thanks, -darryl |
|
| 2499. |
Solve : Re: command.com? |
|
Answer» You will PROBABLY need to POST this in better ENGLISH. I have no IDEA what the problem is based on this. |
|
| 2500. |
Solve : help needed for a backuping batch file? |
|
Answer» i need a batch file which will run |
|