Följande navp:// lösning gör att man via en länk åstadkommer:
Alfredsson mantra, ENKELHET OCH TYDLIGHET
Se exemplen för att komma igång.
hämta navp
navp.zip
c:/temp/navp, för att exemplen nedan skall fungera.
navp.exe till valfri katalog, förslagsvis under c:\program\navp
[HKEY_CLASSES_ROOT\navp] @="URL:navp Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\navp\shell\open\Command] @="\"c:\\program\\navp\\navp.exe\" \"%1\"" [HKEY_CLASSES_ROOT\navp\shell\open\ddeexec] @="%1" [HKEY_CLASSES_ROOT\navp\shell\open\ddeexec\Application] @="NAVP" [HKEY_CLASSES_ROOT\navp\shell\open\ddeexec\Topic] @="DDE_navp"(Det är den enda installation som görs)
navp://a=x&b=y&c=z där a,b,c är parameterar och x,y,z är värden
| Params | Beskrivning | Default |
|---|---|---|
| l= | logglevel, sätt till 1 eller 2, för felsökning, mer info i debug-navp-[computername].log | 0 |
| x= | Starta Explorer i angiven katalog, t.ex x=c:/temp/navp | |
| f= | fil att använda som mall, t.ex f=c:/temp/navp/mall.txt | |
| u= | url att använda som mall, t.ex u=http://domain.se/kat/filnamn.ext | |
| h= | handling att skapa, t.ex h=c:/temp/navp/test_%yy%mm%dd_%i3.txt, kataloger som saknas skapas och %var ersätts enligt nedan | |
| metadata= | alla parameterar längre än 1 tecken används som metadata och sätter "Custom File Properties" på angiven handling |
/ och ej \!
Ev. skall vi även kunna kopiera ut mallar, typ .dot, med ovanstående, ännu ej implementerat
| %var | Beskrivning | |
|---|---|---|
| %i | löpnummer, 1..9999, teoretiskt ingen övre gräns | |
| %i2 | löpnummer, 01..99 | |
| %i3 | löpnummer, 001..999 | |
| %i4 | löpnummer, 0001..9999 | |
| %i9 | löpnummer, 000000001..999999999 | |
| %usr | current windows username | |
| %yyyy | Displays the year as a four-digit number (0000-9999) | 2005 |
| %yy | Displays the year as a two-digit number (00-99). | |
| %mmmm | Displays the month as a full name (January-December) | April |
| %mmm | Displays the month as an abbreviation (Jan-Dec) | Apr |
| %mm | Displays the month as a number with a leading zero (01-12) | 04 |
| %m | Displays the month as a number without a leading zero (1-12) | 4 |
| %dddddd | Displays the date using the format given by the LongDateFormat | |
| %ddddd | Displays the date using the format given by the ShortDateFormat | |
| %dddd | Displays the day as a full name (Sunday-Saturday) | |
| %ddd | Displays the day as an abbreviation (Sun-Sat) | |
| %dd | Displays the day as a number with a leading zero (01-31) | |
| %d | Displays the day as a number without a leading zero (1-31) | |
| %c | Displays the date using the format given by the ShortDateFormat, followed by the time using the format given by the LongTimeFormat | |
| %hh | Displays the hour with a leading zero (00-23) | |
| %h | Displays the hour without a leading zero (0-23) | |
| %nn | Displays the minute with a leading zero (00-59) | |
| %n | Displays the minute without a leading zero (0-59) | |
| %ss | Displays the second with a leading zero (00-59) | |
| %s | Displays the second without a leading zero (0-59) |
mall.txt
mall.doc
mall.xls
Andra öppna frågor: