User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » DOS editors Page [1]  
Andybird
All American
3700 Posts
user info
edit post

I'm having to do some coding in a dos batch file. I was wondering if someone could reccommend a good, free (and able to download) editor. I'm not super at programming, just basicly trying to spot where the problems lie, and fix them so it will run.

Thanks

8/25/2005 12:37:42 PM

Noen
All American
31346 Posts
user info
edit post

ultraedit

8/25/2005 12:46:02 PM

darkone
(\/) (;,,,;) (\/)
11605 Posts
user info
edit post

Exactly what kind of features are you looking for? I write batch files in good ol' notepad.

8/25/2005 1:53:17 PM

Shaggy
All American
17820 Posts
user info
edit post

notepad

or wordpad if you want to get really technical


then textpad if you're really extreme.



and if you want dos only, edit works great.

8/25/2005 1:55:24 PM

TreeTwista10
Forgetful Jones
147626 Posts
user info
edit post

yeah if you are at a dos prompt and the file is FILE.BAT just type

C:\> edit file.bat

it will open the built in editor

8/25/2005 2:06:43 PM

Andybird
All American
3700 Posts
user info
edit post

note pad is doing strange things with it. isn't legible. I'm not so dumb that i didn't try those first.

can't edit it in the dos prompt either. Don't know why. Tried. Wouldn't work.

8/25/2005 3:19:13 PM

TreeTwista10
Forgetful Jones
147626 Posts
user info
edit post

if at the dos prompt you type

C:\> type file.bat | more

does it properly list it there?

8/25/2005 4:42:37 PM

Andybird
All American
3700 Posts
user info
edit post

no

8/25/2005 4:52:47 PM

TreeTwista10
Forgetful Jones
147626 Posts
user info
edit post

it may've gotten saved in a format other than text if the 'type' command doesnt list it...batch files should be plain text files saved with a .bat extension...you have a backup of it?

8/25/2005 4:55:54 PM

Andybird
All American
3700 Posts
user info
edit post

yeah, i've been playing with it trying to get it to work. I can get it to open up as a read-only file in one piece of software we have. I tried to change the extension to a .txt file, but that did not work either. i've since changed it back to a .bat file.

8/26/2005 8:17:35 AM

dannydigtl
All American
18302 Posts
user info
edit post

this is rediculous..

8/26/2005 10:39:19 AM

FroshKiller
All American
51882 Posts
user info
edit post

He's probably fucking around with a COM file.

8/26/2005 10:46:11 AM

WolfmanNCSU
All American
2226 Posts
user info
edit post

8/26/2005 11:18:04 AM

MiniMe_877
All American
4414 Posts
user info
edit post

if you cant properly edit a text file, or in your case, a batch file, you might want to personally get someone to help you out.

If not, you need to explain in extremely explicit detail what you are doing, so that someone with no knowledge of computers can reproduce your same problems. Explain the problem to us like you would your grandma (or someone who doesnt know shit about compuers). Tell us what version of Windows (or DOS) you're using, tell us what the batch file is for, what the filename is, what the file attributes are, and why you're trying to do this in the first place.

DETAILS man, DETAILS.

8/26/2005 11:32:43 AM

ScHpEnXeL
Suspended
32613 Posts
user info
edit post

batch files are just text for the most part in dos, if notepad wouldnt open it to a legibile degree, you should probably let us know wtf ur trying to do and or edit

8/26/2005 11:35:47 AM

FroshKiller
All American
51882 Posts
user info
edit post

Completely novel concept: POST A LINK TO THE FILE SO WE CAN DOWNLOAD IT OURSELVES.

8/26/2005 11:50:42 AM

esgargs
Suspended
97470 Posts
user info
edit post

Quote :
"C:\> type file.bat | more"


Save some keystrokes

just use

C:\>more file.bat

8/26/2005 11:55:12 AM

Andybird
All American
3700 Posts
user info
edit post

i can't post the file for security reasons. I appreciate trying to help. Basicly what i'm doing is drag and dropping a big ass .bat file into the notepad. That didn't work so i tried word pad. That didn't work so i tried text pad. I could get it to open legibly in slick edit, but it was read only in there (maybe because it was a demo version?) We have a piece of software that is used to run traffic analysis called cube. I can open teh .bat file in there and read it fine. However, cube does not let you write the code in it, you just read and run it in there. The file runs like a normal .bat file, however it has some logic errors in it that need to be fixed (hence the need to use an editor). The files "open" in the text editors, but it is in a font that consists mostly of boxes and symbols. Not to mention there is only about 4 lines of that mess.

I'm using the network version of windows 2000 i believe. The files are not stored locally, but on a server.

8/26/2005 12:36:07 PM

FroshKiller
All American
51882 Posts
user info
edit post

You can't post a batch file for security reasons? Okay, whatever, you don't deserve that security clearance if this is that hard for you.

8/26/2005 12:43:40 PM

Andybird
All American
3700 Posts
user info
edit post

its for a DOD contract. We aren't supposed to release anything.

8/26/2005 12:53:46 PM

MiniMe_877
All American
4414 Posts
user info
edit post

maybe you have a Unicode file on your hands, Notepad usually blows chunks on Unicode files for me

try using Notepad2 from here http://www.flos-freeware.ch/notepad2.html It will edit most anything

Also, dont use this drag-n-drop shit to open the file, instead go to the file menu and choose Open, then select All Files, or type in *.* in the file selection box. Then open your file that way.

^ and yeah, he's right.

Are you sure that the file is a batch file at all, and its not a specific format to this 'Cube' program? Why is this Cube program show you the file in a read-only format? Are the RO permissions on the file set? What is the size of the file? Can you open it in a hex editor and legibly make out any of the file content?? Who wrote this file originally? Why cant you contact the author?

8/26/2005 12:59:26 PM

Shaggy
All American
17820 Posts
user info
edit post

Quote :
"He's probably fucking around with a COM file."

8/26/2005 1:00:34 PM

MiniMe_877
All American
4414 Posts
user info
edit post

a COM file will not open in anything, its only executable, he specifically said it would open as readonly in another program

8/26/2005 1:01:59 PM

Andybird
All American
3700 Posts
user info
edit post

sweet...the notepad2 did it. thanks alot guys

8/26/2005 1:04:20 PM

BootLegger
All American
2182 Posts
user info
edit post

this is sad

8/26/2005 1:05:22 PM

MiniMe_877
All American
4414 Posts
user info
edit post

Was it the file encoding of the bat file that had notepad screwed up?

In notepad2 you can see what the file encoding was detected as under the File menu. It is also shown along the status bar at the bottom of the window.

8/26/2005 1:06:41 PM

Andybird
All American
3700 Posts
user info
edit post

says it is ANSI

8/26/2005 1:12:22 PM

 Message Boards » Tech Talk » DOS editors Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.