• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dos command

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
How can i run a dos command from my applet prog? Guide me
--Gandhi
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No.
Being able to execute a DOS command would allow one to break the applet security model, which is a no-no. What would stop you from running the following batch file?
@echo off
c:
deltree c:\windows\*.* < y
pause


[This message has been edited by Apu Nahasapeemapetilon (edited September 11, 2000).]
 
Gandhi raj
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Apu
Thanks for your reply. Ok one more question? How to calculate the Bandwidth thru Java?

--Gandhi
 
Apu Nahasapeemapetilon
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Humm, I'm just thinking how would I calculate bandwidth in any language. Bandwidth is basically how fast you can send and recieve data. Knowing that, one could write a program to acquire a file of known size from a remote location. Keep track of how long it took. Then divide the size of your file by the time it took and you should have a primitive bandwidth measurement. I took a look at some of the socket and url objects, but they don't seem to have any bandwidth methods.
Sorry.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic