Question:
Help with Batch coding in computers?
2009-05-10 13:49:35 UTC
Hello i am making a log in database in windows notepad

So far the coding is pretty sweet but i am having problems with the part were the computer remembers the Passwords

I want to make it so u can set your own passwords

So I need the command to create a New Folder

I dont know the file extention for a folder there for i cannot do it and i cn not find it anywere online

example like a word doc is .txt

If i needed to create a file like

set /p psw=Your Password:
echo %psw%>>users\%nme%.(extentionforfilehere)

I need the file extention so i can create a database thanks!
Five answers:
The Phlebob
2009-05-10 19:55:00 UTC
Folders don't have extensions, although they can contain a period and characters that look like an extension.



If you want to make a folder with a particular name, use the mkdir or md (same thing) command.



Hope that helps.
2016-12-04 15:25:44 UTC
Code is under. put in the suited-optimal itemizing you opt to delete from (like C:). this would delete from all subdirectories. it is going to additionally in all probability take a protracted term. I even have not examined it on an finished rigidity for glaring motives, yet I even have examined it on some folders/information. @echo off set ext_list=(jpg png gif) for %%X in %ext_list% do ( del /Q /S *.%%X ) "@echo off" in simple terms avoids repeating the command indoors the window. "ext_list" includes each and every of the different record extensions you opt to delete. "for %%X in %ext_list% do (,.,,)" runs the instructions indoors the loop (...) for each record extension indoors the record. each and every record extension gets assigned to the variable %%X. "del /Q /S *.%%X" says to delete (del) without inquiring for affirmation (/Q) from this and all subdirectories (/S) all information (* is a wildcard) that have the extension (.%%X). you would be able to desire to consistently throw a "pause" in there on the top in case you decide on the command window to persist so as which you will see which information have been deleted and watch for a key press in the previous exiting.
t3po7re5
2009-05-10 13:57:00 UTC
You can try just storing everything in one text file
Colged
2009-05-10 13:57:18 UTC
md driveletter:\foldername would probably work?



Cheers,



Colin
2009-05-10 13:54:33 UTC
Who are you hacking?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...