Search found 1007 matches

by abc0502
14 Apr 2013 01:27
Forum: DOS Batch Forum
Topic: copy extra files from source to target location
Replies: 6
Views: 5793

Re: copy files from sourc to target location which is not co

This should do what you need, @Echo OFF Color 0E REM These Are the Location of your source and target folders SET "Source=%userprofile%\desktop\New Folder\source" SET "Target=%userprofile%\desktop\New Folder\target" SET "Extensions=jpeg jpg" REM Using Xcopy command to c...
by abc0502
14 Apr 2013 01:06
Forum: DOS Batch Forum
Topic: Finding Words in a File and Copying Strings
Replies: 3
Views: 3643

Re: Finding Words in a File and Copying Strings

Copy where ?!
BTW, add a
pause
after Foxidrive code to see the result.
by abc0502
14 Apr 2013 00:58
Forum: DOS Batch Forum
Topic: copy extra files from source to target location
Replies: 6
Views: 5793

Re: copy files from sourc to target location which is not co

So, you just want to copy all the files that isn't in the target folder, right ?
and what if a file with the same name but different time/date ? will you overwrite ?

And is there any other files in the source folder with the images ?
by abc0502
11 Apr 2013 12:31
Forum: DOS Batch Forum
Topic: FIND and replace all
Replies: 13
Views: 9086

Re: FIND and replace all

if your code you want to replace and the one that will be replaced with is consisting from two lines then replace each line alone, your KeyValueFile should be like this: if (loUserAgent.toLowerCase().indexOf("firefox") > -1 : if (loUserAgent.toLowerCase().indexOf(aaa.FIRE_FOX) > -1 || (loU...
by abc0502
11 Apr 2013 06:23
Forum: DOS Batch Forum
Topic: Find and replace string using batch
Replies: 69
Views: 49808

Re: Find and replace string using batch

The only space i can find is in line 14 SET /P "ReplaceWith=> " make that line like this and test SET /P "ReplaceWith=>" Edited: Or f it happens in all your tests we can remove the last character by changing the " !FinalLine! " to " !FinalLine :~0,-1 ! ". that...
by abc0502
10 Apr 2013 14:22
Forum: DOS Batch Forum
Topic: FIND and replace all
Replies: 13
Views: 9086

Re: FIND and replace all

The KeyValueFile is in this format: OldWord To Replace : NewWord To Replace With The words can contain spaces , but it must be separated by a colon, or you can change the separator variable with the separator in your file. Old words in the left, new words in the right. Make sure the separator is not...
by abc0502
10 Apr 2013 05:54
Forum: DOS Batch Forum
Topic: FIND and replace all
Replies: 13
Views: 9086

Re: FIND and replace all

no, it's not case sensitive, i just tested again
by abc0502
09 Apr 2013 19:08
Forum: DOS Batch Forum
Topic: Could use some help with how to do batch code?
Replies: 33
Views: 20806

Re: Could use some help with how to do batch code?

sorry the function i posted has error, i will update the post again.
by abc0502
09 Apr 2013 18:59
Forum: DOS Batch Forum
Topic: Could use some help with how to do batch code?
Replies: 33
Views: 20806

Re: Could use some help with how to do batch code?

Updated my post!

BTW, any one experience any heavy in loading editing or posting on forum or it's just me :?
by abc0502
09 Apr 2013 18:13
Forum: DOS Batch Forum
Topic: Could use some help with how to do batch code?
Replies: 33
Views: 20806

Re: Could use some help with how to do batch code?

Ok, try this, i hope that what you need There will be no check.bat or other batch files, just one. Put that batch in the start-up folder or in the registry, and when it runs it do the following: Check to see if a log file exist: [+] IF not that means it is the first time and it will create a log fil...
by abc0502
09 Apr 2013 16:43
Forum: DOS Batch Forum
Topic: FIND and replace all
Replies: 13
Views: 9086

Re: FIND and replace all

Try This on Sample files First, I tested but test it yourself. Take a backup copy of all your files, the batch create a .backup copy but can be overwritten if the batch run twice. > All what you have to do is to set the first 4 variables [ lines 4 to 7 ] > Don't put the batch file in the main folde...
by abc0502
09 Apr 2013 15:39
Forum: DOS Batch Forum
Topic: FIND and replace all
Replies: 13
Views: 9086

Re: FIND and replace all

we had this problem before, not same but very similar, replace text in a file with another here
it just need a small tweak to work, but first what is the separator between the key-value words, and is the seprator itself exist in any of the keys or the values ?
by abc0502
09 Apr 2013 15:34
Forum: DOS Batch Forum
Topic: Could use some help with how to do batch code?
Replies: 33
Views: 20806

Re: Could use some help with how to do batch code?

I have a suggestion, You don't set a specific time the task run in every 30 days, then why you don't just skip the task scheduled, it make too many troubles, you can't take the query as it might be different from system to other like xp and 7 and you must make the exe file create some sort of a log ...
by abc0502
08 Apr 2013 03:43
Forum: DOS Batch Forum
Topic: Find and replace string using batch
Replies: 69
Views: 49808

Re: Find and replace string using batch

i don't know exactly, but if the cmd put the value it self it can escape it but if you give a value from out to the cmd you have to escape it. like a problem i had before in Unicode names , i can't pass Unicode characters to the batch or set it inside the batch, but after i used a for command and a ...
by abc0502
08 Apr 2013 03:19
Forum: DOS Batch Forum
Topic: Find and replace string using batch
Replies: 69
Views: 49808

Re: Find and replace string using batch

instead of directly echo the line like this:
echo !line:%Replace%=%ReplaceWith%!

we set the whole variable to another variable and then echo the new one