|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: May 2006
Città: Triest
Messaggi: 393
|
[AHK] problema caratteri jolly
salve a tutti!
ho un problema con Autohotkey vorrei che il programma scansionasse la directory attiva, prendesse i file con un pattern del tipo: file.001.dat file.002.dat file.003.dat creasse una cartella "file" e ci spostasse dentro tutti quei file il codice è quasi finito, il problema sorge nel comando FileMove non mi sposta i file Codice:
Loop *.dat
{
fnfull=%A_LoopFileFullPath%
StringTrimRight, dirname, fnfull, 8
needle=001
IfInString, fnfull, %needle%
{
FileCreateDir, %dirname%
FileMove, dirname.".00?.dat", %dirname%
}
else
Sleep, 1
}
__________________
LAPTOP: HP dv7-6090el (i7-2630QM; 17,3"; Radeon HD6490M; 4GB DDR3; HD 640GB; LAN 1G; USB3.0; Win7 Ent.) PHONE: HTC Desire HD (ROOT; ENG S-OFF; Revolution HD 7.0.4) VISITA IL MIO BLOG: zoolean.wordpress.com |
|
|
|
|
|
#2 |
|
Member
Iscritto dal: May 2006
Città: Triest
Messaggi: 393
|
up
__________________
LAPTOP: HP dv7-6090el (i7-2630QM; 17,3"; Radeon HD6490M; 4GB DDR3; HD 640GB; LAN 1G; USB3.0; Win7 Ent.) PHONE: HTC Desire HD (ROOT; ENG S-OFF; Revolution HD 7.0.4) VISITA IL MIO BLOG: zoolean.wordpress.com |
|
|
|
|
|
#3 |
|
Member
Iscritto dal: May 2006
Città: Triest
Messaggi: 393
|
risolto grazie alla live chat di AHK
soluzione: Codice:
... FileMove, %dirname%.00?.dat, %dirname% ...
__________________
LAPTOP: HP dv7-6090el (i7-2630QM; 17,3"; Radeon HD6490M; 4GB DDR3; HD 640GB; LAN 1G; USB3.0; Win7 Ent.) PHONE: HTC Desire HD (ROOT; ENG S-OFF; Revolution HD 7.0.4) VISITA IL MIO BLOG: zoolean.wordpress.com |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 00:40.



















