ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Coding Snacks

for %%a in (*) do start "" "%%a"

(1/2) > >>

Contro:
What exactly does this line of batch code ? :

for %%a in (*) do start "" "%%a"


I don't recommend to use.
Collapse two times my system.

 :-[

lujomu:
It launches EVERY file and folder in the current directory.
I.e. it runs every executable or script files, opens every other file in its respective app and opens an explorer window for every folder.

A little trick to identify what a loop actually does is to insert the word "echo" after "do". This will print out each command instead of executing it:

--- ---for %%a in (*) do echo start "" "%%a"
Hope that helps!

KynloStephen66515:
What exactly does this line of batch code ? :

for %%a in (*) do start "" "%%a"


I don't recommend to use.
Collapse two times my system.

 :-[
-Contro (October 12, 2014, 02:55 PM)
--- End quote ---

So you ran a batch file that you didn't have clue what it did?    Seems like a totally reasonable and safe things to do...lmao

Contro:
It launches EVERY file and folder in the current directory.
I.e. it runs every executable or script files, opens every other file in its respective app and opens an explorer window for every folder.

A little trick to identify what a loop actually does is to insert the word "echo" after "do". This will print out each command instead of executing it:

--- ---for %%a in (*) do echo start "" "%%a"
Hope that helps!
-lujomu (October 12, 2014, 04:41 PM)
--- End quote ---


But really don't go.
I try and collapse also with an execution from a folder containing eight urls and collapsed.

Contro:
Ejem I tried because comes in a forum for years i use, but not always What exactly does this line of batch code ? :

for %%a in (*) do start "" "%%a"


I don't recommend to use.
Collapse two times my system.

 :-[
-Contro (October 12, 2014, 02:55 PM)
--- End quote ---

So you ran a batch file that you didn't have clue what it did?    Seems like a totally reasonable and safe things to do...lmao
-Stephen66515 (October 12, 2014, 04:45 PM)
--- End quote ---

I try because was posted in a forum i visit several years ago....

 :-[

Navigation

[0] Message Index

[#] Next page

Go to full version