Coder Profile - Show off your skills, get a coder profile.
 
 
 
  
Posted: 3.2 Years Ago 

mikeMarek
Canada
Contrib Level: 5
Total Posts: 151
I'm working on a little program tha switches the autorun.inf file on my usb whenever you plug the usb in a computer. I'm doing this so I can randomly change my usb icon each time I plug it in. I'm running into a little trouble regarding some commands on the autorun.inf file. here's basically what I have:
CODE: Copy / Restore  ::  Remove Scroll Bars
  1. [autorun]
  2. open=.\res\autorun.exe
  3. action=open the usb
  4.  
  5. icon=.\res\icons\icon.ico
  6. label=MICHAEL
  7.  
  8. shell\devc=Dev C++
  9. shell\devc\command=.\Dev C++\Dev C++.exe
Basically what I want is that when clicking on the "open the usb" action, I want to run the executable file "autorun.exe", which changes the autorun.inf file. Also, for some reason, clicking on "Dev C++" on the usb will give me an error message saying I can't access that file. And again, I also want to 'explore' the usb when I click on the "open the usb" action, I also want to open the usb window in Windows Explorer. And how can I insert comments? Is it a semi-colon, pound symbol, etc. And how can I run multiple programs on the usb open action, or on a right-click menu action?

Thanks for any help or replies,
-Mike
Page 1 of 1
 
 
Latest News About Coder Profile
Coder Profile Poll
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved