CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > Computers and Networking


Computers and Networking Discuss computer and Networking related questions here!


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-09-2005, 07:19 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road
editing autoexec.bat

I am trying to load a very strange dos based program for some robots I have.
I tried to edit my autoexec.bat file as per the instructions, and it did not work.
Now when I am at the "c" prompt in msdos I can not even edit the autoexec.bat file anymore? I get "bad file or command"

is this the right way to edit the autoexec.bat........

(at c:\ type)

edit autoexec.bat
and then enter key?????

I am sure that's how I did it before, but it won't let me in now?
I need to set a path,com port settings,an ansi.sys file and a config.sys file for this software to operate correctly in msdos.

please any help is appreciated
__________________
menomana
Tweet this Post!Share on Facebook
Reply With Quote

  #2  
Old 02-09-2005, 07:37 PM
Wanna be
 
Join Date: Mar 2004
Location: United States
Posts: 512
Hack is on a distinguished road
Yes that is correct

the way you are typing it in should work. If not, try typing sysedit instead. This will bring up all of your windows such as the autoexec.bat, config.sys etc. If the edit autoexec.bat command does not work, is it possible that you renamed the file something else accidently? Seen that happen before.
__________________
Check out what I am working on at www.routerbitz.com!
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 02-09-2005, 07:41 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road
wanna hear something funny, I just deleted the autoexec.bat in msdos....is there a way to restore it? or type in a new one??

thanks for your help
__________________
menomana
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 02-09-2005, 07:43 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road
sysedit did not work either "bad command or file name"

autoexec.bat is definetly gone...
__________________
menomana
Tweet this Post!Share on Facebook
Reply With Quote

  #5  
Old 02-09-2005, 08:16 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 15,696
Al_The_Man is on a distinguished road
Buy me a Beer?
First locate the Edit.com program and either go to that directory or enter path = c:\dos ( or wherever the edit pgm is) and create a new autoexec.bat program
here is a dos file find program to find where you edit pgm is.
Al
Attached Files
File Type: zip where.com.zip‎ (833 Bytes, 75 views)
__________________
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-09-2005, 09:19 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road
Thanks al

I found a similar named file with different extension (.syd), so I wiped out the old Ansi.sys files and config.sys files, and then I was able to use the "edit" command again. opened the ".SYD" file and renamed it .BAT returned my config files (which where backed up under a diff. name) and was able to return to the autoexec.bat and edit it correctly.
Wow, Once again I caught myself changing files before saving the originals first!! what a sin! you'd think I'd learn by now........
__________________
menomana
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 02-09-2005, 09:45 PM
vladdy's Avatar  
Join Date: Feb 2004
Location: Perogie Flats, Canada
Posts: 350
vladdy is on a distinguished road
uhhh..ansi.sys is your low level device driver that tells your monitor how do deal with things like clear screen, backspace, etc..

if edit didn't work, you were probably not in the same subdirectory that edit.com was located in...for windows 98 it's in \windows\command\
other OS's are similar..

It's just as easy to find it in windows using search, and the copy it to the root , in most cases C:\ where it will be easy to access under dos

another option is to add the line
path = c:\windows\command
to either your autoexec.bat or just type it in when you enter dos..

hmmm.haven't done much dos since, oh maybe 1990...still remeber a bit anyways..
Tweet this Post!Share on Facebook
Reply With Quote

  #8  
Old 02-09-2005, 09:56 PM
Gold Member
 
Join Date: Jun 2003
Location: United States
Age: 26
Posts: 1,387
JFettig is on a distinguished road
when your in dos,
if your not in the C:\ directory type
cd\ <enter>(acutally hit enter, not type <enter>)
then you shoudl be there, now type
edit autoexec.bat <enter>
No in there, at the top, there should be a few things, like
@echo off
which tells it to perform the commands as I understand it
you can type
echo wooo I'm insane!
and it will display "wooo I'm insane!" when its exicuted, but anyway,

so does the computer boot alright without autoexec.bat? if not you might want to create one, just simply type
edit autoexec.bat <enter> and it will take you into the editor and save it, I dont remember but I dont think you really need anythign in it, but if you want to exicute your program when the computer boots, put this in exactly(Im not sure if you need the @echo off, but it wont hirt anything):

@echo off
C:\(program directory and exicutable)

and thats all you should need.

Jon
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 02-09-2005, 10:45 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road
thank you for your replys.
I am by no means a computer genious, but here is what I think happened.

I think i installed the software for the robots before installing the "ansi.sys" driver in the proper root directory. There were files in the C Dir. that were not supposed to be there, i cycled the power, and then that's when i was not allowed back into the autoexec.bat, another file in the c: directory appeared called autoexec.syd, so I undid everything I loaded, still was not able to enter the autoexec.bat, so i wiped it out and opened the autoexec.syd, re-named it autoexec.bat, modified it for my needs, saved,and then placed the ansi file in the right directory, then loaded the robot software, and away it went. I can't explain why, but that's what happened.
These robots are from the 1980's and the software it-self is dos in nature, according to the manual the ansi driver is used as the device driver? The computer I installed this on is actually a dinosaur, the compact conturea with mono chromatic screen,believe me this stuff is old (pre windows 98), but it was free because they people I got it from could not get it communicating/running. It's funny to think that this type of programming has been forgotten by most, but not left behind by industry, I guess we have adapted to well to windows and pull down screens???? I knew my commadore 64 days would eventually come in handy
so now I am off to build a com. cable, a 220vac plug from my dryer and we will see what these things can do!
My money is on a large bang followed by sparks....
__________________
menomana
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 02-12-2005, 02:42 AM
vladdy's Avatar  
Join Date: Feb 2004
Location: Perogie Flats, Canada
Posts: 350
vladdy is on a distinguished road
SYD extension files are 'normally' created by
[newer systems] Sysedit, backup files, safe to delete or whatever
[Older Dos systems] QEMM , Qemm386 memory manager, sometimes needed when running an older system in straight DOS mode, look at your old config.sys, if qemm386 is there you 'probably' need this file, if there is only a reference to emm386 [or no reference at all], then you don't
[SyBase Apps], older database systems, not usually in the root though..

yeh, the old 'obsolete' dinosaurs still have a place, and work just fine for DOS based CNC systems, a lot faster than an equivalent windoze based box..

I 'think? it was linus Torvalds that said something like..
If we live in a world without walls or borders, why do we need Windows?
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
powermill post editing masterblaster Post Processor Files 1 07-08-2010 11:08 PM
NCManager - verification, simulation and editing of NC programs uav Product Announcements & Manufacturer News 10 05-11-2006 07:04 AM
Point cloud editing CNCgr General CAM Discussion 5 04-24-2005 12:06 PM
Post editing Tools oldjohn Post Processor Files 4 03-12-2005 11:15 AM
Editing question CNCadmin OneCNC 8 10-23-2004 12:09 AM




All times are GMT -5. The time now is 12:24 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353