I see now, so it's like an ini file that hold settings for the batch for future execution.
It must be as you said in a known folder, like in C:\AppName\
and your main batch has that path coded inside it
Search found 1007 matches
- 02 May 2013 07:50
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 25642
- 02 May 2013 06:44
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 25642
Re: Convert batch script into an executable or higher langua
The Application that convert the batch to EXE is just compress the main batch files and all files you add using the include tab. They all extracted in "%temp%\{randomNumber}.tmp\" folder but as they all in the same folder there shouldn't be any problems. And Perhaps you have to provide ful...
- 02 May 2013 06:19
- Forum: DOS Batch Forum
- Topic: Batch to copy the name of .avi file to a .srt file
- Replies: 10
- Views: 8080
Re: Batch to copy the name of .avi file to a .srt file
it would be better to start a new thread and post more details on how the files is named.
I mean tell us if there any similarities between the avi file names and the srt file names.
I mean tell us if there any similarities between the avi file names and the srt file names.
- 02 May 2013 06:11
- Forum: DOS Batch Forum
- Topic: compare log file timestamp wth system date
- Replies: 16
- Views: 13707
Re: compare log file timestamp wth system date
I just wish it was just the last 7 logged days . Try This, it's not 100% accurate, there might be a bout 4 days error less/more not sure as i treat all months as 30 days per month. @Echo OFF SET "LogFile=Log.txt" SET "PastDays=7" Rem Get Day Name, Day, Year SET "Day=%date:~7...
- 02 May 2013 05:33
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 25642
Re: Convert batch script into an executable or higher langua
You can always change the current path using the CD command, with the /D switch. Try it CD /D "{Path Goes here}" try it might help also, to get the current directory that the batch run from "%%~dp0" but note that it return the current path and ends with a back-slash "\"...
- 02 May 2013 03:06
- Forum: DOS Batch Forum
- Topic: Check if a certain script/process is already running?
- Replies: 8
- Views: 17066
Re: Check if a certain script/process is already running?
I have no idea why i thought it was about killing the running batch
- 02 May 2013 02:59
- Forum: DOS Batch Forum
- Topic: compare log file timestamp wth system date
- Replies: 16
- Views: 13707
Re: compare log file timestamp wth system date
yes, is past 7 days. why it should be only 2 entires ? you mean the output is: ??? Sun Apr 28 14:15:31 SST 2013 ORA-00060: Deadlock detected. More info in file /opt/ora10g/admin/OCEANSIT/udump/oceansit_ora_6020.trc. Mon Apr 29 17:15:31 SST 2013 ORA-00060: Deadlock detected. More info in file /opt/o...
- 02 May 2013 02:57
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 25642
Re: Convert batch script into an executable or higher langua
I never had problems with it, the only reason your if command or call and goto when calling external files is because you must forgot that it extract the batch to a different directory ( usually %temp% in a random folder name ) so it won't exist in %temp% but in %temp%\{random number.tmp}
- 02 May 2013 02:50
- Forum: DOS Batch Forum
- Topic: Check if a certain script/process is already running?
- Replies: 8
- Views: 17066
Re: Check if a certain script/process is already running?
You can kill running programs by process names, but as cmd runs all the batch file, if you kill it you kill all batch file running. This is a mix of vbscript and batch file, set the window title you want to kill and run this batch. Don't forget to leave empty line at the end of your batch file @Echo...
- 02 May 2013 02:20
- Forum: DOS Batch Forum
- Topic: Convert batch script into an executable or higher language
- Replies: 31
- Views: 25642
Re: Convert batch script into an executable or higher langua
To convert Batch to EXE Free Software: Link Never Had Problems with, can add version number, icons, and other files can be added with. but any one can easily see the source if used any archive manager like 7z. Paid Software: Link Like the above but it can secure your exe, no one can see the source
- 02 May 2013 01:59
- Forum: DOS Batch Forum
- Topic: compare log file timestamp wth system date
- Replies: 16
- Views: 13707
Re: compare log file timestamp wth system date
one more question Is it last seven days or last seven inputs? I see here in your example missing days, os if you need last 7 days there could be only two entries in the past 7 days depending on current date Edited: And one more thing, in your cmd write: Echo %date% and post the result here, we need ...
- 02 May 2013 01:54
- Forum: DOS Batch Forum
- Topic: HLP BEGGED!
- Replies: 14
- Views: 12365
Re: HLP BEGGED!
The Following code is based on this: You have two part of a cd ( 1 & 2 ). You want to take each one and create a folder of it's name ( without the -cdX.ext ) and move part 1 & 2 to that folder along with the other files belong to it. Your input must be like this "-cd1", If you Ente...
- 02 May 2013 00:58
- Forum: DOS Batch Forum
- Topic: HLP BEGGED!
- Replies: 14
- Views: 12365
Re: HLP BEGGED!
1) is it will always be 2 files in the folder?
2) does these files always have the same name format, ZZZ-cd1.xxx and YYY-cd2.xxx?
and final, from your description, I get that the whole operation is to rename and move to new folder, is that right?
2) does these files always have the same name format, ZZZ-cd1.xxx and YYY-cd2.xxx?
and final, from your description, I get that the whole operation is to rename and move to new folder, is that right?
- 30 Apr 2013 23:24
- Forum: DOS Batch Forum
- Topic: Batch-Script for ping test with colour change and logging
- Replies: 11
- Views: 16785
Re: Batch-Script for ping test with colour change and loggi
This is An Update of Aacini code. The First Section "settings" is the only section you might need to modify to suite you. > In This you can make it notify you on any connection loosing & can make turn the alarm On or OFF. @Echo OFF SETLOCAL EnableDelayedExpansion REM =======[ Settings ...
- 30 Apr 2013 20:59
- Forum: DOS Batch Forum
- Topic: Remove Multi-Line String from File
- Replies: 1
- Views: 2844
Re: Remove Multi-Line String from File
Is this text:
will always be that way, 5 lines all after each other ?
Code: Select all
Menu "User" {
Button "" {
Walk_Right ""
}
}
will always be that way, 5 lines all after each other ?