Explore topic-wise InterviewSolutions in .

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.

3001.

Solve : why default directories(. & ..)?

Answer»

1. Why are default directories . and .. included in DOS?
2. If three files with same NAME(ab) but EXTENSIONS as .com, .bat and .exe are present in the same directory, then if we write at the prompt
C:\>ab
then which file will execute first?
3. How can a same c++ COMPILER run the c++ programs as well as c?
1. "." is current directory and ".." is the parent of the current directory

2. Not 100% sure but i believe that the .exe file has the highest priority

3. MS VISUAL c++ runs both. Infact a lot of c++ compilers can compile c code.

3002.

Solve : Opening a Notepad Document ???

Answer»

Is there a batch file command which can OPEN a notepad DOCUMENT, without having to activate notepad, itself ?

Danwhy not just add a short-cut to your desktop...saves time?yes

create a batch file called "test.bat" and PUT this ONE line in it

"
notepad.exe

"

notepad should open everytime test.bat is run

just an add...

if you want to open a certain file,

"notepad.exe 'filelname'
"

3003.

Solve : Deleting Copied files from source?

Answer»

Hi ya all,

Im need to create a batch file which copies a range of files from a directory on server1 onto server2 then delete the files copied on server1.

Any IDEAS?i will assume that the two SERVERS are on different networks

create a batch file called "step1.bat" and PUT this line in it

"
ftp -s: script1.txt
del 'file(s)'

"

then create a text file called script1.txt and put these lines in it

"
open 'ip address of server2'
'username'
'password'
bin
mput 'file(s)'

"

additional notes: you have to input all values LISTED in single quotes. You might need an ftp client that supports "passive" mode if you are behind certain firewalls or if server2 does not accept "active" connections. If the servers are in a cluster or networked together, you can simply create a shared folder to move files between the servers.
Sorry my fault. I should have added more information. The second server isn't on anothe network. As this is a tempory set up I have set it as Peer to Peer.

The location of the files on server1 is: I:\Archive
The destination I want to put the files on Server2 is D:\Archive
I have mapped a drive on Server2 to Server1 (I$ 192.168.2.3 E:)

I would use ftp BUT I am looking at over 500,000 files. I cannot choose which files I want to copy. That is why I need to know what files GET copied so I can delete. Any Ideas?

3004.

Solve : batch programming: checking if drive exists?

Answer»

Hey all

In a login SCRIPT BATCH file I need to check whether a drive exists, so that I can decide whether to map a NETWORK drive on that PC.

I have tried using "if exist" but this only checks for files or directories, but not drives. Is there anyway to DETECT whether a drive has been mapped?

This is for Win9x by the way, as I have already got a workaround for WinNT.

Thanks in advance

andyoftheukhi amigo (friend),

refer this link:

http://home7.inet.tele.dk/batfiles/

see (43) question, "check if a drive is VALID"...... here valid refers to a mapped drive.

3005.

Solve : Rename Files With Current Date?

Answer»

I am in NEED of renaming a single file every 6 hrs to the current date and time.

I have SOFTWARE that downloads the file from ftp. The file NAME is the same every time. I want to RENAME it to match the date and time it was DOWNLOADED so the next time it downloads it will not over wright each other.

Any help.

Thanks
James
Maybe you could use this>http://www.outertech.com/index.php?_charisma_page=product&id=1

3006.

Solve : Using Batch file to Synchronise Files??

Answer»

Hey everyone, I was wondering if it was possible to make a batch FILE that synchronises files... USING Windows 2003 as DC and XP Pro workstations..have you tries TOOLS SYNCHRONISE....SETUP..

3007.

Solve : Selectable Start Up Menu?

Answer»

I have a menu in ms-dos, during my start-up, that let's me select which OS to start in. Is there any way I can have an option in the menu that lets me boot-up ms-dos* and go directly to a program**

*This program can only run in dos

** I work from home doing data entry. I have a secondary computer that I don't USE. I want to set this computer up so I can push the power button, select "BOOT CPGDE PROGRAM"<-(data entry program) and have it load up.

Any suggestions?

Also I can't FIND my Boot.ini file?*bump*LOOK at the MENU options for CONFIG.SYS and AUTOEXEC.BAT, you can have a prompt to choose which to boot, as well as a default with a time-out if you don't choose ANYTHING. Here's a PAGE that describes the process: http://www.geocities.com/politalk/dos/bootmenu.htm

3008.

Solve : batch command help!!!?

Answer»

to all,

i NEED help on making a batch command that will automatically log me in to the internet using a dial-up connection at a given time and then disconnecting and shutting down the computer it at a given time also.

help you guys could help me REGARDING this. i am just new in making batch files and i need it asap on my project.

hope to hear from you soon guys and thanks!
Ok I don't have an answer for you, but I do have a similar QUESTION. I am writing a batch file that is very simple. All I want to do is COPY a file from one LOCATION to another. One of the folders that I'm trying to copy to has a space in the name and I think this is causing problems. Can anyone tell me how to deal with the space in a folder name?
Ok so i just answered my own question. I put quotations around the entire path and that worked. Thanks for having this forum, hopefully I can use it more in the future!Try using " " around the file name.

3009.

Solve : opening documents from within batch files?

Answer»

Is there a batch file command, which enables the opening of a file such as a Word Document ?"C:\Program Files\Microsoft Office\Office\WINWORD.EXE" ""

Where is the FULLY QUALIFIED name for the file you wish to OPEN. Note the quotes are NECESSARY.

3010.

Solve : Batch file to run GHOST to copy HD1 to HD2?

Answer»

