• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
On top of spaghetti all covered in cheese, there was this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic