|
| 25 Aug 2015 06:08 AM |
@echo off :PATH cls title >FUTURE EDITOR< echo FUTURE EDITOR: echo Enter path of file please. set /p PATH=Enter path: if %PATH%==PATH110 set /a PATH=%PATH% else (set /a PATH=%PATH%) goto WHICH :WHICH echo Edit or new file? echo (1) (2) set /p WHICH=1 or 2? if %WHICH%==1 edit %PATH% if %WHICH%==2 goto NEW else (goto WHICH) :NEW echo Name of file (and extension?) set /p NAME=Enter name here: if %NAME%==I (set /a %NAME%==%NAME% goto WRITE) else (set /a %NAME%==%NAME% goto WRITE) :WRITE cls cd %PATH% title Start writing. echo Start writing line by line. To use another file, relaunch the program. set /p input==Your writing: if %input%==420 (echo %input% >> %NAME% goto WRITE) else (echo %input% >> %NAME% goto WRITE)
☻ why? |
|
|
| Report Abuse |
|
|
FiveCakes
|
  |
| Joined: 15 Feb 2012 |
| Total Posts: 5604 |
|
| |
|
|
| 25 Aug 2015 07:27 AM |
I don't think this is the right place to post this.
Try scripters, man. |
|
|
| Report Abuse |
|
|
NOWAYOUT2
|
  |
| Joined: 24 Jul 2011 |
| Total Posts: 5556 |
|
|
| 25 Aug 2015 08:29 AM |
| What language is it? I don't recognize it. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
NOWAYOUT2
|
  |
| Joined: 24 Jul 2011 |
| Total Posts: 5556 |
|
| |
|
EvanHolt
|
  |
| Joined: 06 Sep 2008 |
| Total Posts: 1264 |
|
|
| 25 Aug 2015 10:00 AM |
Post this in the Scripters forum. They'll be much more helpful there.
[ George Orwell taught me math! 2 + 2 = 5 ] |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2015 10:38 AM |
You're coding in BATCH? Phaha! Anyways, there's a few problems such as 'if #NAME# == I (set /a %NAME%==%NAME% goto WRITE).. Oh my godness, such an amateur script... In BATCH. That's like supernewb! Don't worry, though, i'm here to help. Try this instead: set /p NAME=: if /I "%NAME%" EQU "this is the thing you need to type to goto write" goto :WRITE (replace the 'this is the thing you need to type to goto write' with the 'unlocker'(the word or sentence you would like to trigger the 'goto' function))
>all the programming languages are referred to as 'SourceCodes', but when in a game, they are often called 'scripts'. For god's sake don't refer to BATCH as a 'script'<
Anyways, your code is very rough and probably has a lot more errors, i suggest you start over again. Judging By what i think you're attempting to make seems like a max 5min job. Good luck! |
|
|
| Report Abuse |
|
|
FiveCakes
|
  |
| Joined: 15 Feb 2012 |
| Total Posts: 5604 |
|
| |
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 25 Aug 2015 03:40 PM |
| Can you link me to a source where this is formatted? As it is hard to read like this. Is there any output? |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 25 Aug 2015 03:40 PM |
| The code is very messy. I would suggest cleaning it up a little |
|
|
| Report Abuse |
|
|