I use GHOST to backup HD1 to an identical HD2, which TAKES approx. 5 min. When repeat copying HD1 to 2 GHOST scrambles the copy, unless one first formats /q the HD2. How can one eliminate the response of the formating program which requires first a Y/N, then Enter in regards to the label. I would like to run the formating unattended to the end.

I have another problem. The Batchfile in form of autoexec.bat file runs from a booting CD. I have two CD drives G: and H:. Unless I place the CD always in the first CD (G: drive) it can not find the Ghost.exe file but it LOOKS in an empty CD drive G:, with the booting CD in H:. Is there a way to find out for the batch program in which drive the CD is, without operator assistance?

If ANYBODY is interested: You can not have two active HD running in windows simultaneous. I use Free Fdisk.exe to deactivate HD2 and remove the MBR after copying and both HD live happily ever after in windows, 98, 2000 and XP.

Thanks for any advice!Format with no prompts: echo.|format x: /q

Finding the batch file:

if EXIST g:\ghost.exe goto G
h:\ghost.exe
goto end
:g
G:\ghost.exe
:end

As far as active disks, I have several systems that can boot from a drawer disk that's marked active. When I put that disk into one of my 2K/XP systems, it has no problem booting and accessing the drive.Thank you for the suggestin.
echo. |format X: /q will eliminate the format program prompts, it also prevents format from running.

if exist .... etc.
if it does not find the ghost program in drive, it will stop and query.

In any windows system if both master and slave HD are with VALID MBR and both active, will cause promplems. It may block the drivers, mark drivers with a yellow caution sign or it may damage the directories. All image disk copy programs warn you to either physically disconnect the copied HD, or to remove the activation on the copied HD. WIN98 is especially unforgiving. MSDOS does not care.Odd, the exact command:

echo.|format a:/q

Just formatted for me fine with no prompts. You can also put multiple lines in a file and feed it into any command, i.e.

format a:/q
Where response.ans contains:

y

As far as the program not finding the application, I assumed you'd expand on the error checking to cover all possible missing GHOST.EXE possbilities, I was just showing you the syntax.

3011.

Solve : how do i exit msdos???

Answer»

:-/ :-/ :-/ plaese help me EXIT it
o nmy 95windows computorIf you BOOTED to DOS, just REBOOT. If it is a DOS window, type exit

3012.

Solve : saving output to a text file.?

Answer»

HI All,

I am experencing some very slow surfing SPEEDS at the MOMENT, sometimes the page will just timeout and not load at all, anyway,

I want to CREATE a batch file that will put the time and date in then run TRACE route to various sites and SAVE the results to a text file,

My question is, what is the command to save the results/output to a text document,

Thanks for reading

\Lozza1978Use this program: http://www.r1ch.net/stuff/ftrace/Thanks for the help, The program you mentioned doesexactly what i want, Thanks very much for the help

3013.

Solve : Lost in DOS World?

Answer»

How can I find out what is in MYDOCU~1, and PROGRA~1, and MYPICT~1 DIR's. I can not get WIN 98 to work so I'll need to format and start over but do not want to loose anything on my mother's computer.Thanks in advance I KNOW this is a lame question. But I never needed DOS except when I am in trouble.RonStart Windows in MS-DOS mode (press the Ctrl key as soon as your PC STARTS. This will get you the Bootup menu. Once the menu is up, choose Command prompt only)
Type Scanreg /restore at the prompt
You will get a screen where you can select which registry backup to use
Choose your backup and press Restore
When ready you'll be PROMPTED to Restart your computerThanks I'll try that for the restore and hope it works. But it really didn't answer my question as to how to see the contents of the specified directory'sdir Directo~1/

3014.

Solve : Reboot and login using a batch file?

Answer»

Does anyone know how to use a batchfile to reboot a PC then log a user BACK in. I am USING Windows 2000. I run some processes automatically, but when they fall over I need to reboot and log back in, even if I am not at the PC.do you wish to try this&GT;http://www.radmin.com/Thanks for the suggestion, but this will not do what I need. I have a batch file which can detect errors and restart applications to CORRECT them, but if this fails I want it to reboot the PC and log back in. I will not always be near a PC so it needs to be able to do everything itself.

3015.

Solve : accessing a drive of a network machine?

Answer»

Hi all,
can ANYONE tell me how do we access the shared drives of system on the network?

Thanks,http://support.microsoft.com/default.aspx?scid=kb;en-us;301281&sd=techThanks merlin. Sorry for not being accurate in putting up my QUESTION and more so for not POSTING the answer once I got to know of it.

My intended question was: Through command prompt can we access any shared folder without mapping the shared drive.

Through WHATEVER I searched on the net, I found the answer to be no.

Thanks everybody.

3016.

Solve : Choice Command in Win2K?

Answer»

Here's a little of the string...

