Search found 40 matches

by werejago
15 Jan 2021 14:16
Forum: DOS Batch Forum
Topic: Risk level validation
Replies: 3
Views: 4727

Re: Risk level validation

I removed "& Endlocal & Exit /B 0" from the code below because I already have an Endlocal at the end of the script. (start notepad "Sensor Serialization.txt" && start C:\Users\ptech\Documents\Ezcad2.14.9^(20170509^)\EzCad2.exe "Sensor Engraving.EZD" & Endlocal & Exit /B 0) and just have (start notep...
by werejago
15 Jan 2021 14:15
Forum: DOS Batch Forum
Topic: Risk level validation
Replies: 3
Views: 4727

Re: Risk level validation

Is using ECHO off unnecessary and should I leave it blank or replace with a pause? ECHO ______________________________________________ ECHO [R] = [Retry your entry] ECHO [C] = [ONLY IF FREEZE - Set starting sensor ID] ECHO [E] = [Finish and Exit] ECHO ______________________________________________ E...
by werejago
15 Jan 2021 10:07
Forum: DOS Batch Forum
Topic: Risk level validation
Replies: 3
Views: 4727

Risk level validation

Hello DOS Community, I have a simple request if anyone can assist, I need your expert opinion if this code is safe or if you see any potential flaws the way this script is written I'm open to discuss, :!: Please refer to https://www.dostips.com/forum/viewtopic.php?f=3&t=9794 if you're confused on wh...
by werejago
07 Jan 2021 14:28
Forum: DOS Batch Forum
Topic: Batch File to edit specific line of Text file
Replies: 57
Views: 43042

Re: Batch File to edit specific line of Text file

I believe I need to modify the if do/if else statement by adding one more if option for "C". Any idea's on how to tackle this? Here again is the entire script I'm working with. @echo off Color F rem /*_________________________________________Deletes all Files in folder besides itself or other folder...
by werejago
07 Jan 2021 13:50
Forum: DOS Batch Forum
Topic: Batch File to edit specific line of Text file
Replies: 57
Views: 43042

Re: Batch File to edit specific line of Text file

Thanks Squashman! I added the ampersand before the endlocal on that line of code. Set "Menu=Echo/[R]epeat [C]ontinue [E]xit&For /F "Delims=" %%G in ('Choice /N /C:RCE')Do If "%%G"=="R" ( Goto :lbl )Else If "%%G"=="E" (start notepad "Sensor Serialization.txt" && start C:\Users\ptech\Documents\Ezcad2....
by werejago
07 Jan 2021 12:56
Forum: DOS Batch Forum
Topic: Batch File to edit specific line of Text file
Replies: 57
Views: 43042

Re: Batch File to edit specific line of Text file

I'm thinking it still has to do with this same line of code Set "Menu=Echo/[R]epeat [C]ontinue [E]xit&For /F "Delims=" %%G in ('Choice /N /C:RCE')Do If "%%G"=="R" ( Goto :lbl )Else If "%%G"=="E" (start notepad "Sensor Serialization.txt" && start C:\Users\ptech\Documents\Ezcad2.14.9^(20170509^)\EzCad...
by werejago
07 Jan 2021 12:55
Forum: DOS Batch Forum
Topic: Batch File to edit specific line of Text file
Replies: 57
Views: 43042

Re: Batch File to edit specific line of Text file

Here is the current script I'm working on. @echo off Color F rem /*_________________________________________Deletes all Files in folder besides itself or other folders */ 9>>"%~f0" (>nul 2>&1 del /f /q *.*) rem /*_________________________________________Copies and rename designated files */ xcopy "Z...
by werejago
07 Jan 2021 12:54
Forum: DOS Batch Forum
Topic: Batch File to edit specific line of Text file
Replies: 57
Views: 43042

Re: Batch File to edit specific line of Text file

After trying to break the script I found some what of a small issue. My menu commands currently are: R for repeat (Re-entry of workorder) C for continue (Enter starting position) E for exit. When I enter in "C" for continue I'm able to input my serial starting position that saves into a text file an...
by werejago
07 Jan 2021 10:41
Forum: DOS Batch Forum
Topic: Batch File to edit specific line of Text file
Replies: 57
Views: 43042

Re: Batch File to edit specific line of Text file

"^" closes parenthesis and "&&" is used to add multiple commands within a menu item, got it thanks.
by werejago
07 Jan 2021 10:10
Forum: DOS Batch Forum
Topic: Batch File to edit specific line of Text file
Replies: 57
Views: 43042

Re: Batch File to edit specific line of Text file

Ok actually I still cannot get 2 programs to open up at the same time upon exit. The end objective is to simply open the notepad file "sensor.txt" that was edited and the Ezcad file/program. I can only get one or the other to open why not both? If "%%G"=="E" (start notepad "Sensor Serialization.txt"...
by werejago
07 Jan 2021 09:58
Forum: DOS Batch Forum
Topic: Batch File to edit specific line of Text file
Replies: 57
Views: 43042

Re: Batch File to edit specific line of Text file

Terry I found my problem! It was simply the pathing for the ezcad program. The path includes: "C:\Users\ptech\Documents\Ezcad2.14.9(20170509)\EzCad2.exe" the "(20170509)" in the path i believe was causing the problem and crashing or ending the program. Any suggestions for a quick fix besides renamin...