Search found 4316 matches

by Squashman
08 Feb 2012 16:24
Forum: DOS Batch Forum
Topic: Proxy with batch?
Replies: 4
Views: 4081

Re: Proxy with batch?

You might want to give us a little more detail as to what you are trying to accomplish.
by Squashman
08 Feb 2012 16:23
Forum: DOS Batch Forum
Topic: DATE filtering (08 and 09 get error)
Replies: 5
Views: 5457

Re: DATE filtering (08 and 09 get error)

Would help to see the code you are using but I would assume you are using SET /A at some point in your script which will cause that error. I can't assume how you are parsing out the date but you can continue to use additional string parsing to remove the leading zero.
by Squashman
08 Feb 2012 06:53
Forum: DOS Batch Forum
Topic: How to list of used variables ?
Replies: 3
Views: 3855

Re: How to list of used variables ?

for /f "tokens=1,2 delims==" %%G in ('set v') do echo %%H This would give you all the contents of the variables that start with v. Now if you just wanted 14 through 18 you could set a counter variable and use that in the For Loop. After the For Loop you could check the counter variable to...
by Squashman
06 Feb 2012 10:42
Forum: DOS Batch Forum
Topic: Why this doesnt works ? (searching for batch with title)
Replies: 2
Views: 2742

Re: Why this doesnt works ? (searching for batch with title)

I would put an asterisk in your Window Title option.
/FI "windowtitle eq HackGameNotepad*"

And you need to use the /V option to display the Window Title in the output.
by Squashman
05 Feb 2012 13:52
Forum: DOS Batch Forum
Topic: Didn't Expect ( at this moment
Replies: 10
Views: 7711

Re: Didn't Expect ( at this moment

I am not quite sure why you are using those pipes in that one line. I think you are confused on what a pipe does.
by Squashman
04 Feb 2012 19:50
Forum: DOS Batch Forum
Topic: Didn't Expect ( at this moment
Replies: 10
Views: 7711

Re: Didn't Expect ( at this moment

Have you tried escaping the parentheses at the end of your MP3 file name. Put a caret in between life and the parentheses.
by Squashman
04 Feb 2012 16:07
Forum: DOS Batch Forum
Topic: Help with Batch script to move files !!
Replies: 9
Views: 8794

Re: Help with Batch script to move files !!

If you are running XP you will need to install Robocopy first. It is not native to XP.
by Squashman
03 Feb 2012 10:20
Forum: DOS Batch Forum
Topic: Help: Wildcards
Replies: 4
Views: 4524

Re: Help: Wildcards

So you are basically saying you want *.DOCM and *.DOCX but not *.DOC ?

Right now your code would copy all three of them.
by Squashman
02 Feb 2012 06:49
Forum: DOS Batch Forum
Topic: making the Windows mouse cursor temporarily dissappear?
Replies: 5
Views: 9746

Re: making the Windows mouse cursor temporarily dissappear?

Hi yelodena,
This is a Windows batch file specific website. We really don't deal with the issue you are having.
by Squashman
01 Feb 2012 21:41
Forum: DOS Batch Forum
Topic: Is there a way to create a SUB without using a temp file ?
Replies: 25
Views: 41139

Re: Is there a way to create a SUB without using a temp file

Anyone think it could be possible to use Debug to get the SUB character into a variable? Of course this would only work on 32bit Windows.
by Squashman
01 Feb 2012 18:54
Forum: DOS Batch Forum
Topic: Need Wildcard help
Replies: 3
Views: 3216

Re: Need Wildcard help

Sorry that's my fault. Put the POPD command at the end of the batch file.
by Squashman
01 Feb 2012 17:12
Forum: DOS Batch Forum
Topic: Need Wildcard help
Replies: 3
Views: 3216

Re: Need Wildcard help

pushd "\\win2kdevfs1\sharedfolders$\FTP\LOAD\APR_DRG\" for %%i IN (*APR_DATA*.txt) DO call :moveit %%i :moveit IF NOT EXIST '\\dwbaseline\ETLSourceFiles\FlatFiles\Test\%1' COPY \\win2kdevfs1\sharedfolders$\FTP\LOAD\APR_DRG\%1 \\dwbaseline\ETLSourceFiles\FlatFiles\Test\%1 I don't see any r...
by Squashman
01 Feb 2012 10:07
Forum: DOS Batch Forum
Topic: replace a substring by position
Replies: 6
Views: 6751

Re: replace a substring by position

I think this is what you were actually trying to do.

Code: Select all

@echo off
setlocal enabledelayedexpansion
set var=asdfg
echo !var:%var:~1,1%=OK!

output

Code: Select all

E:\batch files\SET_example>example.bat
aOKdfg


EDIT: Dave Beat me!!!
by Squashman
01 Feb 2012 08:49
Forum: DOS Batch Forum
Topic: replace a substring by position
Replies: 6
Views: 6751

Re: replace a substring by position

Code: Select all

H:\>set var=asdfg

H:\>set var=%var:s=OK%

H:\>echo %var%
aOKdfg
by Squashman
31 Jan 2012 19:58
Forum: DOS Batch Forum
Topic: I need a batch script to delete certain data from a .c file
Replies: 4
Views: 4628

Re: I need a batch script to delete certain data from a .c f

I had some code posted for this user on another forum. I guess he didn't check back there before posting here.