IPB

Benvenuto Visitatore ( Log In | Registrati )

Seguici su:    
 
Reply to this topicStart new topic
> [GUIDA] Creare un programmino che trova i file NDS, Trova se la sd è inserita e in quale unità
.:nastys:.
messaggio Sunday 11 October 2009 - 17:03
Messaggio #1

Utente GBARL
Gruppo icone

Gruppo: Membri
Messaggi: 42
Iscritto il: Sun 11 October 2009 - 14:48
Utente Nr.: 40.869
Feedback: 0 (0%)




Eccoci alla mia proma guida biggrin.gif
Questo programma trova la microSD della flashcard se è inserita nel computer e da anche la lettera di unità.
Ecco gli step di base:

1.Aprire Blocco Note
2.Copia e incolla del codice:
CITAZIONE
@echo off
if exist E:\*.nds goto existe
if exist F:\*.nds goto existf
if exist G:\*.nds goto existg
if exist H:\*.nds goto existh
if exist I:\*.nds goto existi
if exist J:\*.nds goto existj
if exist K:\*.nds goto existk
if exist L:\*.nds goto existl
if exist M:\*.nds goto existm
if exist N:\*.nds goto existn
if exist O:\*.nds goto existo
if exist P:\*.nds goto existp
if exist Q:\*.nds goto existq
if exist R:\*.nds goto existr
if exist S:\*.nds goto exists
if exist T:\*.nds goto existt
if exist U:\*.nds goto existu
if exist W:\*.nds goto existw
if exist V:\*.nds goto existv
if exist X:\*.nds goto existx
if exist Y:\*.nds goto existy
if exist Z:\*.nds goto existz
goto err

:existe
echo nds files found!
echo e
pause
goto in

:existf
echo nds files found!
echo f
pause
goto in

:existg
echo nds files found!
echo g
pause
goto in

:existh
echo nds files found!
echo h
pause
goto in

:existi
echo nds files found!
echo i
pause
goto in

:existj
echo nds files found!
echo j
pause
goto in

:existk
echo nds files found!
echo k
pause
goto in

:existl
echo nds files found!
echo l
pause
goto in

:existm
echo nds files found!
echo m
pause
goto in

:existn
echo nds files found!
echo n
pause
goto in

:existo
echo nds files found!
echo o
pause
goto in

:existp
echo nds files found!
echo p
pause
goto in

:existq
echo nds files found!
echo q
pause
goto in

:existr
echo nds files found!
echo r
pause
goto in

:exists
echo nds files found!
echo s
pause
goto in

:existt
echo nds files found!
echo t
pause
goto in

:existu
echo nds files found!
echo u
pause
goto in

:existw
echo nds files found!
echo w
pause
goto in

:existv
echo nds files found!
echo v
pause
goto in

:existx
echo nds files found!
echo x
pause
goto in

:existy
echo nds files found!
echo y
pause
goto in

:existz
echo nds files found!
echo z
pause
goto in

:err
echo nds-error-nonds
pause
exit

3.Salvare il file selezionando "Tutti i file" al posto di "Documento di testo txt" e rimpiazzando la fine del nome (.txt) con .bat
4.Avviarlo prima senza la SD inserita e poi inserita, per vedere che funzioni correttamente.

Se tutto va bene, potete personalizzarlo come volete biggrin.gif


--------------------
 Go to the top of the page
 
+Quote Post
alekun84
messaggio Sunday 11 October 2009 - 17:41
Messaggio #2

Boss GBA/NDS
Gruppo icone

Gruppo: Membri
Messaggi: 329
Iscritto il: Tue 6 February 2007 - 20:30
Utente Nr.: 16.625
Feedback: 0 (0%)




oddio, è il tuo primo tentativo di programmazione?

facevi un do while con una variabile che conteneva la lettera e risparmiavi tipo 200 righe buone di codice.


--------------------
 Go to the top of the page
 
+Quote Post
MaxPower
messaggio Sunday 11 October 2009 - 17:46
Messaggio #3

Watcher of the Watchmen
Gruppo icone

Gruppo: Amministratori
Messaggi: 11.994
Iscritto il: Thu 25 November 2004 - 18:02
Da: Lucca
Utente Nr.: 3.066
Feedback: 77 (100%)

Codice Amico Switch:
0328-1985-4983
Codice Amico 3DS:
3609-1016-7022
Nintendo Network ID:
MaxPowerITA



CITAZIONE (alekun84 @ Sunday 11 October 2009 - 18:41) *
oddio, è il tuo primo tentativo di programmazione?

facevi un do while con una variabile che conteneva la lettera e risparmiavi tipo 200 righe buone di codice.

