Search found 14 matches
- 14 May 2013 19:24
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 30843
Re: Convert batch script into an executable or higher langua
This certainly has developed into a fairly interesting post. However I fail to see the great dilemma people seem to have with viewable source code. I am a firm believer in the Open Source ideology. Especially when dealing with utilities written in a scripting language. I'm not looking to start a deb...
- 08 May 2013 16:41
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 30843
Re: Convert batch script into an executable or higher langua
I'm not quite sure what I'm doing far as that goes. Reading/writing & not overwriting but still keeping everything on the correct lines. Instead I just have the output set in a manner that the external file runs as a script & sets variables when called. I'm sure there's more efficient ways o...
- 02 May 2013 16:43
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 30843
Re: Convert batch script into an executable or higher langua
Would I be better off with an ini? I'm not quite sure how to write or call something like that. In a manner where it would set file & folder path related variables. I should perhaps rename it paths.ext as well. Actually nevermind... This is getting to be an exercise in hand holding. I'll go see ...
- 02 May 2013 07:33
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 30843
Re: Convert batch script into an executable or higher langua
The external file variables.bat is generated from user input. When it doesn't exist, configuration is launched to generate variables.bat. Since I don't want that to happen every time the primary file is launched. I'll need to define my own temp folder for it. Unless there is a way to find the folder...
- 02 May 2013 06:31
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 30843
Re: Convert batch script into an executable or higher langua
The reason I need, or perhaps want, to call an external file is 2 fold. First off I'm using it as a first run test. Next the external file is used to store file & folder path variables. I wanted to keep it in the same/original folder. To give the end user the option to easily find & edit the...
- 02 May 2013 05:05
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 30843
Re: Convert batch script into an executable or higher langua
Oh, well that changes things quite a bit. Is there a way to direct the path back to the primary opening folder? If the folder is to change & be primarily unknown to the coder/programmer. If not is there a way to force the temp folder to something specific that can be worked with? A constant rath...
- 02 May 2013 02:41
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 30843
Re: Convert batch script into an executable or higher langua
Unfortunately batch to exe by F2KO is the primary converter I have been trying to use. CALL and GOTO seem to break it. Especially when calling anything external. Also use of IF EXIST causes problems as well. The .bat files work nearly flawlessly but once converted they crash & close often. I won...
- 02 May 2013 02:03
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 30843
Convert batch script into an executable or higher language
Second EDIT: I've been looking at C# and mono as the most likely candidate for my ventures. EDIT: I kind of babeled a bit in the OP & strayed from the points a bit. In short, can batch scripts be converted to other programming languages? If not what might be the best alternative language to star...
- 29 Apr 2013 03:28
- Forum: DOS Batch Forum
- Topic: Help with loop increment & variables
- Replies: 12
- Views: 11326
Re: Help with loop increment & variables
Everything is done & works flawlessly. Thanks again for the help. I learned a lot along the way. Biggest thing being to stop using notepad & move on to notepad++. It's striking how much better everything is when you can see what you're doing. Such as an open parenthesis or a misplaced space.
- 28 Apr 2013 15:08
- Forum: DOS Batch Forum
- Topic: Help with loop increment & variables
- Replies: 12
- Views: 11326
Re: Help with loop increment & variables
The probem I was having with "goto" moving back makes me feel like a fool. It was a user error involving the space character.
- 28 Apr 2013 04:31
- Forum: DOS Batch Forum
- Topic: Help with loop increment & variables
- Replies: 12
- Views: 11326
Re: Help with loop increment & variables
Thank you a thousand times over! Problems solved. As for the sequential stuff I was wanting. It's no longer important. The last example you gave for reading a directory is a far better alternative. Funny thing about not being able to loop. I tried the following method several times before asking. @e...
- 27 Apr 2013 13:38
- Forum: DOS Batch Forum
- Topic: Help with loop increment & variables
- Replies: 12
- Views: 11326
Re: Help with loop increment & variables
Actually... With a clear and fresh head. The more I look at this, the more it seems I'm over complicating things. Would it be easier, & possibly more sensible, to read from separate path & description files? That way I would just have to ensure the line count was consistent between path &...
- 27 Apr 2013 00:35
- Forum: DOS Batch Forum
- Topic: Help with loop increment & variables
- Replies: 12
- Views: 11326
Help with loop increment & variables
EDIT - Removed example/pseudo code. Figured out how to articulate the root of my problem(s). What I am trying to do is use a loop. I don't quite understand how to loop anything at all. I also don't understand or know how to incrementally change from one sequential file and/or variable to the next. T...
- 26 Apr 2013 23:00
- Forum: DOS Batch Forum
- Topic: Batch to rename and copy a new file
- Replies: 2
- Views: 3702
Re: Batch to rename and copy a new file
I tend to use a backup folder personally. But the same method works for renaming the file. Here's what I personally use. Edited to fix quotation misplacement, set better flag, & explain a little bit. @ECHO OFF SET "backup=C:\Oracle\product\11.2.0\client_1\network\admin\tnsnames_old.ora"...