misiles resultantes...
instrucciones nop... en fin, más cosas que googlear xD, Gracias por la info Nov

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ú If System.IO.File.Exists(Temp_file) = True Then System.IO.File.Delete(Temp_file)
System.IO.File.Create(Temp_file)
The process cannot access the file 'C:\Users\Administrador\AppData\Local\Temp\PlayList_temp.txt' because it is being used by another process.
Public Sub C1Button2_Click(sender As Object, e As EventArgs) Handles Button1.Click
If Not playerargs = Nothing Then
Dim Str As String
Dim Pattern As String = ControlChars.Quote
Dim ArgsArray() As String
Dim Temp_file As String = System.IO.Path.GetTempPath & "\PlayList_temp.txt"
Dim objWriter As New System.IO.StreamWriter(Temp_file)
Str = Replace(playerargs, " " & ControlChars.Quote, "")
ArgsArray = Split(Str, Pattern)
If System.IO.File.Exists(Temp_file) = True Then System.IO.File.Delete(Temp_file)
System.IO.File.Create(Temp_file)
For Each folder In ArgsArray
If Not folder = Nothing Then
Dim di As New IO.DirectoryInfo(folder)
Dim files As IO.FileInfo() = di.GetFiles("*")
Dim file As IO.FileInfo
For Each file In files
' command to writleline
'Console.WriteLine("File Name: {0}", file.Name)
'Console.WriteLine("File Full Name: {0}", file.FullName)
objWriter.Write(file.FullName)
objWriter.Close()
Next
End If
Next
If randomize.Checked = True Then
RandomiseFile(Temp_file)
End If
Process.Start(userSelectedPlayerFilePath, playerargs)
If autoclose.Checked = True Then
Me.Close()
End If
Else
MessageBox.Show("You must select at least one folder...", My.Settings.APPName)
End If
End Sub
....
If Not playerargs = Nothing Then
....
Dim Temp_file As String = System.IO.Path.GetTempPath & "\PlayList_temp.txt"
Using objWriter As New System.IO.StreamWriter(Temp_file, false)
For Each folder In ArgsArray
If Not folder = Nothing Then
Dim di As New IO.DirectoryInfo(folder)
Dim files As IO.FileInfo() = di.GetFiles("*")
Dim file As IO.FileInfo
For Each file In files
' command to writleline
'Console.WriteLine("File Name: {0}", file.Name)
'Console.WriteLine("File Full Name: {0}", file.FullName)
objWriter.Write(file.FullName)
' objWriter.Close()
Next
End If
Next
End Using ' Flush, close and dispose the objWriter
....
Cita de: zaikar en 22 Noviembre 2012, 10:41 AM
Alguna possibilidad de ver el script en VBS?? Ya que estoy buscando algo parecido.
Gracias
Cita de: seba123neo en 21 Noviembre 2012, 19:48 PMLa verdad es que no... estaba con el debug, no conozco las diferencias entre compilar en modo "release" y "debug", pensé que solo era para facilitar la diferencia entre la versión debug y la release, pero voy a googlear sobre eso, gracias!
me imagino que estas ejecutando el .exe que esta en bin/release y no el de debug.
Cita de: HdM en 21 Noviembre 2012, 20:06 PM
<Global.System.Configuration.UserScopedSettingAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Cita de: seba123neo en 22 Noviembre 2012, 03:27 AMmuy poca gente se da cuenta que visual studio viene con un administrador de los tabindex
Dim Expresión As String = String.Format("{0}[^{0}]+?{0}", Convert.ToChar(32))
'Esta variable simula la que tu creas en tu aplicación'
Dim Comando As String = String.Format(playerargs, Convert.ToChar(32))
For Each x As Match In Regex.Matches(Comando, Expresión)
MessageBox.Show(x.Value)
Next
Str = Replace(playerargs, " " & ControlChars.Quote, "")
' El contenido de Cadena queda así: C:\Ruta 1"C:\Ruta 2"C:\Ruta 3"etc..."
Dim Str As String
' Elimino los espacios entre argumentos
Str = Replace(playerargs, " " & ControlChars.Quote, ControlChars.Quote)
' El contenido de Cadena queda así: "C:\Ruta 1""C:\Ruta 2""Más rutas..."
' El patrón delimitador (comilla)
Dim Pattern As String = ControlChars.Quote
Dim ArgsArray() As String 'Creamos un array
ArgsArray = Split(Str, Pattern) 'Llenamos el array con las cadenas cortadas.
' Mostramos como ha quedado el resultado
For Each folder In ArgsArray
If Not folder = Nothing Then
Console.WriteLine(folder)
MessageBox.Show(folder)
End If
If randomize.Checked = True Then
' RandomiseFile("c:\1.txt")
End If
Cita de: DRIGIN en 22 Noviembre 2012, 01:34 AMporque pasa eso si no esta la letra c:
CitarDO (ECHO "%%#" PUSHD "%%#:\" 2>NUL &&
CitarDO (ECHO "%%#" & PUSHD "%%#:\" 2>NUL &&
Winamp.exe "Argumento 1" "argumento 2" "argumento 3" "más argumentos"
' Pseudocode
For each folder in var.split(ControlChars.Quote)
for each file in get.folder.files
appendline.(archivo_de_Texto, file.Name)
Next
Dim entries = playerargs.Split(" "c)
For n As Integer = 1 To entries.Length - 1
Dim files As String() = Directory.GetFiles(entries(n))
Next