Jump to content

littleguy1

Active Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by littleguy1

  1. Thank you for showing me sites, petertfm. I learned a lot from your help. :) -littleguy1
  2. It worked! That is really awesome petertf. Thank you so much!! Just one more question, when you do /K and /F what are those variables supposed to be? Are they key terms in MDOS? Thank you for helping me out. littleguy1
  3. Thank you petertfm! I tried the code below on the run box and it worked. :) For the part you had "DO SET DLETTER=%G" I want to be able to save that variable name to access other files on that same Drive as well but once the command is executed the command line prompt closed. I tried doing something like: Keyboard.print("cmd.exe /C FOR /F %I IN ('wmic logicaldisk WHERE \"DriveType=2\" LIST BRIEF ^| FIND \""); Keyboard.print("PNYJUMP"); Keyboard.print("\"') DO %I"); Keyboard.print("folder\\script.bat"); Keyboard.print(" DO move hello.txt %I"); It didn't work... How do you keep that %I value on the command line and keep the command window open? Thank you for sharing your code. littleguy1
  4. Hi peterfm! Thanks a bunch for showing me the library you made. I think it's impressive. I will try to see if that will work for Teensy on Windows. :) Thanks again! littleguy1
  5. Hahaha Nah, I call my little Teensy the little guy :) I am a female, I find there's not a lot of females in these forums...but anyway, thanks for the suggestions. Um, what do you know about external devices? I have tried different commands to get the output but it doesn't lead me to anywhere. I did: fsutil fsinfo devices The command line returns: C: D: E: F: All the devices that are currently occupied on my computer. But then again, it doesn't tell me much about where the SD card is. Thanks, littleguy1
  6. Since Teensy is a one way device, I suppose the only thing is to have it run scripts then....:( But back to finding which drive the computer named the mounted SD Card, how would I code the .bat file so that I know where it is? For Mac, I could just go to /Volumes/MemoryCard/ but for windows, there are different drive letters... I do not want to ask you to code it for me, I just need some hints or examples so that I can figure it out myself. By the way, thank you for answering. :) Littleguy1
  7. Thank you for replying so quickly! I had what you suggested, have Teensy execute a script on the command line. I had Teensy open up the terminal. Then it types into the command prompt every possible drive name E:\Scripts>F: E:\Scripts>file or directory not found E:\Scripts>runscript.bat E:\Scripts>copy NUL hi.txt <- it executes the same script even though its not supposed to if the drive is not found. ... Then it executes a script. That was my way of finding the mounted sd card and execute the script. But, it ended up executing the same script 5 times since every time the drive letter changes and it doesn't exist, the command prompt would stay at that drive and execute the current script.... If there's a way for teensy to find out what drive Windows mounted the Sd card to execute the script....that would be great. littleguy1
  8. Hey guys! I just got started with Teensy. I am currently working on a Windows Machine and I wanted to experiment with how Teensy works with the command prompt. I wanted to program teensy to type in commands, then receive the command prompt output. Does anyone know how I can do that? I really need help so I hope someone could answer my question? Thank you very much. SIncerely littleguy1
×
×
  • Create New...