Oltre a questo io mi chiedo a cosa serva una roba simile.


--------------------

Se vuoi vedere quali console ho in casa:
» Clicca per leggere lo Spoiler! «
Nes Action Set Pal universale
Super Nintendo Pal
Super Nes Ntsc Universale + Tototek Flash Card 64MB
Nintendo 64 Jap Rgb Modded + Z64 V3 con Hd Seagate 10GB + CompactFlash 2GB
Gamecube Pal Qoob Sx modded + Case XCM Viper Full Crystal Clear
Wii Pal 4.2 Yaosm Modded + Softmod
Gameboy White Pal
Gameboy Pocket Silver Pal
Gameboy Color Transparent Purple Pal
Gameboy Advance Purple Pal (con Afterburner da fixare)
Gameboy Advance Black Pal
Gameboy Advance Sp Gold Zelda Edition Pal + Ez2 1Gb
Gameboy Advance Sp Classic Nes Edition Pal
Gameboy Micro Silver Pal
Gameboy Micro Famicom Edition Japan
Nintendo DS Silver Pal
Nintendo DS Lite Black Pal + G6 Lite Black 4G + Supercard DS One Sdhc con MicroSD 2GB Kingston + Ez5 3in1
Nintendo DSi White Pal + Supercard DSi One con MicroSDHC 4GB Kingston
Nintendo DSi XL Vinaccia Pal
Nintendo 3DS Aqua Blue
Nintendo 3DS XL Zelda Edition
Nintendo 2DS Red & White
Nintendo New 3DS Ambassador Edition
Megadrive I Pal Universale
SegaCD Usa
Game Gear Pal
Saturn Pal Model1
Saturn Pal Model2 -- da moddare per renderlo universale --
Dreamcast Jap "President Edition" con Vga box
Playstation Pal Scph-7502
PsTwo Pal Scph-75004 Mxl4 Modded
PSP 1004 Firm GEN 5.50 D3 + Photofast CR5400 + MS Sony 1GB
PSP Slim&Lite 2004 Firmware GEN 5.50 D3 + 2x MS Sandisk 4GB
Ps3 Slim 250GB Pal Bundle Uncharted 2 Firmware 3.50
Ps3 Slim 120GB Pal Firmware 3.41 + Maximus AVR Usb + NeoJailbreak
Xbox Crystal 1.6 Pal Akira2 Modded powered by Xbox Media Center
X360 Elite Jasper Resident Evil 5 Edition Ixtreme LT + JTAG + HD 500GB
X360 Slim Gears of War 3 Limited Edition + HD 250GB
Xbox ONE Day One Edition
 Go to the top of the page
 
+Quote Post
.:nastys:.
messaggio Sunday 11 October 2009 - 22:36
Messaggio #4

Utente GBARL
Gruppo icone

Gruppo: Membri
Messaggi: 42
Iscritto il: Sun 11 October 2009 - 14:48
Utente Nr.: 40.869
Feedback: 0 (0%)




CITAZIONE (MaxPower @ Sunday 11 October 2009 - 18:46) *
Oltre a questo io mi chiedo a cosa serva una roba simile.

Serve a trovare la lettera di unità della SD della flashcard così da fare un programmino tipo autoestrae i giochi/homebrew nella card direttamente.


--------------------
 Go to the top of the page
 
+Quote Post
Dragon Chan
messaggio Sunday 11 October 2009 - 22:41
Messaggio #5

Chan 2.0
Gruppo icone

Gruppo: Veterani
Messaggi: 10.883
Iscritto il: Fri 4 February 2005 - 16:07
Da: Sciacca
Utente Nr.: 3.859
Feedback: 30 (100%)

Nintendo Network ID:
viewtiful.vega



CITAZIONE (.:nastys:. @ Sunday 11 October 2009 - 23:36) *
Serve a trovare la lettera di unità della SD della flashcard così da fare un programmino tipo autoestrae i giochi/homebrew nella card direttamente.


Tutto molto utile... senza offesa eh biggrin.gif


--------------------
 Go to the top of the page
 
+Quote Post
MaxPower
messaggio Sunday 11 October 2009 - 23:47
Messaggio #6

Watcher of the Watchmen
Gruppo icone

Gruppo: Amministratori
Messaggi: 11.994
Iscritto il: Thu 25 November 2004 - 18:02
Da: Lucca
Utente Nr.: 3.066
Feedback: 77 (100%)

Codice Amico Switch:
0328-1985-4983
Codice Amico 3DS:
3609-1016-7022
Nintendo Network ID:
MaxPowerITA



CITAZIONE (.:nastys:. @ Sunday 11 October 2009 - 23:36) *
Serve a trovare la lettera di unità della SD della flashcard così da fare un programmino tipo autoestrae i giochi/homebrew nella card direttamente.