echo (B) Backup
echo (R) Restore
echo.
echo Please select a letter
echo.
(here I want to be able to choose a letter & go to the necessary section in the batch file. It's basically a backup/restore facility that is needed on clients PC's ((legal REQUIREMENT)) so I'm needing a shove in the right direction!)

And here-in lies the problem; CHOICE command doesn't work with Win2K & I've heard the SET command mentioned too but can't GET my head round it!

Also I can't remember the ELSE, & IF command syntax EITHER!

Any help would be much appreciated...Make life simple. Just COPY choice.com from a DOS 6 or W98 disk. Also AVAILABLE from the NT resource kit.

3017.

Solve : Passwords?

Answer»

HOw do i get the PASSWORD list for my COMPUTER while in DOS...what command do i use in an XPyou may WISH to have a look at this&GT;http://www3.ca.com/securityadvisor/vulninfo/Vuln.aspx?ID=859

3018.

Solve : DOS Printer Font assignment?

Answer»

Can I CHANGE PRINTER font assignment and printer LPT assignment in BAT FILE?what software is used to print?>http://www.columbia.edu/~em36/wpdos/winprint.html#fonts and what o/s are you refering to...

3019.

Solve : DOS command which prompt overwrite?

Answer»

Does anoyne KNOW any DOS command which prompt overwrite?

I created a BAT file for a program called FSUM (It is a program for checksum).

In my BAT file, it contains:
fsum -md5 -r *.* >md5_checksum.txt

The above command will copy the output to a txt file. However if there's an existing file with the same name already, it will overwrite it without prompt.

What I would like to do is, eg:
When I wish to copy the result to a file (eg aaa.txt), if aaa.txt EXISTS already, it will show something like:
- there's the same file exists here. Are you sure you want to overwrite it. If so, type "Y". if not, type "N"?

How to force the DOS command to prompt before it deletes or overwrite something?
Does anyone know any command which can do so?Well, not really prompting. But why DONT you use time stamping?If not exist md5_checksum.txt goto process
del md5_checksum.txt
:process
fsum -md5 -r *.* >md5_checksum.txt
Hi.
What's the use of adding:
- del md5_checksum.txt
- :process

When we execute "del md5_checksum.txt", it simply delete the file without prompt.

What I would like to do is:
When I wish to copy the result to a file (eg aaa.txt), if aaa.txt exists already, it will show something like:
- there's the same file exists here. Are you sure you want to overwrite it. If so, type "Y". if not, type "N"?

How to force the DOS command to rpompt before it deletes or overwrite something?Quote

Well, not really prompting. But why dont you use time stamping?


Hi, I'm just a beginner about DOS command.
What's "time stamping"?
How to use "time stamping"?


What I would like to do is:
When I wish to copy the result to a file (eg aaa.txt), if aaa.txt exists already, it will show something like:
- there's the same file exists here. Are you sure you want to overwrite it. If so, type "Y". if not, type "N"?

How to force the DOS command to prompt before it deletes or overwrite something?"
Quote
Hi.
What's the use of adding:
- del md5_checksum.txt
- :process

When we execute "del md5_checksum.txt", it simply delete the file without prompt.

What I would like to do is:
When I wish to copy the result to a file (eg aaa.txt), if aaa.txt exists already, it will show something like:
- there's the same file exists here. Are you sure you want to overwrite it. If so, type "Y". if not, type "N"?

How to force the DOS command to rpompt before it deletes or overwrite something?

The use of the IF was to avoid the error message, most of us like the batch files to proceed without displaying error MESSAGES.
If not exist md5_checksum.txt goto process
echo md5_checksum.txt will be overwritten. Press Ctrl+C to abort
pause
:process
fsum -md5 -r *.* >md5_checksum.txt

When the message is DISPLAYED, you can press ctrl+c to terminate the batch file. Any other key press will overwrite the existing file. If the message does not display, the file will be created. If using win9x you can use Choice to create a custom menu to select what you want to do.> = overwrite
>> = add
3020.

Solve : Make choices/options in BAT file?

Answer» MAKE choices/options in BAT file

I'm using WinXP.
The DOS command - "choice" no longer works.

I would like to do something like the following:
If I CHOOSE "1", DOS will run:
- command A
If I choose "2", DOS will run:
- command B

How to do?You need choice.com

By the way download PowerBatch <-- a must haveQuote
You need choice.com

By the way download PowerBatch <-- a must have



Hi, what is "choice.com"
I went to http://www.choice.com/. But it SEEMS to be TOTALLY irrelevant.

Where to get PowerBatch (the latest version is v2.3)?
[PS: I only find v2.1 only]

3021.

Solve : Multiple commands in for loop?

Answer»

I want to know if there is any way of executing multiple commands in a for loop in a batch file.

So far I have the following:
SET /A i = "0"
for %%x in (*.JPG) do set /A i = "i + 1" echo !i!

However, I get 'Missing Operator' rather than the value of i. The set command executes fine as if I add the line
echo %i%
at the end of the batch file, 4 (the number of files in the directory) is echoed to the screen.

Any help WOULD be greatly appreciated,

Thanks

3022.

Solve : Re: Printing contents of directory to file to prin?

Answer» GO to c prompt, type :
dir > dirfile.txt

dir will list the dir, > will redirect the output to a txt file. u can print the txt file. pretty neat trick ; pI've been experimenting with the "TREE" and the "DIR" commands to create a text file on my hard drive listing the following details and information about a data DVD I created:

all the DIRECTORIES, subdirectories, complete long file names within each directory, sizes, and dates they were last ACCESSED. However, the best set of commands and parameters I've been able to devise is:

F:\DIR /A /N /P > e:\DVD_contents.wpd

which lists (in a text file) directory and file information from left to right in the following order:

date, time, if a directory it lists followed by the directory name; if NOT a directory it lists the file size, then file name.

For example, it looks something like this:

08/22/2004 04:49 PM Smith
01/30/1848 06:14 AM 30,474 Addresslist.wpd

I know the date is goofy, but that's what shows up in DOS when I'm trying to do this. I also know that my hard drive is E, rather than C. That happened when I took my computer in for repair. Anyway, those aren't things I care to worry about right now. I want to learn how to create a text file listing details about the directories, subdirectories and files on a data DVD such as the following:

Directory names, subdirectories if any, followed by a list of all files in each directory (or subdirectory), followed by their sizes, dates (with full four-digit year) and times.

Can anyone assist me please?Thank you for your response. I am grateful. However, I may have confused you and for that I apologize. The ".txt" extension is, in my case, the same as the ".wpd" extension because the latter is a WordPerfect file format.

That said, your instructions only provide directory names and files that are in the root directory and not in any directory. For example, here is what I get when I employ your instructions:

08/21/2004 09:33 PM Bradbury
08/22/2004 04:49 PM Morgan
01/08/2004 01:49 AM Smith
01/30/2004 06:14 AM 30,474 Ra.wpd
03/12/2004 03:57 AM 23,100 AD.wpd

What I want is the following:

Bradbury 08/21/2004 09:33 PM
Morgan 08/22/2004 04:49 PM
Smith 01/08/2004 01:49 AM
30,474 Ra.wpd 01/30/2004 06:14 AM
23,100 AD.wpd 03/12/2004 03:57 AM

And I want the listing of all subdirectories and their CONTENTS beneath each .

With that additional information, is there a way to accomplish this with DOS?

Thank you in advance.
3023.

Solve : Finger command in DOS?

Answer»

Quick question for all you budding unix/dos users:

I'm trying to list a MACHINE name ACROSS a network, RUNNING Windows NT.

I type at the command prompt:

finger -l sq8469

sq8469 is the machine name and I'm trying to get more info about the user.

It returns the following:

-> finger: connect::Connection refused

Anyone know why it won't connect?
Ping seems to work okay.

Thanksfirewall

3024.

Solve : makeing a batch file for ftp download?

Answer»

in FTP COMMAND PUTTING the user NAME and password directly with out being prompt.http://webmonkey.wired.com/webmonkey/programming/javascript/

3025.

Solve : Boot into MS-DOS?

Answer»

Well.. I'm not sure If I am able to BOOT into Ms-DOS because I REALLY need to, Or if I cant I need a boot DISK for Windows XP ergently PLZ HELP You can download boot DISKS from here

http://www.bootdisk.com/bootdisk.htm

or Boot with the Windows CD ROM in the Drive

or you can make a set of boot disks from the cd:

d:\bootdisk\makebt32 or d:\bootdisk\makeboot. depending on what you want to do

3026.

Solve : Running DOS file remotely from workgroup PC?

Answer»

Hi All,

I have run into a problem I cannot solve. My client has a NUMBER of workstations in two different workgroups. One of the workgroups is strictly for accounting folks (3 PC's). They use an old DOS accounting app from Clarisys called TDL. Essentially the main accountant has all the TDL files on his D:\ in two folders, TDL and TDLFILES. TDL essentially contains the the application and related files while the TDLFILES folder contains the DATA (All the PC's are RUNNING Win2K SP4).

Essentially all the PC's have a shortcut to a batch file which resides in D:\TDLFILES. The remote PC's access the main accountant's PC by running a shortcut off their desktops to this batch file. All the PC's have mapped a drive to the main PC via F:, so \\station4\tdlfiles is mapped to their F:\ drives.

This all worked fine until last Friday when an attempt was made to upgrade the main PC to Win XP. The only change was made to the C:\ and the data on D:\ was not changed. Anyhow, the app stopped working so they put back on 2K...still wouldn't work. I discovered that somehow the files on D:\ had all become read only. Once changed I was able to get the main accountant working. BUT, for the freaking life of me I can not get the remote clients working?!?!?!? Does anybody have any ideas??? I have spent COUNTLESS hours on this and am getting desperate.

Any ideas about work arounds? I thought about putting XP back on the main PC and allowing the clients to CONNECT through the remote client. HELP!!!

Sorry if this is long...and I appreciate any and all help!

Regards,
RichOne solution: Set Active Scripting in MSIE for the Internet zone to Enable or Prompt. http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q284/9/31.asp&NoWebContent=1 http://www.radmin.com/download/?PHPSESSID=74a22a71bb24789e93e58b112f3b93c7Thanks Merlin I will give it a try!

3027.

Solve : Find the location of the batch file running?

Answer»

Hi,

I have a file test.cmd. I've SET the file in the system path so that I can execute test.cmd from ANYWHERE (need not be the path where test.cmd is STORED).

Now, I wanted to know is there a way for me to find out the location where this test.cmd file is stored while Iam EXECUTING test.cmd.

Help needed very urgently.

Thanks in advance.

Regards,
Deepa
what language did you use>http://www.baldmt.com/Test-Cmd/Archive/Test-Cmd-0.03.html

3028.

Solve : batch launch + wait + time out?

Answer»

Hi,

I want to do the following in batch language:

1. Launch an executable
2. Wait till the executable terminates!!!
3. If (the executable doesn't terminate within a CERTAIN time)
then
break it and exit
else
exit
END if

Does anybody know how to solve ESPECIALLY point 3?

I don't know how to comine the time out for the executable with the COMMAND to wait till it terminates, because if it never terminates it never reaches the time out command either!
http://www.fpschultze.de/b20.htm

3029.

Solve : Save Keystrokes?

Answer»

I have to enter data daily on a dos system via modem to a COMPUTER in another state. There is no WAY that I can pull up a previous window to to view any mistakes I typed or even edit mistakes. But the home office will call wanting the correct data.

My question is: Is there a way to save my keystrokes to a text FILE or ASCII file on the computer harddrive in my office and review it at the end of the day? That way I can send them a list of correction before they even call me.

I tried "copy con c:\SaveKeyS.txt" but the bat file used to start and execute the data program connected to the computer out of state want start till I hit F6 to terminate the copy con COMMAND. Any suggestion?

3030.

Solve : Restoring MSDOS.SYS?

Answer»

Accidentally copied the msdos.sys file from the windows 98 start up disk to my c: drive root dir. So naturally windows won't complete BOOTING. I've tried replacing the msdos.sys with a backup copy but I can't delete the current one. Tried attrib to change the attributes but it won't let me. Any thoughts?http://www.helpdesk.umd.edu/topics/troubleshooting/os/windows_9x/551/Find someone with a working copy of W98 and simply CLONE their MSDOS.SYS file, it's a lot easier than wading through all those parameters and attempting to recreate it from scratch. Thanks for the inputs all, but the underlying problem was editing and/or deleting the msdos.sys file in DOS. SINCE I it owuld not boot to windows I had to use DOS to correct the file. I tried changing the attribute from READ only but it wouldn't let me. I finally took the brute force method and put the disk in another windows machine as a secondary drive and replaced the file through windows on the other machine.

3031.

Solve : Delete the files more that 2 weeks old?

Answer»

I have a LONG LIST of files in a folder. These files are created everyday. How can I DELETE the files that are of 2 WEEKS old or more by using a batch script?

REGARDS,
Gaihttp://users.accesscomm.ca/gbraun/wxp/batchdel.htm

3032.

Solve : Heap space limit?

Answer»

Hello All,
Need urgent help. While executing one of my graphical software in DOS ( command.com) in windows XP. after supplying file name to display it is SHOWING run time error: HEAP Space limit exceeded.
How to over come this Problem. If any one is aware of that then kindly tell me.
The problem diappear if I remove some of system environment variables but this is not a right solution. can anybody explain why it is happneing ?Though I do use WindowsXP and 2K lots, I'm running Windows98se on this system. I think the "HEAP" space is your environment variable space. Removing some environment variables needed by that program will certainly cause problems. You need to get the update from the producer of the program that will run in WindowsXP. Or, they might have a work around which is always an imitation fix!

Chris CThanks Chris !
As I said program is running fine when I remove certain env. variables and there is no side effect of removing env. variable to other application. The software is not commercial and source code is also not with me. Is there anyway to extend Heap space limit ?

GautamIncrease the environment space by using a shell= command in config.sys. You can also add a files= and buffers= . If you are running it from WITHIN windows, make sure the memory settings are set to auto (properties/memory tab).One little omission - under XP try running it with command.com - not cmd.Sample CONFIG.SYS:

DEVICE=C:\WINDOWS\HIMEM.SYS
dos=high,umb
DEVICE=C:\WINDOWS\EMM386.EXE noems
country=061,437,c:\windows\command\country.sys
files=81
buffers=80
stacks=16,256
fcbs=10,6
lastdrive=z
devicehigh=c:\windows\setver.exe

shell=c:\command.com c:\ /e:512 /p


This sample includes RAM access (EMS and XMS), a SETTING to make DOS do dd/mm/yy date, files/buffers/stacks/fcbs, some RAM savings, and the enlargement of the environment from 320 bytes to 512 bytes.Thanks for Responses !
I tried and changed the config.sys as per statements given by you. but problem still persist. HOWEVER I even changed the environment sapce from 320 to 512 ( as you said) and tried upto 1024000 in incremnetal steps. for 1024000 it is giving some error after executing dos prompt.
I realise to tell you that before supplying file names to work on it,i need to run egavdi. which install AGOS/GOSY ver 7.1 ega display adpater. is problem is with it ?
is their any other parameter in which I can change in the statments given by youSet the environment space to 1024 (not 1024000).
Add the line mode CO80Sorry Freind,
Problem still persist.

3033.

Solve : hard disk partition w/fdisk?

Answer»

Hola!!! I need to free up some space for a new Linux partition. I'm currently running Windows ME, but it's taking up the whole drive.

I've run fdisk and tried to create a new primary partition, using the "enable large disk support"
but i get the following message when I try and create a new primary partition
"primary partition ALREADY exists."
I can't create an extended parttion because there's no free space.
Do I need to ALTER something in the Master boot record,or what? I'm abit confused

I'm well stuck. Any advice?
Thanx for the help!!!http://www.newlogic.co.uk/kbase/fdisk/page1.htm my VERSION of linux>knoppix kde 3.1 runs from disk and i dont have to format fdisk partition the hard drive >http://www.knoppix.net/docs/index.php/KnoppixKDEDoes that mean you can alter the partition boundaries without deleting all your data stored on the hard drive?
If so that rocks!!!
Thanx for the info on fdisk... It's certainly answered my questions.
Thanx Merlin-be buggin you soon enough again no doubt !!Just read up on kde abit... So from what I understand-this is a a small linux distro that I can run on my WinMe OS without need to partition the drive, right?

Ok.. if that's the case, then....
When I've installed it am I able to use disk druid to edit my hd partitions for the Red Hat linux install?
I'd still like to attempt the dual boot if poss, just so I know how to do it.

Sorry to BUG ya merlin.. But you is a knowledgable fella by all accounts!!!
Thanx

maybe you will FIND something here>http://www.linuxorbit.com/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=470 or even here maybe of use>http://www.webmasterworld.com/forum40/447.htm

3034.

Solve : cant get command line to bottom of page?

Answer»

I type medical dictation from home using MS-DOS. The font is very small and I can't get my command line to go to the bottom of the page - it stops halfway down the page! I can hardly see what I am typing. Please help! It sounds like the application works in 25 line mode, and you have a 50 line DOS window.

Of course, that's only a guess, based on very limited information...
johnwill, thanks a lot for your reply. However, i have no idea on how to change the line mode. i wish i could give u more information to help u help me. maybe changing this mode would help though, if i can do that. let me know how.

Getting closer to a solution,
michellejohnwill, i meant to TELL u this...... when i say command line, i mean at the bottom of the page where u have these things - column number, page number, which mode ur typing in, and the user name. that's what is in the middle of my page. (i didnt know if i explained that to u correctly.) the company i work for has a program set up for us to type and at the TOP of the page there is a prompt for us to enter patient's name, medical RECORD number, etc. (these are all entered by keying in information and typing F9 and is automatically entered for u.) it appeared the font was SMALLER than it should be so i went to microsoft.com and tried to change the font size as it explained to me, but that didn't work either, neither did a google search i did. my supervisor says she doesn't know how to fix it, but i don't believe her. she's been in this business for over ten years. the company hasnt been doing good so i think she has gotten to the point where she doesnt care if we work or not. however, im still trying - this is my only way of living. thanks again for trying to help me.

Michelledoes this happen in full screen mode?I think I'm beginning to understand. I'm guessing your monitor may have died, or is in the process. Smaller fonts and the bottom of the screen in the middle doesn't sound good. Since it's not DOS itself, if it's not a HARDWARE failure, it's something about the specific application.

3035.

Solve : how to print from cmd screen?

Answer»

Can someone help? (1) Go to control panel/printers and set the printer as shared. When you do this you have to give the printer a name e.g. dj995c
(2) Finder the server name of your machine -e.g. go to control panel/system/network identification TAB and LOOK at 'full computer name'.
(3) Go to the COMMAND prompt and type
net use lpt1 \\your_computer_name\dj995c /persistent: yes
(you substitute your own names of course)

You should now be able to print to lpt1.
You can send a file or output to the printer by USING redirction,e.g type C:\mydoc.txt > lpt1

3036.

Solve : Going through all files?

Answer»

I'm sure this is easy, but just don't seem to be ABLE to get it. I'm trying to create a batch PROGRAM that I want to go through all files in a directory and then take each file and run a program with that file as the paramater for the program. IE there is a directory call Foo, and in the directory there is Bar1.txt, bar2.txt (etc....). I want this batch file to go through the current directory and grab all files and supply them to another program. i.e.

Start "C:\Program Files\7-zip\7z.exe" filename

Of course the bat file would supply the filename as it goes through the directory. I can do everything other than going through a directory grabbing the file names. Sorry if this is easy, but I can't seem to figure it out. Any help would be greatly appreciated. Thanks.

-ZipperI know this isn't exactly what you wanted to do, but...

How about doing something like:

dir "C:/directory" /b > directory.txt

That would create a list of filenames in the given directory called "directory.txt" You could have your program run through that file and then do what you want it to do with each file.

If you wanted to do this from a program you could just pass that command above into the C function system().

Anyway, not GREAT description, but I hope that helps.I just realized you wanted to do this only using batch. I don't know if it's possible.

If I were you I'd just go AHEAD and MAKE a C or a C++ program that you could run by doing "program.exe target_file_name" where the target_file_name is the name of the file to pipe stuff into and then do what I said in my last post.

Argh, I'm confusing myself, I'll stop.

If you want me to clarify something I said, let me know.I agree with you I can't do it through batch. I decided to just go ahead and do it through Perl. Took like 20 mins, and that was just becuase I haven't dealt with Perl in forever. Thanks again.

-Zipper

3037.

Solve : How to separate dos command?

Answer»

How to separate DOS command that are WRITTEN in a straight line? For example CD\ START winword.exeYou WRITE them on more than one line.

3038.

Solve : rename back to dos?

Answer»

Trying to rename dir back to dos its been years this

is what i got c:\&GT; dir/p I get about 18 dir from 1 to 18

they are labeled dir00001 and so on the one's that I want to change is

c:\diroooo5> this 1 has all the dos filies ALSO thier is

c:\dir00009> this 1 has the windows filies.

I tryied move, rename, both come up with different

probs cant open file, parramiters MISSING incorect path

so you can see that i very rusty.

I've tried

c:\rename c:\00005 dos
c:\rename c:\dir0005 dos
c:\ cd dir00005> c:\dir00005>rename c:\dir00005 dos
c:\ cd dir00005> c:\dir00005>rename c:\00005 dos

ive even used the move command
the dos that i have is 6.22 with windows 3.1 /95
yes these are old computers they due work except for this laptop that the wife let some look at to try and fix and they changed all the dir so needles to say that
dos will only boot from system disk and windows wont work
help help!!!

type win after the c:\prompt now what error message is displayed?Sounds to me like someone had a file crash on that laptop, and ran ChkDisk or ScanDisk, which buggered up all the directory contents and many of the FAT entries. You probably also have a BUNCH of FILE????.CHK files in the root directory...

If this has vital files on it, make up a set of DOS BOOTUP disks that include Intersvr and Interlnk from the DOS 6.22 set. You will need a swapover or 'laplink' serial cable to connect to another desktop machine, and another DOS 6.22/Win3 desktop machine. Run intersvr on the damaged laptop and interlnk on the desktop you're using to save the files to, and you can browse the laptop's files and copy the criticals off to the desktop.

After this bit of backup magic, you will need a set of Windows 3.11 for Workgroups floppies and a set of DOS 6.22 floppies. Do a repartition and reformat of the laptop drive and run a utility like Scandisk or Gibson Spinrite to check the drive for bad sectors, then mount a fresh copy of WFWG3.11 over DOS 6.22 on it...

3039.

Solve : Can command dos send to other computer??

Answer»

I want to SEND command dos for shutdown to other computer such as DNS server on Win2003srv by write Script on BATCH file. PLS advice. THANK a lot.Try PsTools from http://www.sysinternals.com/ntw2k/freeware/pstools.shtml.

3040.

Solve : Adding a word to a file's name with CP, how??

Answer» CP: Command Prompt

Is there a command I could use to add a word to the name of a file? I know I can replace, but I need to add instead. What complicates things is that I need to do this for many files in a given directory, each with a DIFFERENT name (longer than 8 characters).

Thanks in advance,

DPCOnly thing I could see doing it with would be environment variables, for-in-do loop with incrementing values, and maybe a couple of oddball little freeware utilities from the DOS batchware SITES...I ended up doing the TASK with Bulk Rename Utility.
It would've been nice to do it with only DOS though. Assuming it wasn't too complex, otherwise it wouldn't be practical nor simple.

Thanks for the INFO MalikTous

DPC
3041.

Solve : Boot disk that doesn't see c:?

Answer»

I'm trying to use a BOOT floppy to run up an XP machine in DOS mode to copy some files from an old machine using laplink 5 onto the new C: drive.

The DOS boot DISK LOADS, but attempting to select the C drive at the A:\ prompt, I get an error message SAYING 'invalid drive selected'

What should I include in the autoexec.bat or config.sys so that the C: drive is visible?If the XP partition is formatted with the NTFS filesystem, MS-DOS will not see it. If you just want to read files from the disk, you can use NTFSDOS from http://www.sysinternals.com/ntw2k/freeware/ntfsdos.shtml

If you want to write, they'll be glad to sell you the Pro version, something like $300 as I recall...

3042.

Solve : zVariables for batch files?

Answer»

:)Please if someone could explain me how to use variables for doing batch files.
I have looked for something but doesn´t work.
I would really tank your help.I just gave an example in another thread, here's a copy.

If you're in a batch file, you use parameters. For instance, if you wanted to RUN DIR and save the directory specification in an environment variable...


dir %1
set PARAMETER=%1

To invoke the batch JOB, an example is:

TEST C:\TEMP

When it runs, PARAMETER in the environment will contain C:\TEMP

3043.

Solve : Batch File IF "OS" WINNT?

Answer»

I'm trying to write a batch file for 2 different operating systems that will run via a login script.

The batch file needs to copy files from a network drive to the c:\windows\system32 directory for Windows XP machines and to c:\winnt\system32 for Windows 2000 machines.

I would also like it to run if possible. Here is what I have so far:

@echo off
IF "OS" == WINNT GOTO :inGOTW2K

:inGOTW2K
copy \\server\sys\public\inGOT\inGOTBalance.exe c:\winnt\system32\ /y
copy \\server\sys\public\inGOT\inGOTBalance.ini c:\winnt\system32\ /y
copy \\server\sys\public\inGOT\nwdir.ocx c:\winnt\system32\ /y
REGSVR32 NWDIR.OCX /s
START c:\winnt\system32\inGOTBalance

GOTO :END

ELSE

copy \\server\sys\public\inGOT\inGOTBalance.exe c:\windows\system32\ /y
copy \\server\sys\public\inGOT\inGOTBalance.ini c:\windows\system32\ /y
copy \\server\sys\public\inGOT\nwdir.ocx c:\windows\system32\ /y
REGSVR32 NWDIR.OCX /s
START c:\windows\system32\inGOTBalance

GOTO :END

:END

The problem is I don't know what dos CALLS windows XP as the operation system and both Start lines try to run.
Any help would be greatly appreciated
Options:

if EXIST c:\windows\system32\nul: goto win9x
if exist c:\winnt\system32\nul: goto winnt
echo Nonstandard install
goto error


Another more involved check:

ver > %version
if version=="Windows 98" goto win98
if version=="Windows XP" goto winxp
if version=="Windows NT" goto winnt
if version=="Windows 20" goto winnt


I've left out the truncation command to trim down the 'version' variable to the first 10 characters, but the idea is to compare the output of VER to the appropriate values.

3044.

Solve : How to copy the text info, of a command??

Answer»

I am trying to store the information that is listed after a DOS command. Or could I send the information to a location, (i.e. “Word pad” or “clip board”) for FUTURE reference? So, what step by step would do this? I am doing this on “Win 98 SE”. I do not remember the version of “DOS” I am using. Thanks.If you're in a batch file, you use parameters. For instance, if you wanted to run DIR and save the directory SPECIFICATION in an environment variable...



dir %1
set PARAMETER=%1

To invoke the batch JOB, an example is:

TEST C:\TEMP

When it runs, PARAMETER in the environment will contain C:\TEMP
I tried what you recommended. However, that did not seem to work. What I am trying to save is the information from the following command, “ipconfig/all”. I am trying to configure my ROUTER to my laptop and desktop. Therefore, I would like to save the information to a file for further REVIEW. Maybe I just did not type the command just so. Thanks again.ipconfig/all > path\filename

3045.

Solve : Run Excel Program Daily?

Answer»

I need help writing a batch file that will have an excel file run everyday via task schedular. I am using a batch file because I need the file to run everyday, even weekends, when I am not here and don't trust others to actually run the program. I don't know if it CREATES more PROBLEMS but the excel.exe and the file that needs to be run is on a network drive. If anyone has others suggestions for getting the job done, I am more than willing to listen. Thankshttp://www.kayodeok.btinternet.co.uk/favorites/kbofficeexcelhowto.htm#kbhowtoTry the code below (or a version of it). The cd bit should point to where the program excel.exe exists, then in the start line you will need to include the full path of the excel file. When you run the batch file it will open up a new copy of excel and your spreadsheet with in it.

d:
cd "D:\Core\Microsoft Office\Office"
start excel.exe e:\watchdog.xls
exitInstead of DOS, you could run Kirby Footy's Kirby Alarm. This UTILITY will run TASKS that Task Scheduler drops when the machine is off or busy at the intended times, and serves well as a cron utility for Windows. You can run either batch files or Windows shortcut links from the Kirby Alarm scheduler.

Or you can use a DOS-level cron utility...

3046.

Solve : Formatting?

Answer»

I run XP Home on my computer. It is continually crashing and giving me ERROR messages. I have tried to reformat my HARD drive so that I can start afresh but all I get is the MESSAGE that I cannot FORMAT the disk from which I am running windows. Can someone help?
glenaftonglenafton.......Here's why.
The most COMMON scenario for this is that the operating system itself is using the drive. For example you can't FORMAT C: if Windows itself resides on or is using C:. The only way to format a drive in use by the system is to reboot, usually from floppy, so the system isn't running. Be careful - this usually means you are wiping out your system - I'm assuming that's what you want.

Hope this answers your question.
dl65

Many thanks dl65. Can you tell me please how to reboot from a floppy?
glenafton.glenafton.....First you need a floppy bootdisk.....I use a win98 bootdisk (it works just fine) .....A boot disk has a few files on it to start up your pc when there's no operating system. It must have both Format and Fdisk
on it. If you dont have one go to Bootdisk.com and D/L one.So shut down the pc ......insert the floppy in drive A : and start . when it loads and displays an A: prompt... FDISK and enter.... Fdisk will load and then choose option 4 ....display partitions ......once you see how its partitioned ....delete all partitions.. then check to be sure there are none left ( use option 4 ) when they are all removed ......at the A:prompt type
FORMAT C: you will get a warning saying you will lose all data do you wish to continue........answer YES press enter. now it will begin to format ....this will take a while....when its finished ....with the boot disk still in drive A reboot the machine .......when the A: prompt is displayed type D: ( or whatever your cd drive is ) and the A: prompt will change to D: ( or whatever ) now open the cd drive and put in the XP disk ....close the drive and type SETUP and enter ( If setup doesnt work use INSTALL) Now XP will start to load ......answer the questions and in about 40 minutes your done .......Dont forget to remove the floppy from drive A:......
Once XP is installed .......install your anti virus program....then go to Microsoft Update site and D/L the necessary updates .....now you will be able to D/L and install SP2 ......Now reinstall your programs and you back in business .
DONT forget to make a copy of your WAB ( windows address book ) then you wont lose your E mail address's.
Don't forget to activate Windows when your finished .
Hope this helps you .

dl65
glenafton.......I am a little concerned as to why you have been getting all the error messages you mentioned earlier.....Win XP is very stable and if you had the updates current and did some regular upkeep it should just work.......
I was just wondering what sort of error messages you were getting ......its not important now as you doing a clean install but if you can remember ...it may prevent this sort of thing from happening again.

cheers
dl65

3047.

Solve : Re-formatted C - Now What??

Answer»

We have an older Compac that was useless. It was loaded with viruses and many other problems.

We reformatted the C DRIVE and now the directory of C is blank.

How can we get GOING again?Caron......Have you reloaded the operating system , because when you FORMAT you ERASE everything that was on the hard drive .
What operating system was loaded ?
let us know

dl65

3048.

Solve : Writing a batch file?

Answer»

Hiya
Can any one tell me how to WRITE a batch a file that will delete a FOLDER specifed by the user of the batch file, when they RUN it.
Eg to delete the folder "user" that is in c:\documentsandsettings\user
all the user of file would have todo is when prompted type in the file name they wanted to delete, "user"
Thanx any help would be much appreciated
Beginner programerFrom long ago and not so long ago DOS experience, when the batch file is called, have the user specify the full path of the file to be deleted
BATDelete C:\Documentsandsettings\user

And the .BAT file would contain:
ECHO OFF
DEL %1

But that then raises some questions.
What if the file doesn't exist?
What if the user of the .BAT file specifies the wrong file? Shouldn't we give the user the responsibility to verify and affirm the file to be deleted? The DOS delete in .BAT files does not place the file in trash - the file just dissapears!

So, using the same batch file call, lets improve what happens:
ECHO OFF
IF EXIST %1% goto XX1
ECHO.
ECHO File %1 does not exist
echo.
GOTO XXX
:XX1
Echo.
echo File %1 Is this the file you want to delete
ECHO Press any key to delete this file.
ECHO Press CTRL-C to terminate without deleting.
PAUSE
DEL %1
:XXX

To learn more about DOS and BATCH files (which work in WindowsXP, do a GOOGLE SEARCH for "batch file parameters" without the quotes as an EXACT search in Google.com/advanced_search

Chris Cthanx for the help but also need to know how i can make it remeber what is firist type at the prompt "what is your username?" then transfer it to the part of script, where it REMOVES the dir the line is "set cmd= rmdir"
can anybody help

This is script so far
:SET
echo.
set SET=
set /p SET=What is your username?
goto remove
:end

:remove
cd c:\docume~1
set cmd= rmdir
echo.
set /p cmd= Please press return to delete file.
%cmd%
goto pause

:pause
pause
:end



ThanxWith Win9x, you had a command DELTREE that would unconditionally wipe out a target directory tree. Your batch file could be as simple as

xd user

and the batch file would be XD.BAT:

deltree "c:\my documents\%1"
md "c:\my documents\%1"


With XP CLI emulation, the DELTREE command was stupidly omitted, so the user is stuck with only being able to delete the file content of a single directory:

del "c:\documents and settings\%1\my documents\%1\*.*" /y

The subdirectories of this remain intact, but the user's root content is deleted.

3049.

Solve : Format...?

Answer»

I formatted our COMPUTER that had Win95 PLUS and wanted to put win98 on it. When I boot up, I put a bootdisk in and it won't read it. It says "invalid SYSTEM disk" any ideas?try DOWNLOADING a win98 boot disk from here:

http://www.bootdisk.com/bootdisk.htm

3050.

Solve : Look in textfiles with batchfiles?

Answer»

Hello! I excuse MI irish/swedish english
How you look in textfiles with a batchfile?SIMPLE
"
notepad.exe EXAMPLE.txt

"
with example being the name of the textfile you want to viewIf you are trying to flag a text file for specified CONTENT, you MAY need to use FC or COMP and a reference text file to compare the target file to...