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.

451.

Solve : Create a text file in a folder?

Answer»

Hi,

 I want to create a blank TEXT file in a folder with a dos command, can anyone help me on this.

Regards,
Rajeev Prabhu
In the RUN box, or at the DOS prompt, type edit. If you desire a blank file, simply save it with an emtpy document. It's POSSIBLE to use edit with the KEYBOARD (use ALT to access menu) or with a mouse if you get DOS mouse drivers.

I can't remember the specific command to create a new file but this should work well enough.Easy way:

In a DOS box,

copy con: textfile.txt
Ctrl-Z


The file 'textfile.txt' in the current directory is an empty text file.

452.

Solve : To find command 'date' to using in batch file?

Answer»

I make a batch file to set text change follow with the day now.

My command is example like this

if 'day'='sun' then goto sunday
if 'day'='mon' then goto monday

:sunday
Today is Sunday
goto end

:monday
Today is Monday
goto end


'day' is command for variable and 'sun' is RESULT from command 'day' refer to that day.

anybody can help me what command can be use for 'day' and get result from command 'day' in batch file. i wrote a program once in clipper to do this but you have the problem of leap years!

:-/i tried something else


echo. |date >date
copy log+date

you need to make an empty text file called log
  (no extension)

the bat file will contain the day  in format Cll
(capital, LOWER,lower)
you will need a STRING search command LOOP as in your question
you will need to have a dummy log file which will contain
 no bytes and copy that file to log to insure that it is blank
for the NEXT time

453.

Solve : Force system to reboot from CDROM?

Answer»

How do i REBOOT from CDROM while in DOS if for some reason i cannot change BIOS whose reboot sequence is floppy/harddrive/cdrom..Look in BIOS settings. Do you have a floppy bootdisk you could use?I cannot change the settings set by the vendor in BIOS.

I found the ANSWER:
                     
                 C:\ D:\ I386\WINNT


THanks

454.

Solve : how to set a mask of folders name?

Answer»

Hello all.
I want copy some file(s) to folders. And I don't know how to SET mask of folders. I'm toking about .bat files
I want something as: copy t1.txt + t2.txt d:\folders\A??\
but this don't WORK. Do you know how? - TELL me please.
Thanks everybody.if by a mask you mean filenames wwith the same extension

you could do this on SEPARATE lines

copy *.ex1   C:\[dir1]
copy *.ex2   c:\[dir2]

is this what you want to do ?
:-*

455.

Solve : Batch File on XP?

Answer»

In XP the batch file ends with .NT

if i want a program to START up when windows starts up, do i edit autoexec.nt?

Can i get my batch file to ENTER a username and PASSWORD to an application if it is run from the batch file?

Thanks for any helphttp://www.robvanderwoude.com/index.html

http://www.windowsitpro.com/Article/ArticleID/25490/25490.html  read more...

456.

Solve : first line of batch file runs repeatedly???

Answer»

I have a batch file containing 3 lines.  If I run these commands  individually from the command prompt they work fine.  When I try to run it in the batch file the command window just shows the first line over and over....and doesn't even executed the command.

Any ideas?

commands in batch file:

schtasks /CREATE /ru cafcashier01 /RP cashier /SC weekly /d SUN /TN defrag /TR """"c:\documents and settings\all users\desktop\horizon\autodefrag.exe"""" /ST 04:00:00

schtasks /create /ru cafcashier01 /rp cashier /SC weekly /d SAT /TN reboot /TR """"c:\documents and settings\all users\desktop\horizon\reboot.vbs"""" /ST 04:00:00

schtasks /create /ru cafcashier01 /rp cashier /SC daily /TN deletelogs /TR """"c:\documents and settings\all users\desktop\horizon\deleteold.vbs"""" /ST 22:00:00Your batch file is called schtasks.bat ? Then change the file name.I've tried that.

It turns out the PROBLEM has SOMETHING to do w/ notepad.  If I create and edit this file only in MS-DOS text editor, it works fine.

If I save it in notepad it starts doing this?!What do you save it as in notepad? Select save as all files and type .bat at the end.

457.

Solve : DOS BASICS?

Answer»

what is .: in PATH command?
what is difference between path and SET path?
by set path the path set is temporay or permanent?I hope this BOARD isn't GETTING as laggy as Gaia...

Duplicate thread POST.

458.

Solve : WHAT DOES INPUT RUN_TIME MODULE PATH MEAN??

Answer»

THIS MESSAGE APPEARS WHEN I TRY TO LOOK AT CERTAIN FILES IN DOS FROM A:\ DRIVE, PLEASE HELP

borland/pascal........what file what o/s......is this lynx

459.

Solve : How to search string using a batch file?

Answer»

How do you SEARCH and replace a particular string in a couple of INF's using a batch file GIVEN the location where the INF's are storedit seems to me that you are stepping into a dangerous zone by using a batch file to search and replace.

suppose the string you are looking to replace resides in an unrelated file and that is also replaces.  are you not better off to use the search for text command in the directory you WANT to explore and then use a text editor?it isnt very dangerous actually! I do it all the time

all you need to know is :

SET asdf=asdf

set asdf=%asdf:df=34%

echo %asdf%

(now asdf = as34)

the string after the : gets replaced with what ever is after the second equals sign
HOPE it helped
  great  file

what does the adsf stand for?Where do you put the file name?

460.

Solve : dos basic?

Answer»

