Computing.Net > Forums > Programming > Dos / Batch queris..

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dos / Batch queris..

Reply to Message Icon

Name: milind2517
Date: July 25, 2007 at 15:03:58 Pacific
OS: DOS
CPU/Ram: P4 512mb
Product: Intel
Comment:

Hi,
I am working on the batch programming. I had some queries and wanted the answers for it.

>How to read the dos version that i am using?
>How to download new dos version and how tp install it?
>How to start command prompt by defalut at C:
>I want to access network files through batch file. I can do the same from the command prompt. Like i want the file mili.txt to be used from the server which is on the path, \\abc\Softwares\Users\mili.txt Is it possiable through batch programming.
> What command has to be added to the batch file, so the title of the bat gets converted to the given title.
........................................................................................
This works with command line and batch programming.

@echo off
calc OR "calc"
exit

Y does this not work?? or how to work it out?

@echo off
http://www.google.com OR "http://www.google.com"
exit
........................................................................................



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: July 25, 2007 at 17:20:28 Pacific
Reply:

>How to read the dos version that i am using?
VER

>How to download new dos version and how tp install it?
If you're using FreeDOS, I'd visit their site. If you're using MS-DOS, you can't download it. However, I think you can still buy it from Microsoft for the price of Windows Vista.

>How to start command prompt by defalut at C:
I have no idea what you're asking.

>I want to access network files through batch file. I can do the same from the command prompt. Like i want the file mili.txt to be used from the server which is on the path, \\abc\Softwares\Users\mili.txt Is it possiable through batch programming.
No, MS-DOS has no native networking support.

> What command has to be added to the batch file, so the title of the bat gets converted to the given title.
MS-DOS has no windows to give titles to.

This works with command line and batch programming...Y does this not work?? or how to work it out?
MS-DOS has no native networking support, HTTP or otherwise. Download Netscape Navigator for Windows 3.1.

Now if you're talking about CMD (the Windows NT line's Command Prompt), that's something COMPLETELY different.

RANDOM NOTE: You know, I swear I've done a post almost exactly like this before.


0

Response Number 2
Name: hukre
Date: July 25, 2007 at 18:40:25 Pacific
Reply:

Apout the VER command. When I am in DOS on my computer and do the VER command, it tells me the version of the Windows operating system and not the DOS version.


0

Response Number 3
Name: Razor2.3
Date: July 25, 2007 at 18:58:54 Pacific
Reply:

That's how CMD chooses to specify its version: in relation to Windows. If you want to see its version, go to your Windows\System32 directory, right-click on cmd.exe, and look at the Version tab.


0

Response Number 4
Name: milind2517
Date: July 26, 2007 at 11:26:59 Pacific
Reply:

Well razor all the question are well answered. The third question was..

>How to start command prompt by defalut at C:
Thats means when u start cmd from run.. it gets defaulty started at C:\Documents and Settings\user. Is there any way to start dos by defaulty at c:


0

Response Number 5
Name: tonysathre
Date: July 26, 2007 at 18:44:07 Pacific
Reply:

"s there any way to start dos by defaulty at c:"

It's not possible from the Run dialog box, but you can start the shortcut in a C: like this:

Start | All Programs | Accessories | Right click Command Prompt | change %HOMEDRIVE%%HOMEPATH% to C:\

I don't know if this would work, but you could try it:

Rename cmd.exe to cmd1.exe
Change COMPSEC to %systemroot%\system32\cmd1.exe
reboot
Put this in a batch script and save it as cmd.bat in %systemroot%\system32\

::==
@echo off
cmd1 /k cd c:\

"Computer security." — Oxymoron


0

Related Posts

See More



Response Number 6
Name: tonysathre
Date: July 31, 2007 at 16:27:43 Pacific
Reply:

I found a way to do it:

Click Me

"Computer security." — Oxymoron


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Dos / Batch queris..

DOS - batch variables www.computing.net/answers/programming/dos-batch-variables/15058.html

help on creating DOS Batch file www.computing.net/answers/programming/help-on-creating-dos-batch-file/15163.html

DOS Batch File Commands www.computing.net/answers/programming/dos-batch-file-commands/14637.html