Computing.Net > Forums > Disk Operating System > File extensions

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.

File extensions

Reply to Message Icon

Name: IRQtoCPU
Date: October 18, 2003 at 16:44:00 Pacific
OS: DOS
CPU/Ram: n/a
Comment:

Of the following file extensions, which can be run from the command prompt? (I guess it means, just run it flat out, not edit it, or view it, or what not, just run it).

.BAT, .DLL, .COM, .RUN [only 2]



Sponsored Link
Ads by Google

Response Number 1
Name: hwood
Date: October 18, 2003 at 18:46:43 Pacific
Reply:

bat and com only


0

Response Number 2
Name: IRQtoCPU
Date: October 18, 2003 at 19:54:50 Pacific
Reply:

I knew com could be run. And we all know exe. But bat? Bat files can be run? I know you can edit them and view them by using commands, but you can actually run them from the prompt, straight up?


0

Response Number 3
Name: Virginia
Date: October 18, 2003 at 21:27:53 Pacific
Reply:

Why not give it a go?? Create a .bat file using copy con:filename.bat stick cls and dir in it, finish off with Ctrl+z then Enter. At the command prompt enter filename and see if you get a dir listing of your current directory.

Good luck

V..


0

Response Number 4
Name: IRQtoCPU
Date: October 19, 2003 at 01:39:33 Pacific
Reply:

I went to DOS, knowing the name of a few .BAT files, and at the prompt (c:\) I typed in the name without the extension and hit enter to see if they'd run. Nothing happened....


0

Response Number 5
Name: IRQtoCPU
Date: October 19, 2003 at 01:46:49 Pacific
Reply:

I created a .BAT fill called useless.bat and using Textpad, put DIR in it and saved. I went to DOS and ran "useless" and got my directory listing. Cool. Thanks.


0

Related Posts

See More



Response Number 6
Name: SemperFiMXL
Date: October 19, 2003 at 01:53:27 Pacific
Reply:

Nothing happened.... at first look...

The on-screen results of a batch file depends of the instructions the .bat file is made of...

For example, you can make a .bat file with the following two lines:

@Echo Off
Path C:\Windows;C:\IrqToCpu;%path%

Now, if you run the .bat file, nothing will be displayed on the screen (so, nothing happened... at first look...); but if you check your path before and after the .bat file, you will notice that the path has been changed...

So, try the exercise Virginia told you, and
check see how a .bat file can be executed directly from the DOS prompt...

Semper*


0

Response Number 7
Name: Dan Penny
Date: October 19, 2003 at 02:08:40 Pacific
Reply:

If you're at the C:\> prompt, and a batch file you wish to run is in D:\NETFILES\GOODIES\BATCH, then the path statement in your c:\autoexec.BAT (there's a hint) must contain D:\NETFILES\GOODIES\BATCH; in order to find it. Otherwise you'd have to either type out the complete path/filename(D:\NETFILES\GOODIES\BATCH\useless), or change to the drive/directory that contains the batch file, thereby making it your current working directory.

We're not doing your homework here are we? It's happened before in these forums. If we are, don't forget that you're only cheating yourself.


0

Response Number 8
Name: MediaN
Date: October 19, 2003 at 08:34:32 Pacific
Reply:

just try the command START ..
like this example ..
just include it in the root batch to activate another batch in it
---------------
start c:\yourpatch\batch.bat
---------------
it'll work .. trust me !!


0

Response Number 9
Name: Virginia
Date: October 19, 2003 at 19:57:35 Pacific
Reply:

Lots of Batch and other info at:-

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

Have fun

V...


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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: File extensions

dos file extension www.computing.net/answers/dos/dos-file-extension/12751.html

Bios update file extension www.computing.net/answers/dos/bios-update-file-extension/6467.html

how to ignore file extension during www.computing.net/answers/dos/how-to-ignore-file-extension-during/14648.html