what is .; in path command?
what is DIFFERENCE between path and set path?
by set path the path set is temporay or permanent?. = current directory
path outputs your current path
set path  is a little more complex. See set /?path ; clears the path VARIABLE. I USE this at the beginning of AUTOEXEC.BAT to minimise the RAM used by things (like DOS sound drivers, DLCHLP32, IFSHLP, and other things that don't really need a PATH in their COPY of the environment to run. I set the PATH SEPARATELY near the end of AUTOEXEC.BAT.

path . loads the current directory as the path. path %path%;. adds the current directory path to the PATH variable. path just displays your current PATH variable.

461.

Solve : dos to open in windows?

Answer»

Computer is STARTING up in DOS mode, how do I get it to open in the window mode?Type WIN and the command prompt.

Althogh WIN does load Windows, there must be something wrong if it does not load automatically. What OS is this?c:
cd\
attrib -r -H -s \msdos.sys
edit \msdos.sys


The BootGUI LINE should read

BootGUI=1

If not, change it, SAVE, exit EDIT, and restart. You should come up in Windows.

462.

Solve : GETTING TO A FOLDER IN DOS?

Answer»

I'm trying to get to a folder on my COMPUTER via MS-DOS Command Prompt as I am trying to use a game cheat and that is the only way to do it. How do I get to this folder in command prompt so I can excecute the cheat?At the command prompt type the PATH of the folder/file you want and HIT Enter.  e.g.

c:\mydocu~1\username\games\cheatme.exe

use cd and cd\ and dir to get around

For example,

dir what's in the current directory
dir/p displayes in several pages, for when you have lots of files
cd windows takes you to the windows folder, if it's at your current directory. However if you're in say your documents folder, you will need to use cd\ to "backup"

Once you've found the file enter its name

For example

cheat.exe

Also note that in DOS, you need to obey a special naming rule. Directorys can have 8 letters max and files 8 letters plus 3 for extantion. No spaces. For example, to get to program files from c:, you type

cd progra~1 the ~1 means that extra letters were REMOVED. It will usually be ~1, sometimes other numbers.

To change drivers, type x: eg a: for floppy.

Hope this helps. For most commands you can add /? for help.

cd /?i created a folder to put in various exe and bat files, called newdir

i added that folder to my autoexec.bat file's path

(another way is to type
    path >rp.bat
   then edit the  rp.bat by adding   the path of your newdir)
when you want to use this path only on occassion
type and enter rp
[make sure the rp.bat is in a directory normally activated ]


then SIMPLY go to the place where you want to execute your cheat command and type whatever it is you need to activate it (probably cheat)

You could try replacing the game's shortcut with a batch file that loads the cheat, then runs the program.

463.

Solve : Deleting a line in text file?

Answer»

Hi, i am TRYING to delete several lines from a text file. how to do in DOS?
thanks
you might WANT to use a string LOOP.
is the string the same in all the text files

are you sure the string is only in the text files you need to fix
edit file.xxx
try that

464.

Solve : Command question?

Answer»

What is the difference between

IF EXIST %1 and IF X == X%1 ?


I understand that the IF command will Execute a command if a condition or set of conditions is true
if exist [d:][PATH]filename.ext   command

if  string1==string2  command

465.

Solve : How do find the filename of a BAT file??

Answer»

How do you find out the file name of a BAT file that is running? NOTE: MUST WORK ON WINDOWS 98/2000/XP!what do you MEAN running?

running under windows, dos, where how what???I am running it under Windows.this will be a long involved process maybe if the list of batch files on your computer is extensive but if you are adamant enough, this will work.

it would help if you know what the batch is doing

i go to DOS ...cd\
then you are at the root..(unless you have a partition with another drive)

type and enter

dir  *.bat /s/b >allbats

this will give you a text file without the txt extension
  called allbats that contain the list of all the batch files on your computer

if your text editor or wordprocessor does not let you read  the file, rename it       RN ALLBATS  ALLBATS.TXT
then open the file in your text reader (could even use notepad)

print out the list . go to the suspected directory and type and enter the name of the batch file   .  

try it for each one.

there is a strong possibility it is in your autoexec file if it is running at the OPENING of a session.

it would help the respondents of this forum if you were more specific as to what happens and when it happens

as i said in the beginning , this will work for you but it is clunky.  i IMAGINE you want a magic button that you can press to see what is causing the current screen to have been enacted. i do not hink that exists or else we would be ABLE to see the virus that causes much misery to we plain folks.
If you made that bat, then add one line with:
echo %0 >>name.txt
on your bat file.
This will append the name of your running bat (without .bat extension) in the "name.txt" file.
If you want to see what programs are running, then you have multiple options. One is that specified by franksimari. Tell us if you solved your problem (and how )

466.

Solve : Problem with large text file?

Answer»

I have a very large text file, too large to use the DOS editor.  I would LIKE to see the bottom hundred or so records.  The type comand will scroll forever.  Is ther anyway to view or select off records from the bottom of a file?  Anything SIMILIAR to the tail command in UNIX?type file.txt | more will allow the MORE utility to display a page at a time.

You might also be able to find a text edittor without the limitations of EDLIN or BASIC/DOS EDIT. There used to be a bunch of them out there, like Tiny Edittor (TED), and you also could get them in the OLD Central Point PCTOOLS and Norton System Tools packages. Try SOLID OAK Software...dir/?if you have MS WORD

open it in there and scroll down

467.

Solve : edit my batch file?

Answer»

hi there this is my first time on here

I do have a question on a batch file if you do not mind.

I am creating this batch file below:

1.      Create a batch file, Micr.bat, which will accomplish the following:
a.      Update a log file on your C:\root folder. Call this log file cleanup.log. Each time your batch file is run it should over-write this log file which contains the User Name (utilizing the %USERPROFILE% environmental variable),
b.      MERGE this file onto the back-end of the file cleanup.hst which will also be stored in the C:\ root folder.
c.      List the directory contents of this TEMP folder.
d.      Ask for the user’s permission to proceed with the deletion of all these FILES.
e.      If the user responds positively, then delete all the files from the user’s TEMP file.
f.      Remember to copy the textbook’s REPLY.COM to the folder containing your batch file.
g.      Place this batch file in the C:\BatchFiles folder.


This is what I have come up with:

ECHO off
rem (BAT)
rem (EVA)
rem (dec 2 2004)

FOR %%a IN (%USERS%) DO IF "%1"=="%%a" GOTO OKAY
:NO
ECHO YOU, %1, are NOT allowed in the system.
GOTO END
:OKAY
ECHO Welcome %1 to the system.
:END
c:\setup.exe /L2 c:\Logfiles\cleanup.log
c:\ move cleanup.log a:\cleanup.hst
c:\ dir /TEMP
REM This Batch program deletes all files in the TEMP folder in the current folder.
REM I will give the user to react and abort this process.
ECHO OFF
ECHO WARNING: Going to delete all files in the temp folder
ECHO Press CTRL+C to abort or simply press a key to continue.
PAUSE
DEL TEMP *.*      
c:\ copy REPLY.com C:\EVA
IF %1==Eva GOTO EVA
Echo Is anyone there?
GOTO FINISH
:end

Can you please tell me if i am on the correct track?

i can help you with some of this.

try it first, of course with two small  files,  filea and fileb

if you use the copy command
copy filea+fileb     you will get a screen prompt which asks if you want to OVERWRITE etc. i do not know how to get around that but in the earlier dos environments, that was not asked. at any rate fileb will be attached to filea so that the resulting filea will have the original filea trailed by fileb within it.

i would not use del *.* as it will also ask for a confirmation, but RATHER know the file name you wish to delete or use wildcards if they all begin with the same letter or letter. that way you will not get the confirmation request.

start with these ideas and build your batch. respond if this is not part of what you want to do

468.

Solve : repair unreadable segments??

Answer»

My computer makes funny sounds (clack clack clack) as it gets stuck on things.  Thought it was virus (no), program conflict (no).  I wiped the hard drive and started again.  It looked good for a day but then started again.  Finally message CAME up FILE C:\ is corrupt and unreadable.  Run CHKDSK.  Now when I boot up CHKDSK does run.  It says: SEGMENTS 11108-11120 are unreadable and tries to fix things but it is never fixed.  Can I repair?STOP!  Hard drive is about to die.  Make copies of all your important files now.You personally... I DOUBT. You need special equipment. Your hard-drive does have GUARANTEE? If not, prepare for buying a new one.
You can try to repair your actual hard-disk drive (at a specialised centre), but this will cost you enough. If your hard-disk is still guaranteed, back-up everything and go with it to service (back-up on something else).back it up!! you are going to crash...we all do sometime!

469.

Solve : Help ME to create this batch file?

Answer»

How do I create a batch file to delete recent files in
"C:\WINDOWS\Application Data\Microsoft\Office\Recent" in Windows 98 .   Can anyone help me pls?Try this first. Right click a BLANK SPACE on the task bar. Select properties. Click the start menu tab. Click the clear button. Click OK.

If that doesn't do the trick, post again.Yea I tried, but only entries in "Find:All files" gets deleted".  Sorry, I forgot to mention; its in Microsoft Word 2000 and I am running Windows 98.
I created a batch file for deleting temporary files, cookies, history and I wanted to create to delete files in
C:\WINDOWS\Application Data\Microsoft\Office\Recent.  I wanted to create a batch file for this so that i don't want to go manually deleting only this.

Thanks.cd  "C:\WINDOWS\Application Data\Microsoft\Office\Recent"
del *.*

Add these lines to your batch file. Be sure to enclose the path in quotation marks.Thanks for ur information.  Go it!  

hi there this is my first time on here and I see no way to post a question for batch help.

I do have a question on a batch file if you do not mind.

I am creating this batch file below:

1.      Create a batch file, Micr.bat, which will accomplish the following:
a.      Update a log file on your C:\root folder. Call this log file cleanup.log. Each time your batch file is run it should over-write this log file which contains the User Name (utilizing the %USERPROFILE% environmental variable),
b.      Merge this file onto the back-end of the file cleanup.hst which will also be stored in the C:\ root folder.
c.      LIST the directory contents of this TEMP folder.
d.      Ask for the user’s permission to proceed with the deletion of all these files.
e.      If the user responds positively, then delete all the files from the user’s TEMP file.
f.      Remember to copy the textbook’s REPLY.COM to the folder containing your batch file.
g.      Place this batch file in the C:\BatchFiles folder.


This is what I have come up with:

echo off
rem (BAT)
rem (EVA)
rem (dec 2 2004)

FOR %%a IN (%USERS%) DO IF "%1"=="%%a" GOTO OKAY
:NO
ECHO YOU, %1, are NOT allowed in the system.
GOTO END
:OKAY
ECHO Welcome %1 to the system.
:END
c:\setup.exe /L2 c:\Logfiles\cleanup.log
c:\ move cleanup.log a:\cleanup.hst
c:\ dir /TEMP
REM This Batch program deletes all files in the TEMP folder in the current folder.
REM I will give the user to react and abort this process.
ECHO OFF
ECHO WARNING: Going to delete all files in the temp folder
ECHO Press CTRL+C to abort or SIMPLY press a key to continue.
PAUSE
DEL TEMP *.*      
c:\ copy REPLY.com C:\EVA
IF %1==Eva GOTO EVA
Echo Is anyone there?
GOTO FINISH
:end

Can you please tell me if i am on the correct track?

and how do i post to this forum? thanksInstead of:
c:\ move cleanup.log a:\cleanup.hst  

I recommend you:
copy c:\Logfiles\cleanup.log+c:\cleanup.hst c:\cleanup.hst

Or, if it's a text file you can use also:
type c:\logfiles\cleanup.log >>c:\cleanup.hst
(but that if only I understand you GOOD; I quote you: "Merge this file onto the back-end of the file cleanup.hst which will also be stored in the C:\ root folder. ")

Except small mistakes like "/" instead of "\" or missing "\",  your idea it's very good.

470.

Solve : Printers and Dos?

Answer»

I need help in printing from a DOS program.  My old printer broke down, can't be fixed.  I'm wondering if anyone knows if any of the newer Canon PRINTERS, either the i350, i455, i475, can print from a Dos program.   I have Windows 98, but the program, in dos, won't WORK in Windows.  Please help.  I know the printer has to have a PARALLEL port.

ThanksMost printers COME with DOS drivers.  See if the Canon printers do.

471.

Solve : Increment file names of copied file?

Answer»

I am not a programmer, but needed to perform some simple move and copy functions to manage our EDI files.  In one STEP, MULTIPLE incoming Purchase Order files are batched into one file, say inbound.edi, which is sent to our ERP system for PROCESSING.  Since this file will be overwritten the next time we pick up new files, I would LIKE to copy the file to a backup directory.  Obviously, I can't keep a copy of each unless their filename is somehow changed or appended incrementally.  Is there a command to increment the file name during a copy so each copy is uniquely named in the new directory?  (Similar to date-time stamp question, but does not necessarily have to be date-time stamp - could just be sequential numbering).
THANK YOU! - Briantry this..it may be clunky and depending on the size of your files
make a dummy file called   dumm
then add your first file , firstf to dumm by

copy   dumm+firstf

i do  not how to get rid of the copy (y/n/etc) but in earlier versions of dos the question does not appear

it will add to dumm

the next  time  you can add secondf

or it can still be called firstf (in case you are spooling out the directions to someone else)

you use
copy  dumm+ secondf



and dumm will have both firstf and secondf

the only other way i know how to do this is a simple routine using dbase or clipper


I can't see other SOLUTION than a small program... In C, in Java, but you have to talk to someone to help you with that. It's easy to do. I don't know to do that using Windows command line tools.

472.

Solve : rename file extension to original from "open?

Answer»

I am helping someone retrieve "lost" files from an MS-DOS based database.  It turns out the files are not lost (whoo-hoo!), but they are not in the same folder as the DOS-based program (which is on the same computer, and DOES have files in different DIRECTORIES that I can see).

So the files I need to put back into the working database are on the c drive.  (OS is Windows XP).

My problem is that I tried to open the "unrecognozable" file in Wordpad (to see what I was looking at).  It didn't open, but now this file and about 6 others have a WordPad icon.  How do I switch the file extension back to the original "unrecognizable" extension so that I'm back at what I started with?  (BTW, the files that changed have/had extension .cml)

Any help appreciated!

T-what dos based database is involved?

if you have access to the program(yourbase.exe) create a file in it and see what the outcome data extends ito  

is it dat, dbf, etc.

i MIGHT be able to help you then.The quickest and easiest way to reassociate the files is to locate one of the files (search or windows explorer). Hold down the shift key and right CLICK. From the menu select "open with". It will bring the file open box. Scroll to the data base's exe file. Click to hightlight it. Now check the box "ALWAYS open with". Those files should now open in the data base.

473.

Solve : How many files in a directory??

Answer»

Hi all, I had a simple batch issue that I'm not SURE how to resolve. I need to know how many files are in a directory, from within a batch file. How can I get/extract that #?

Many thanks,
John
put this batch into your path
then execute the batch in each directory

dir . >junk
type junk


look at the last line or two

you will need to SUBTRACT 2 as the . and .. files are INCLUDED. A little easier.

echo off
echo %1 contains
echo.
dir%1 | find "file(s)"
dir%1 | find "dir(s)"

Save it as a .bat file. I named mine howmany.bat and put it in the windows directory. At a DOS prompt, typing howmany will show the files and directories for the current directory. Typing howmany "\program files" would give the info for program files. Howmany \  would give the info for the root directory. You can use any complete directory path as the PARAMETER but  should enclose in " ". Can also be USED from start/run by including the path parameter.

474.

Solve : Exit MSdos Java?

Answer»

I am wondering if anyone could TELL me why Dos GIVES me a error MESSAGE about exiting after i run a java application in it. How do you make it exit PROPERLY?

THANX
it depends.

sometime you have to x out

i type exit

475.

Solve : batch file using %1\Nul?

Answer»

::)

