Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old June 18th, 2009, 01:35 PM
Sk.Barcode Sk.Barcode is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 1 Sk.Barcode User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 27 sec
Reputation Power: 0
NT Batch - Help with batch

I need to put a batch file in my flash drive so that when i start my flash drive up it will auto run cmd and type in ipconfig.
my motive is that I want to plug it into my computer and it automatically will go to the IP address.
Unless there is another program i can put in it

help appreciated

Reply With Quote
  Trader Rating: 0 · #2  
Old July 14th, 2009, 08:25 PM
omrsafetyo's Avatar
omrsafetyo omrsafetyo is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Maine, USA
Posts: 305 omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Days 22 h 55 m 17 sec
Reputation Power: 222
Send a message via AIM to omrsafetyo
Writing the batch script for this isn't a problem - the problem is getting the file to autorun on any computer that you plug it into.

Windows does not allow removable storage aside from the CD drive to run automatically. Only fixed drives and CD media can have autorun properties in Windows. Therefore, in order for this to potentially work, you would need to modify every windows installation that you need this to function on - which not only creates extra work, but also defeats the purpose.
You would have to make sure that your particular media stick does not get marked as removable storage; create an autorun.inf file on the usb drive; and then have your .bat file to run from the inf file. Way too much work for such a simple command - especially considering you would have to modify each PC before hand.

I don't think you will find a solution to this.

Reply With Quote
  Trader Rating: 0 · #3  
Old July 14th, 2009, 08:47 PM
JohnFrank's Avatar
JohnFrank JohnFrank is offline
Contributing User
Click here for more information
Click here for more information
 
Join Date: Jan 2008
Location: Lilyfield NSW Australia
Posts: 1,561 JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 116th Grade (Above 100000 Reputation Level)  Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44Folding Points: 21974789 Folding Title: Super Ultimate Folder - Level 44
Time spent in forums: 2 Weeks 6 Days 22 h 52 m 47 sec
Reputation Power: 8694
Send a message via MSN to JohnFrank
You mention on your computer is this your own home PC or a work PC?

Do you want the ipconfig to display or change the IP settings?

Why every time you plug in the USB stick? from your brief explanation what you are asking to do does not make sense, so can you explain a little more.

Can you also let us know what OS you are running as all of this may have bearings on permissions and OS version specifics as well.
__________________

Reply With Quote
  Trader Rating: 0 · #4  
Old November 4th, 2009, 03:47 PM
Corbin Dallas Corbin Dallas is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Posts: 5 Corbin Dallas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 53 sec
Reputation Power: 0
The feature you mentioned (autorun) has been disabled in the OS for security reasons.

There are however, ways around this but you will need to find that info for yourself. It would be considered "hacking" to force the OS to autorun the USB from the USB.

I had a similar project to gather ALL info about a PC and dump it to an inventory file. When you gather 2000+ pc's information, typing each time sucks.

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > NT Batch - Help with batch


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
     
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek