Veja O Seu Hd
#1 Visitante - navossoc
Posted 18/04/2003, 20:48
Alguem sabe outro alem deste ??
que tipo mostrasse a lixeira ou algo do gênero ? "nem sei se escrevi mostrasse certo hehehee..."
<script language=JavaScript>
<!--
if (navigator.appName == 'Microsoft Internet Explorer'){
document.write('<br>')
document.write('<center><table><tr><td bgcolor=black><b><font size=5></font></b></td></tr></table></center>')
document.write('<center>')
document.write('<object id="browserIcons" classid="clsid:EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B" align="baseline" border="0" width="764" height="600">')
document.write('<param name="Location" value="C:">')
document.write('<param name="AlignLeft" value="1">')
document.write('<param name="AutoSize" value="0">')
document.write('<param name="AutoSizePercentage" value="100">')
document.write('<param name="AutoArrange" value="0">')
document.write('<param name="NoClientEdge" value="false">')
document.write('<param name="ViewMode" value="1">')
document.write('</object>')
document.write('</center>')
}
// --></SCRIPT>
#2
Posted 18/04/2003, 20:52
#3 navossoc
Posted 18/04/2003, 21:10
#4 navossoc
Posted 18/04/2003, 21:17
#5
Posted 18/04/2003, 21:23
<HTML> <HEAD> <TITLE>DRIVE</TITLE> </HEAD> <BODY> <script language=JavaScript> function DriveList() { var folder=document.Drive.Name.options[document.Drive.Name.selectedIndex].value; document.frames['MyComputer'].location.href = folder; } function FolderChoose() { var location=document.UserLocation.FolderLocation.value; document.frames['MyComputer'].location.href = location; } </SCRIPT> <CENTER> <FONT size="2" face="Verdana">Escolha o drive:</FONT> <FORM name="Drive"> <SELECT name="Name" onchange="DriveList();"> <OPTION selected value=A:\>A:\ Drive</OPTION> <OPTION value=C:\>C:\ Drive</OPTION> <OPTION value=D:\>D:\ Drive</OPTION> <OPTION value=E:\>E:\ Drive</OPTION> </SELECT> </FORM> <IFRAME height="80%" name=MyComputer src="about:blank" width="80%"></IFRAME> </CENTER> </BODY> </HTML>
#6
Posted 19/04/2003, 12:02
O único problema é que este código usa ActiveX, mas é muito útil.
<HTML>
<HEAD>
</HEAD>
<BODY>
<!-- Unknow how this would work on *nix or Mac systems -->
<script language="javascript">
var possibleDrives = Array("C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
var fso = new ActiveXObject("Scripting.FileSystemObject");
for(var i=0; i<possibleDrives.length; i++){
drvPath = possibleDrives[i]+":\\";
try{
drv = fso.GetDrive(fso.GetDriveName(drvPath));
s = "Drive " + drvPath.toUpperCase()+ " - ";
s += drv.VolumeName + "<br />";
s += "Total Space: " + drv.TotalSize / 1024;
s += " Kb" + "<br />";
s += "Free Space: " + drv.FreeSpace / 1024;
s += " Kb" + "<br />";
document.writeln(s+"<br />");
}
catch(e){}
}
</script>
</BODY>
</HTML>
Ele especifica o tamanho de cada driver instalado no PC do usuário.
O Código do Developer é bom, pois não usa ActiveX, mas não consegue checar se o usuário possui ou não o Drive E, por exemplo.
Grato,
// Dados:
Nome("Guilherme Blanco");
Localidade("São Carlos - SP/Brasil");
Cargo("Manutenção");
</script>
#7 navossoc
Posted 19/04/2003, 18:52
#8 navossoc
Posted 19/04/2003, 18:55
soh mudei uns negocios que deu para mostrar varias coisas adicionais vlw msm veio
#9
Posted 19/04/2003, 19:17
Para mostrar o C:
<iframe src="file///C|/"></iframe>Para mostrar a lixeira:
<iframe src="file///C|/recyclebin"></iframe>
e assim por diante...
#10
Posted 16/09/2003, 12:04
Esse codigo é util para mim ... sabe algum site onde posso achar códigos semelhantes???
#11
Posted 16/09/2003, 13:20
vou experimentar alguns deles...
Edição feita por: San Goku, 16/09/2003, 13:20.
#12
Posted 25/07/2006, 12:34
Isto funcinava antigamente que eu lembro.... mas agora to precisando disso, mostrar as pastas do usuário, só que no Windows XP com IE 6 tem jeito??
#13
Posted 25/07/2006, 14:21
Clique no botão Procurar... (ou Browse...)
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)