I am CREATING this batch file:

When you key in SWAP2 dirname filename1 filename2, the file
names will be reversed in a specific directory.
The batch file will CHANGE to the specified directory
prior to performing the “swap.”

would this be correct format command?

cls
dir A:\ /a:-d /o:nr /b
pause

One of the items you wish to test for is the existence of a directory.
(Hint: Remember %1\Nul.) If you key in a subdirectory name where
a file name is expected, the batch file should take you to
a message that tells you that you keyed in a directory name,
not a file name.

is this correct command?

IF EXIST filename. (
       del filename.
   ) ELSE (
       echo filename. MISSING.
   )

so kind of what I have is this:

cls
dir A:\ /a:-d /o:nr /b
pause
IF EXIST filename. (
       del filename.
   ) ELSE (
       echo filename. missing.
   )
:end

I RAN it and ran it and again but with no solution just errors been working on this alot. please any feedback.

Thanksi do not think first of all that DOS allow a minus switch

i looked on

http://www.easydos.com/dosindex.html

and did not see that switch  (-d)

i used to write code in clipper which is somewhat like c  and it looks as if you MIGHT be mixing up some other code with DOS.

i do not know if you cand do what you are setting out to do in a batch file.

you might have to go to debug.  sorry


476.

Solve : How do I enable command extensions in Dos?

Answer»

I cant get into my DOCUMENTS in dos as it keeps saying too many parameters.  When I try and access using "" it still DOESNT work?

I believe if I activate command extensions then I dont need quotes, but ahve forgotten how to do this, can anyone help?if you MEAN you want to activate a PROGRAM FILE say

it is called  myprog.exe  just  and enter myprog

if you mean you get the error message too many parameters aftrer you issue a command, you have too many spaces

if you are looking for a file whose name is  trowel.par

and the file list looks like  trowel par
you need to put in the dot(period)

hope this helpsYou are attempting to change directory to "c:\my documents"?

c:
cd "\my documents"


or

c:
cd \mydocu~1


If you are running an NT-based Windows, the location will be longer.

cd "\documents and settings\username\my documents"

477.

Solve : getting rid of old PC?

Answer»

I am GETTING RID of an old computer and want to delete the c: drive.  Have DOS 5.0 and windows 2k professional. I need step-by-step instrcutions.  Tried to CREATE a DOS 5.0 bootdisk but keep getting message advising to remove nonsystem disc.  someone please help.  please
bootdisks.com win98 boot FLOPPY format c:

478.

Solve : Release/Renew batch file?

Answer»

I am looking for a batch file to REFRESH my high speed internet connection by using the ipconfig/release-renew dos commands. I WOULD like a shortcut on my DESKTOP (WinXP) to run this program.

