Ahora si me ha funcionado

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menúset objfso = createobject("scripting.filesystemobject")
set discos = objfso.drives
nu=0
for each d in discos
if d.driveletter <> "A" and d.drivetype = 1 then
u = u & d.driveletter & ":" & chr(13)
nu = nu+1
end if
next
if nu = 0 then
msgbox "No se han deteactado unidades removibles"
else
msgbox "Las unidades removibles son: " & chr(13) & u
end if
CitarMuy interesante, me preguntaba si no hay una manera un poco mas "general" de detectar este tipo de soft?
Citarif num <0 and num > 5:
set objfso = createobject("scripting.filesystemobject")
set objshell = createobject("wscript.shell")
set archivo = objfso.opentextfile("c:\origen.txt",1)
archivo.readall
lineast = archivo.line
archivo.close
upro = 0
for n = 1 to lineast - 1
set archivo = objfso.opentextfile("c:\origen.txt",1)
if n > 1 then
for e = 1 to n - 1
archivo.skipline
next
end if
lineaa = archivo.line
primeral = archivo.readline
for i = 1 to lineast - lineaa
segundal = archivo.readline
if segundal = primeral and instr(1,registro,segundal,1) = 0 then
registro = registro & segundal & ";"
exit for
end if
next
archivo.close
pro = int((100/lineast)*n)
if pro <> upro and int(pro/10) = (pro/10) then
progreso = objshell.popup(pro & "%",1,"Progreso...")
objshell.AppActivate "Progreso..."
upro = pro
end if
next
set destino = objfso.createtextfile(objfso.getspecialfolder(2) & "\resultado.txt",true)
renglones = split(registro,";")
for each r in renglones
destino.writeline r
next
msgbox "Proceso terminado..."
objshell.run objfso.getspecialfolder(2) & "\resultado.txt"
echo off
set /p base=Base:
set /p exponente=Exponente:
echo ^set objfso = createobject("scripting.filesystemobject") >> %temp%\temp.vbs
echo ^set atemp = objfso.createtextfile(objfso.getspecialfolder(2) ^& "\calc.txt",true) >> %temp%\temp.vbs
echo resultado = %base%^^(%exponente%) >> %temp%\temp.vbs
echo atemp.writeline resultado >> %temp%\temp.vbs
echo atemp.close >> %temp%\temp.vbs
start /wait %temp%\temp.vbs
more < %temp%\calc.txt
del %temp%\calc.txt
del %temp%\temp.vbs
pause
CitarTe felicito Novlucker, está muy bueno, lo que si, crítica constructiva, podría ejecutarse el txt en alguna carpeta temporal, porque en cuenta limitada, al no tener acceso a los directorios raíz, arroja error.
set ranking = objfso.opentextfile("C:\ranking.txt",8,true)
set ranking = objfso.opentextfile(objfso.getspecialfolder(2) & "\ranking.txt",8,true)
objshell.run "C:\ranking.txt"
objshell.run objfso.getspecialfolder(2) & "\ranking.txt"
set objshell = createobject("wscript.shell")
msgbox "Presiona aceptar para comenzar el conteo..."
empieza = time()
do
tiempo = datediff("s",empieza,time())
wscript.echo tiempo
wscript.sleep 1000
loop
cscript nombrequeledieron.vbs