Search found 34 matches

by Exouxas
31 Jan 2013 11:47
Forum: DOS Batch Forum
Topic: Batch quine
Replies: 2
Views: 4069

Batch quine

So I was reading here on DosTips that a quine returned the script itself, and that the smallest know quine was like 100+ bytes.

After reading that, I made this:

Code: Select all

@echo off&type %0%&pause

(24 Bytes)

Is this considered a quine?
Seems quite simple.
by Exouxas
30 Jan 2012 10:10
Forum: DOS Batch Forum
Topic: FEx - Folder Explorer HELP
Replies: 6
Views: 6699

Re: FEx - Folder Explorer HELP

The reason i want this script is to be able to run *.exe files in a folder on a pc with group policy (my school computer), the IT guys at my school has blocked most folders but so far there has been two folders they did not block, and we used them until they found out about them. So, no malicious ma...
by Exouxas
30 Jan 2012 08:59
Forum: DOS Batch Forum
Topic: FEx - Folder Explorer HELP
Replies: 6
Views: 6699

Re: FEx - Folder Explorer HELP

The reason I'm making this script is to check if the folder has limitations towards executing/copying .exe files, so its supposed to try ALL the folders :P
by Exouxas
30 Jan 2012 05:13
Forum: DOS Batch Forum
Topic: FEx - Folder Explorer HELP
Replies: 6
Views: 6699

FEx - Folder Explorer HELP

Hi, all. Recently i have been trying to make the FEx, Folder Explorer. I never thought it would be easy, but i didnt think it would be as hard as this. Green is what I've done, the red is what i havent done yet. The basic idea is: The FEx batch file starts out in a folder, checks the name of all fol...
by Exouxas
23 Nov 2011 10:51
Forum: DOS Batch Forum
Topic: Batch file to change files location.
Replies: 3
Views: 5083

Re: Batch file to change files location.

I'm gonna try writing a script for you, but first i could tell you the basic idea: first you use for /f and split the directory string wherever \ is and use the part number 5 and 6 if its only in one directory, so it would make two values and set them to those two stings. c:\User\Desktop\Main\first\...
by Exouxas
26 Sep 2011 13:14
Forum: DOS Batch Forum
Topic: batch file wont write %Q% to a text file
Replies: 2
Views: 3723

Re: batch file wont write %Q% to a text file

When using math with the 'set' command, you do 'set /a'
and remove all the " thingys
Also, why do you have the :start when you dont use it?
by Exouxas
14 Sep 2011 02:57
Forum: DOS Batch Forum
Topic: Help with the "gtr" "lss" etc arguments in the "if" command
Replies: 4
Views: 11770

Re: Help with the "gtr" "lss" etc arguments in the "if" comm

BASIC: line1: if VARIABLE1 gtr VARIABLE2 goto 1greaterthan2 line2: if VARIABLE1 lss VARIABLE2 goto 1lessthan2 line3: if VARIABLE1 equ VARIABLE2 goto 1equal2 line4: if VARIABLE1 neq VARIABLE2 goto 1notequal2 line5: if VARIABLE1 leq VARIABLE2 goto 1lessorequal2 line6: if VARIABLE1 geq VARIABLE2 goto 1...
by Exouxas
14 Sep 2011 02:38
Forum: DOS Batch Forum
Topic: for /f and findstr help please
Replies: 4
Views: 5372

Re: for /f and findstr help please

or just use findstr and do the same process
by Exouxas
13 Sep 2011 16:20
Forum: DOS Batch Forum
Topic: Need help deleting files within a folder.
Replies: 8
Views: 7489

Re: Need help deleting files within a folder.

i wanted to exclude them FYI
by Exouxas
13 Sep 2011 15:50
Forum: DOS Batch Forum
Topic: for /f and findstr help please
Replies: 4
Views: 5372

Re: for /f and findstr help please

If anyone know how to do any part of this script, just post it, you dont need to help me with the whole thing.
by Exouxas
13 Sep 2011 15:48
Forum: DOS Batch Forum
Topic: Epic-ish idea!
Replies: 5
Views: 6758

Re: Epic-ish idea!

dosent work for me, but if its like the 'help' command, then i'd rather have a wiki, lol

first of all the help command dosent show examples nor explain the commands good enough ( for me atleast )
by Exouxas
13 Sep 2011 15:20
Forum: DOS Batch Forum
Topic: Need help deleting files within a folder.
Replies: 8
Views: 7489

Re: Need help deleting files within a folder.

Got a genious idea of how to do this now.

copy/move the two files to the previous directory, remove the folder they were in, then make a new folder and put the files in there
by Exouxas
13 Sep 2011 15:13
Forum: DOS Batch Forum
Topic: Need help deleting files within a folder.
Replies: 8
Views: 7489

Re: Need help deleting files within a folder.

So theres no way of deleting everything in a folder except two specific files?
by Exouxas
13 Sep 2011 14:27
Forum: DOS Batch Forum
Topic: Epic-ish idea!
Replies: 5
Views: 6758

Epic-ish idea!

Okay, Heres the idea: The administrator/owner makes a new 'forum thingy' and all that is allowed to post there is facts about commands example: set used to set a variable to something Now when people reply information that can be used to expand the explaination, the creator of the thread updates the...
by Exouxas
13 Sep 2011 12:53
Forum: DOS Batch Forum
Topic: for /f and findstr help please
Replies: 4
Views: 5372

for /f and findstr help please

Hi, me again ^^ this is the text in textfile.txt: @echo off cls rem version#2.8# ((((lots of code that will be used later for a certain use)))) Now, what i want it to do is: Green : variable Blue : directory / file Red : Step number Pink : Stuff i want to be pink Purple : Command #1 : Check for a li...