Here's an example ip.bat:
ipconfig /release
ipconfig /renew
pause

Any advice appreciated.
Thanks



What, specifically, are you trying to do?I asked this question on another forum.

With XP/Dos command.. I switch between wired and wireless network connection. What is the dos command that will reset and recognize my network connection without restarting my computer?

Follow this link for the response to this question.

http://malektips.com/2000wd0016.html

I would like to create the batch file mentioned in the response.

Thanks.

If you have only one ADAPTER then the /release and /renew switches are OK. With more than one adapter, those switches need to know which adapter to release and renew. You can use /release_all and renew_all, which will release and renew all of the adapters. This might cause a problem if one of the adapters does not find a DHCP server. You can simplify things a BIT by downloading a MS utility called wntipcfg from Microsoft. It works like the winipcfg utility in W98. After you have it installed you can place a shortcut to it on the desktop. With a few mouse clicks - presto chango - a single adapter or all adapters.Thank you for the direction, greatly appreciated.

479.

Solve : RealPlayer Fullscreen Command Switches?

Answer»

[glb]
Hi. I want to know the command-line switches for playing RealMedia(*.RAM) in fullscreen. Tell me which versions of REALPLAYER these switches APPLY to.[/glb]RealPlayer does not have a command line.i would dump real player software in the ATLANTIC ocean...SPYWARE...keylogger... Quote

RealPlayer does not have a command line.

How come RealPlayer has "/m audio" and "/x-pn-realaudio" as command line switches? If RealPlayer has that, it must have a switch for fullscreen view at STARTUP.
480.

Solve : command line batch?

Answer» MORNING folks can SOMEONE please direct me on my batch or tell me if there is a particular forum I should be looking at for help...thanks

I just posted this issue last NIGHT one is called


edit my batch file

the other


batch file using  %1\Nul

thanks again

there does not SEEM to be any replies to your other questions on this forum
481.

Solve : Opening a file to a Variable?

Answer»

In the Batch file that i am writing, i use the the copy con command to write the TEXT to a file, that works fine. But how would i load this into a variable, do i NEED to use set? I do want to create and keep the file from the copy con command!

Please help.
Gavinhere is one i just wrote for you

copy con  %1

make the above your batch file.. for this example call it mywrit.bat
make sure it is in your path

let say you want to make yourself a file called dippy.txt

you would type mywrit  dippy.txt

you would type your message without word wrap
then to conclude you need to do a   ctrl  z after you skip a LINE when you have finished your note

actually you do not save any time this way.

i do not use copy con   but rather

echo   this is my text part   >dippy.txt

if i want to write an ADDITIONAL line

echo   this and other lines take a double arrow >>dippy.txt

personally i keep notepad in my tray and use it everyday with a CTRL C to copy highlighted text and then CTRL V
to paste it into notepad.

hope this helps

482.

Solve : Can't run exe from D:\Program Files\?

Answer»

