Search found 7 matches

by Cander
06 Nov 2009 14:08
Forum: DOS Batch Forum
Topic: Is Hacking Fun?
Replies: 4
Views: 6689

Hacking doesn't necessarily be something illegal, mean or stupid. It can also be about exploring and testing computers, learning how things work and use them for "good" purposes.
by Cander
03 Mar 2009 03:27
Forum: DOS Batch Forum
Topic: how to attach a .bat to a jpg
Replies: 2
Views: 5477

That had been to good, wouldn't it? :?
by Cander
13 Jan 2009 15:59
Forum: DOS Batch Forum
Topic: using .bat to search the folder and compres files into zip.
Replies: 11
Views: 13669

Yes, this should be possible to do with a pretty simple batch file. Not an expert on this parts, but I know that you can zip and unzip from cmd, so there shouldn't be problems doing this.
by Cander
13 Jan 2009 01:34
Forum: DOS Batch Forum
Topic: If statement problem
Replies: 1
Views: 5365

If statement problem

I just figured out that it's some strange with this... This works as long you don't use spaces or like semicolon etc in the variable. Then the batch crash and I don't know why... @echo off Set /p connect=Users IP Address/computername: IF /i %connect%==end ( GOTO END ) ELSE ( echo %connec...
by Cander
12 Jan 2009 18:46
Forum: DOS Batch Forum
Topic: Variable Question
Replies: 4
Views: 8476

Hi Cander, hmm. The idea here was to get the connect1's variable value "1243" into the variable value? That's my intention. What does the triple %%% do? Why the call? The triple %%%, read it as (%%)%str%(%%), the rule is: %% will "expand" to a single % without any other meaning,...
by Cander
11 Jan 2009 16:38
Forum: DOS Batch Forum
Topic: Variable Question
Replies: 4
Views: 8476

jeb wrote:Hi Cander,

try this for indirect variable access

Code: Select all

set connect1=1243
set str=connect1

call set value=%%%str%%%
echo %value%


jeb


hmm. The idea here was to get the connect1's variable value "1243" into the variable value?

What does the triple %%% do? Why the call?
by Cander
01 Jan 2009 16:13
Forum: DOS Batch Forum
Topic: Variable Question
Replies: 4
Views: 8476

Variable Question

Hello, Was making a batch and ended up with a little problem. If you for example got the following: Set HelloThere1=something Set HelloThere2=something Set HelloThere3=something Set B=Hello Set C=There1 (Just to describe easy. In my case variable B and C is diffrent everytime) Is there then anyway t...