Page 1 of 1 1
Topic Options
#211942 - 2016-09-05 01:28 PM Copy folder
Garmin Offline
Just in Town

Registered: 2016-09-05
Posts: 2
Loc: Netherlands
Hello,
i want write a (logon) script that will copy files and subfolders to a specific location using kixtart. The problem is the path. It varies per user. example. \folder1\folder2\12er45ye.default\folder3\folder4 and with another user it wil be \folder1\folder2\567gtre34.default\folder3\folder4
How do i write a script that can see across ????????.default and copy's to folder4
??????? = random

Thanx

Top
#211943 - 2016-09-05 03:32 PM Re: Copy folder [Re: Garmin]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA

 Code:

for each $folder in dirplus("%appdata%\Mozilla\Firefox\Profiles\","/ad")
  if right($folder,8)=".default"
    ;do stuff
  endif
next



You will need dirplus to make this work

DirPlus -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=82153

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1
_________________________
(... better days ahead)

Top
#211944 - 2016-09-05 04:28 PM Re: Copy folder [Re: Garmin]
Garmin Offline
Just in Town

Registered: 2016-09-05
Posts: 2
Loc: Netherlands
Been working on it this afternoon and got it to work :-)
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1383 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org