It SAYS "the system cannot find the path specified".
I've tried using D:\program%20files\ as i thought this might work. it didn't.
I'm trying to open D:\program files\livestats\collector in dos to find out why that prog isn't working properly.
Any ideas?i need to KNOW how you are trying to run your file

are you in dos, Windows or where

what windows are you using

do you know how to SET up a path?

I'm using CMD in windows 2K
setting up a path Fix file associations from the Command Line:  Did you leave the Always Use This Program To Open This File option
turned on? Do you want to change it back so it prompts you to specify a program each time? To DELETE the association
with that file type, at the command prompt ENTER the command ASSOC.EXT= [where .EXT specifies the extension of
the file type whose association you want to delete

483.

Solve : Attaching files to batch files....?

Answer»

I need someone to tell me how to attach FILE Such as GIF animations To my batch files... I don't Nedd a link..Because.. I can't find it anywhere else... Tnka you ..very much..Sorry, but it can't be done. You need special SOFTWARE to even view a .gif under DOS. An animated .gif is out of the question.[glb]Let me guess: you are trying to embed a BINARY file into a BATCH file, right?

I know how to embed a text file in a BAT, although it will leave an annoying CrLf at the end![/glb]

484.

Solve : Grief with backslash/installing 98 - dos?

Answer»

Hello all

Just adopted an old Gateway 2100 laptop, with a SWAPPABLE drive - so a bit of dos'ing is required to install 98. Problem is I don't seem to have a backslash that works properly. Control squggily bracket appears to insert backslash - but the cursor moves to the next line as if i'd HIT enter?

Found some info on changing reg keys - but I've ALREADY formatted the laptop? Can I still do this in dos - if so how?

read somewhere else I need to save the content of my start up disc onto the hard drive - how do I do that?

Soooo......  sorry to fire so many questions - if ANYBODY can help with any part of my "challenge" I would be grateful - the end goal is to get windows 98 on the machine - with the minimum of fuss and heartache

Thanks Zootog

Thank you in advanceIf you can set your BIOS to boot from the CDROM, an original Win98SE CD (or image copy of one) is bootable.

If not, boot from a Win98SE floppy, manually FDISK and FORMAT the hard drive so the partitions are the way you want them, and install a bootable DOS 7 layout in the primary boot partition with a working CDROM driver:

config.sys
device=c:\dos\himem.sys
dos=high,umb
device=c:\dos\emm386.exe noems
devicehigh=c:\dos\oakcdrom.sys /d:mscd001


autoexec.bat
echo off
lh c:\dos\mscdex.exe /d:mscd001 /m:12


Copy the OAKCDROM.SYS, EMM386.EXE, and HIMEM.SYS from the floppy, and MSCDEX.EXE from the RAM drive the floppy puts up, to the temporary DOS directory on the hard drive. (If you can't find EMM386.EXE, leave off the third line in CONFIG.SYS, the 'high' in 'devicehigh' in the fourth, and the 'lh' in the second AUTOEXEC.BAT line.)

Reboot to the hard drive with the CDROM drive installed, and you should be able to select the CDROM and run SETUP.EXE in the root directory.

If the backslash key is SHOT, try holding the ALT key down and typing 092 or 0092 on the number pad (you may need to use NumLock or Fn to access the 'embedded numpad' feature for this).Are we in it  moving backwards to to the days of win3.1 or what... go into the bios del key on select the boot option to boot from cdrom save  and exit.....if yu need a boot floppy disk www.bootdisk.com and chose the one that come with cdrom drivers)

bat [email protected]$?/% will soon begone......good what  waste of time........!!!!!¬```¬

485.

Solve : need help with d:/?

Answer»

My computer registers d:\ as B:\

regardless of whether or not this is normal i need help figuring out the commands to get into the cd rom and LOAD a non- bootable xp cd.a vague answer to your question

i had this problem when i acquired a used computer once and had to go into the setup.  i cannot remember exactly but i believe the problem can be solved there.

also you might look up the DOS assign command.
i have to experiment with it as i ususally put the order incorrectly. it is not a big deal to FIX but the command seems to have reverse logic.
it goes something like    assign  b  dwhat have you installed so far....boot floppys...WITHOUT the cdrom driver you will not be able to boot...did you try  b cd
enter
c:\setup ???my mistake, apparntly both a and b are my floppy drives and its the same 1!!

My cd rom wont register at all and i cant get to c:/

Anyone help?? got a win98 cd/or floppy disk......bootdisk.com...download the win98 floppy disk  with cdrom drivers..at the a:\ sys  c:  system transfered message >with your win98 boot floppy format c: and fdisk the hard drive<..or go into the bios del key on boot and change the boot sequence to boot from cdrom save an exit.........................................


You lost me dude, thanks for the help anyhow... :-/OK Jaye.  I'm not sure what you have done so far like fdisking and/or formatting your hdd but if you are trying to install XP from a full XP install cd here it is in simple steps....

1!. Go to Bootdisk.com and download to your hdd the boot disk file for Windows 98 SE Custom No Ramdrive.

2!. Insert a blank formatted floppy which is not write protected in A then click on the boot disk file on the hdd.  The eventual boot disk will be written to the floppy in A.  Copying the boot disk file on the hdd will NOT create a boot disk.

(The above 2 steps are probably best done on "another" pc)

3!. Write protect the boot disk and insert it into the pc on which XP is to be installed and boot from it.  This will install various files including a cd rom driver named BANANA with a drive letter of R and will return to the A: prompt.

At this point YOU have to decide if you want to fdisk and/or format your hdd (you'll lose all the info on C: if you format).

If YOU decide to format then type "format c:" (without the quotes) and hit enter.  Your hdd will be wiped clean.

4!. When you get the command line prompt A:\ insert the XP cd into the cdrom slot and type "R:\setup" (without the quotes) and hit enter.  Installation of XP will now start (hopefully) and you should follow the on-screen prompts.

Note: The above will only work if you have the full XP install cd.

You might have to source and install any odd drivers which are not on the XP cd and, of course, you will have to re-install XP updates, your AV protection, 3rd party Firewall and other progs.

Good luckI fail to see the problem if the user has the rc/oem disk or the retail disk why is there a problem....or we shifting the o/s to another pc use...you may have to >http://www.windowsreinstall.com/winxphome/installxpmsdos/index.htm

486.

Solve : how to see file details like date of creation ??

Answer»

How to see FILE details like date of creation  or modification in the dos PROMPT ? If I am using FTP for some dataxchnage i am facing this problem.
In normal MODE ALSO (i.e. in cmd how I will be able to do this?)is this win2k/xp...you are try to date stamp

487.

Solve : Creating a folder with date, using .bat?

Answer»

I am looking for a line of CODE that will CREATE a folder using the date of creation, or system date. Currently, using the %date% adds "??/??/??" slashs and this not allowed. I am looking for a folder name like this "11182004". can someone please help me out?

Thanks in advancefirst of all you cannot have two folders with the same name in the same directory  so what you WANT to do will cause a PROBLEM(if you COULD do it) and you created two folders with the  same date

why not just use underscores
is it this simple what you ask?

md   11_30_04

I think you are trying to automatically create a filename based on current date.

copy c:\database\file.dbs "f:\backup\%date:~4,2%%date:~7,2%%date:~-2,2%.dbs"

See if that will work, just change the soource and destination directories and drives to suit your system.

488.

Solve : Background application launch?

Answer»

hi,

I am trying to launch an application from the DOS prompt. As per my requirement after launching the application the DOS prompt should close its owndow though the application should still be open.

Can anyone help me?

Thnx.Create a batch file to start the application. Run the batch file from a shortcut.How about if you are trying to run two applications.. Dos launches one and then kills the batch file before it can launch a second.  Any ideas?You can't launch more than one app under DOS, because MSDos does not multi-task. However, Windows does, and can launch more than one DOS app at a time. Use the start command in the batch file to launch the apps. As far as KILLING the batch file, it does not kill it. Under DOS it simply hands CONTROL to the app that has been LAUNCHED. When the app closes, control returns to the batch file.MANY thanks for your help... so how would i launch two apps on  my c drive using the start command and keeping the batch file running.  How would this have to be written?

Many thanks

ML

489.

Solve : command file?

Answer»

I DONT know if your know about the "rcmd" command. but on our system after you type that command in dos it will ask you what machine your looking for, then you type in the machine name, then it comes back and ask you what command you would like to run on the machine, you type that in, well i want to write a bat FILE that will be able to SEND a command to several machines at the same time or one right after the other one. like reboot or restart awhost32, but when i try just typeing the commands one line at a time in a text editor, and then SAVE as a bat file it will only run the first line, how do i get it to wait on the computer to put in the next line of text to be able to run the next command.Has someone set up a batch file? what o/s..ask the programmer....or what commands/dir/files are relevant...do  we play chess  VERTICAL or horizonal.......the rules of the program that has been written..../|\?$% c+ c++ vb what..
490.

Solve : Trouble opening display properties?

Answer»

Hi, I cannot open up the display properties on my computer.  CURRENTLY using windows98. When I right-click on the desktop and click Properties, I find that the mouse pointer changes to an hourglass for a few seconds and then doesn't open the context menu at all.   The same problem may occur if I try to use the Display applet in the Control Panel.  I tried to edit the Registry "HKEY_LOCAL_MACHINE\Software\ Microsoft\Windows\CurrentVersion\Controls\Folder\ Display\shellex\PropertySheetHandlers".  Can anyone HELP to solve this problem and the value that i have to give. i had that sort of trouble...found it was an ad type bug.

look in your tmp or temp directory and see if anything is there and if you can DELETE it.

run a virus program

i think
you  have an interference with your windows program...you might have to re-install windows
BUT BACK UP FIRST and GET your driver FILES to a place other than the windows directory.  if you are not absolutely sure how to do this, find someone who does

491.

Solve : reinstall a file syntax?

Answer»

Hi,
I need to know the SYNTAX to be able to REINSTALL .DLL file from the d: drive.

Thanks!i just copy the file from d to the windows SYSTEM folder when i need to do this

492.

Solve : restoring dos?

Answer»

deleted dos by MISTAKE from a computer RUNNING WINDOWS 95. do have disks for restoring windows 98,
will this work?do you mean you cannot boot or you need the dos files per se? do you mean you cannot boot or you need the dos files per se?
493.

Solve : Needed an utility (.exe or .com or .bat)?

Answer»

hi all,

    I NEED an utility (.exe or .com or .BAT) which can get BIOS information.

    I need this utility to fetch computer details at boot up time.

  OS (any of): WIN 9x, win NT, XP, NT, 2000, 2003.....

    friends, please let me if you need further clarifications on this.there is a FREEWARE program (perhaps it is shareware)

called belarc advisor.

you can look it up and DOWNLOAD it.

it might not be what you want but it tell you all about your computer.


...hope this helps :-/

494.

Solve : sorry may seem stupid but my pc say some progs not?

Answer»

anyone HELP, i TRIED to USE my dictionary and PC won't let me?. my pc says not suitable to run ms-dos.
help pleaseSounds LIKE you're being told that your dictionary will not run in Dos as it's a Windows program.

What dictionary are you trying to use and what OS are you using??

495.

Solve : I,m trying to open new file?

Answer»

I,m trying to open new file but not a useal method
I TRY to make a batch file or script to AUTO open WORD and open oled file and make some changes and save finaly exit
could anyone help me about this idia or similar
thank,s
it SEEMS to me if you are going to make changes, you ALREADY have an old file.

if you are trying to edit a doc file without WORD, i do not think you will be successful. why not have WORD in you PATH and just type    word.  i do not get your problem

496.

Solve : Boot DOS 5.0 from A: cannot access C:?

Answer»

Hi, perhaps someone here can help me. I've forgotton most of my DOS. I have an old laptop that won't boot from C:. I have a DOS 5.0 boot disk which works, but then I cannot ACCESS C: or even reformat it because it doesn't recognize there's a HARD drive. Is there a command for the config.sys or autoexec.bat that instructs the machine that there is a hard drive?
Thanks,
AprilApril...What operating system is on the laptop ?
Can you go into the bios and see if it is seen ?


dl65  

Hi,
I don't know. It's a Toshiba 2000 SXe laptop my brother in law gave me. When it boots, it just says Toshiba 1991. If I press the delete key to go into setup during boot, it gives only sketchy info, i.e. hardrive: 40 MB and allows me to change only the simplest of settings, like PRINTER ports, etc. I've tried booting it with DOS 5.0 and DOS 6.22, which it does fine, but can't get to that hard drive.it MAY be from a place where the administrator put in a password. .. or the hard drive is no good!load the boot floppy at the a:\ format c: then the fdisk command  after the a:\ prompt thats if you want to start from a clean hard drive  this will also  prove you can access the hard drive or a:\sys c: or
a:\ cd
enter
c:\

or  try dos7.1  the forgotten ms system>http://newdos.yginfo.net/msdos71/index.htm

497.

Solve : Check if program is running?

Answer»

Hello
is it possible that DOS can check if an program is running.
im working on an error mail (wich runs from a batch file)
but now i need DOS to check if the mail SOFTWARE is running or not, if running it must send a mail from that mail adres that is logged in, if not it must send a mail from a preset mail adres.

but howHi,
www.sysinternals.com has a commandline program CALLED handle which can gather info about running PROCESSES. ie if you want to check WHETHER 'myproggie.exe' is running then 'handle myproggie' will dump 'myproggie' process information. If no info is DUMPED then the program isn't running.
I don't know whether it can be used within batch files.

Derek.

498.

Solve : icons for Batch files..??

Answer»

can I create or use an existing icon for my Batch file..?

Thank you.. very much...I APPRECIATE Your help..Right click/select properties/click PROGRAM tab/at bottom right - click change icon. 
hello

i use icons for many of my batch files. you need to x off the dos window when you finish the program

here is how i do it

i keep all of my batch files in one PLACE (not necessary but i have so many of them , i need to keep them organized

say my batch file is CALLED  doit.bat and it is in a folder called mybats

i go to the desk top right click
      go to new, shortcut do the search thing and click on your batch file..where ever it is.
       you get a choice of windows icons...which can be changed.  BTW the PROCESS also works for keeping text files on the desk top, you need to search for non programs in that instance

499.

Solve : QBasic won't stay open for more than a few seconds?

Answer»

I can't get QBasic to stay OPEN for more than a few seconds.  I am using Microsoft Windows XP Home Edition.  At another forum, someone said:

"The problem is most probably in NTVDM.EXE, the XP DOS emulator."

I'm not sure if that person is correct, but he couldn't help me fix it, if that was the problem.  Does anyone here KNOW what might be wrong?

When I right-click on it, and click Run As, it brings up this error message.  "A temporary file needed for initialization could not be created or could be written to.  Make sure that the directory path exists, and disk SPACE is available."

THANKS!I use XP Pro and have had no problem running QBasic. Most people's problem stems from where they put the \QBASIC directory. It should be as follows:

C:\QBASIC\

You may or may not have to go into QBasic, and change the file PATHS [depending on which version you're using].

I have QBasic v1.0, and all I did was copy it from another computer, and stick it right back into the same root directory, and it WORKED

.............snipped  from mr  j smith.........................

and you need this>http://www.geocities.com/Area51/5967/downcomp.htmTry using this

http://dosbox.sourceforge.net

A better DOS emulator for XP.

Or try using a more recent programming langauge. There are more powerful and (sometimes) easier to use/learn langauges available.

500.

Solve : How do I write on more than one line in Dos?

Answer»

Help! I'm a total NEWBIE to DOS. I USE WINDOWS XP Home Edition and I was wondering if anybody could help me out.

How do I write a COMMAND on more than one line? I need to execute a command which is divided into 3 lines. How do I do that without pressing enter to execute the partially written command?ctrl+ji use this...its a bit not nerdy, but it works

echo    line one   >  mybit.bat
echo    line two   >>  mybit.bat
echo     line three  >> mybit.bat

(NB  the double greater than signs add each line to the bat)

check it by USING the type comman(type mybit.bat)


;)