Ribadisco che non ci vedo proprio per niente l'utilità: se devo cliccare su un programma per estrarre un gioco (mettiamo da un dvd dove l'ho salvato) non faccio prima allora a cliccare col tasto destro (questo in Windows naturalmente, parlo di questo scenario dato che è il più frequente) e selezionare Estrai in?
Windows ti fa vedere chiaramente la tipologia di ogni unità e si capisce subito quale è la lettera associata alla memoria appena inserita.


--------------------

Se vuoi vedere quali console ho in casa:
» Clicca per leggere lo Spoiler! «
Nes Action Set Pal universale
Super Nintendo Pal
Super Nes Ntsc Universale + Tototek Flash Card 64MB
Nintendo 64 Jap Rgb Modded + Z64 V3 con Hd Seagate 10GB + CompactFlash 2GB
Gamecube Pal Qoob Sx modded + Case XCM Viper Full Crystal Clear
Wii Pal 4.2 Yaosm Modded + Softmod
Gameboy White Pal
Gameboy Pocket Silver Pal
Gameboy Color Transparent Purple Pal
Gameboy Advance Purple Pal (con Afterburner da fixare)
Gameboy Advance Black Pal
Gameboy Advance Sp Gold Zelda Edition Pal + Ez2 1Gb
Gameboy Advance Sp Classic Nes Edition Pal
Gameboy Micro Silver Pal
Gameboy Micro Famicom Edition Japan
Nintendo DS Silver Pal
Nintendo DS Lite Black Pal + G6 Lite Black 4G + Supercard DS One Sdhc con MicroSD 2GB Kingston + Ez5 3in1
Nintendo DSi White Pal + Supercard DSi One con MicroSDHC 4GB Kingston
Nintendo DSi XL Vinaccia Pal
Nintendo 3DS Aqua Blue
Nintendo 3DS XL Zelda Edition
Nintendo 2DS Red & White
Nintendo New 3DS Ambassador Edition
Megadrive I Pal Universale
SegaCD Usa
Game Gear Pal
Saturn Pal Model1
Saturn Pal Model2 -- da moddare per renderlo universale --
Dreamcast Jap "President Edition" con Vga box
Playstation Pal Scph-7502
PsTwo Pal Scph-75004 Mxl4 Modded
PSP 1004 Firm GEN 5.50 D3 + Photofast CR5400 + MS Sony 1GB
PSP Slim&Lite 2004 Firmware GEN 5.50 D3 + 2x MS Sandisk 4GB
Ps3 Slim 250GB Pal Bundle Uncharted 2 Firmware 3.50
Ps3 Slim 120GB Pal Firmware 3.41 + Maximus AVR Usb + NeoJailbreak
Xbox Crystal 1.6 Pal Akira2 Modded powered by Xbox Media Center
X360 Elite Jasper Resident Evil 5 Edition Ixtreme LT + JTAG + HD 500GB
X360 Slim Gears of War 3 Limited Edition + HD 250GB
Xbox ONE Day One Edition
 Go to the top of the page
 
+Quote Post
lucaluca
messaggio Monday 12 October 2009 - 05:39
Messaggio #7

Fanatic GBA/NDS
Gruppo icone

Gruppo: Membri
Messaggi: 833
Iscritto il: Sat 30 August 2008 - 20:25
Da: -
Utente Nr.: 30.232
Feedback: 0 (0%)




Giusto per farti capire come hai sprecato righe inutili....

[VB.NET]
CODICE
Dim Drive As String, Drives() As String
Drives = ListAllDrives()
For Each Drive In Drives
        Dim dir as new directoryinfo(Drive)
            For each file as fileinfo in dir.getfiles
              If file.extension=(".nds") Then
              console.writeline("NDS File Found, at directory : " & file.fullname)
              End If
           Next
  Next



Comunque congratulazioni per l'impegno

EDIT : non fate caso che siano le 6.40 XD ... mi son connesso per aggiornare la musica sul mio player multimediale prima di andare a scuola pinch.gif
 Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 utenti stanno leggendo questa discussione (1 visitatori e 0 utenti anonimi)
0 utenti:

 

Modalità di visualizzazione: Normale · Passa a: Lineare · Passa a: Outline


RSS Versione Lo-Fi Oggi è il: Wed 1 May 2024- 17:15

.: GBArl.it :. Copyright © 2003-2020, All Rights Reserved.
Loghi, documenti e immagini contenuti in questo Sito appartengono ai rispettivi proprietari,
e sono resi pubblici sotto licenza Creative Commons

Creative Commons License
.::.