Search found 28 matches

by Knoore
Fri Apr 13, 2007 6:40 pm
Forum: Technical / Scripting
Topic: Backup Folders with subfolders and all files inside.
Replies: 6
Views: 9484

Run>cmd.exe /c xcopy %pathold%*.* %pathnew%*.* /s

If pathold or pathnew containt a " " [SPACE] nothing happens, if the pathold and pathnew dont contain a " " [SPACE] it works perfect.

How to make it work with the " " [SPACE] ?
by Knoore
Fri Apr 13, 2007 9:59 am
Forum: Technical / Scripting
Topic: Backup Folders with subfolders and all files inside.
Replies: 6
Views: 9484

Backup Folders with subfolders and all files inside.

VBSTART Function GetFolderList(folderspec) Dim fso, f, f1, fc, s, sf Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder(folderspec) Set fc = f.SubFolders For Each f1 in fc s = s & f1.name & ";" sf = GetFolderList(folderspec & "\" & f1.name) if sf "" then s = s & f1.name & "\...
by Knoore
Thu Jan 04, 2007 2:58 pm
Forum: General Discussion
Topic: Website requires updating
Replies: 1
Views: 4520

Website requires updating

Still version 8:
http://www.mjtnet.com/languages.htm

Maybe add the version you are upgrading too:
http://www.mjtnet.com/upgrade.htm
by Knoore
Wed Jan 03, 2007 10:31 pm
Forum: Technical / Scripting
Topic: Weird string/integer bug.
Replies: 7
Views: 9326

The errors is in my Windows regional & language settings.
It was dutch, but to be able to run Macro Schedular's Math functions, it has to be english.
by Knoore
Wed Jan 03, 2007 9:52 pm
Forum: Technical / Scripting
Topic: Weird string/integer bug.
Replies: 7
Views: 9326

This works perfect with english settings, but I'm Dutch so I selected Dutch language in Windows... This results in the decimal sign being a , and not a . therefor it goes wrong with the round() maybe a good idea to fix this bug. Dunno if it also happens to other math functions, but i guess it does. ...
by Knoore
Wed Jan 03, 2007 9:39 pm
Forum: Technical / Scripting
Topic: Weird string/integer bug.
Replies: 7
Views: 9326

Hmm it doesnt work for me, if i create a new macro and copy above stuff in it, then it gives the error. Doesnt work in Version 8 and Vesion 9, havent tested older versions. I think its because decimal numbers have a , and not a . gonna try to change my windows settings now. Its all part of this scri...
by Knoore
Wed Jan 03, 2007 9:24 pm
Forum: Technical / Scripting
Topic: Weird string/integer bug.
Replies: 7
Views: 9326

Weird string/integer bug.

When running this script I recieve the following errors "Invalid parameters to ROUND" "Cannot read String as Float" Let>x=1 Let>pgdwn=0 Let>clicks=0 Let>clicks={%x%*250} Let>pgdwn={%clicks%/30} Let>pgdwn={round(%pgdwn%)} Let>pgdwn={%pgdwn%-1} mousemove>560,210 wait>0.001 Lclick wait>0.001 Let>k=0 Re...
by Knoore
Fri Dec 15, 2006 9:50 am
Forum: Technical / Scripting
Topic: Error in VB script
Replies: 3
Views: 5385

Ok thanks, it works a lot better with some MsgBoxes i found out where the VB bugs are. knr, intRow and enr all have a value. m1,m2,m3,m4 q1,q2,q3,q4 all have a value. but if the value of m5 = "NULL" then it wont be higher then the value in the Excell cell. Everything works untill here: Do Until objE...
by Knoore
Thu Dec 14, 2006 3:12 pm
Forum: Technical / Scripting
Topic: Error in VB script
Replies: 3
Views: 5385

Error in VB script

[code] VBSTART Public intRow Public celwaarde_oud Public m1 Public m2 Public m3 Public m4 Public m5 Public m6 Public m7 Public m8 Public m9 Public o1 Public o2 Public o3 Public o4 Public o5 Public o6 Public o7 Public o8 Public o9 Public o10 Public fn Public er Public knr Public enr Public oud Public...
by Knoore
Thu Dec 14, 2006 9:33 am
Forum: Technical / Scripting
Topic: Problem with If Else Endif Statement
Replies: 1
Views: 3640

Problem with If Else Endif Statement

Error: Expecting a ')' Error: 'C' Not appropriate What is wrong with the script? IF>{(%type% = "ZP") OR (%type% = "FS")} IF>{(%filename% <> "%dir%readme.txt") AND (%filename% <> "%dir%Readme.txt") AND (%filename% <> "%dir%report.txt")} Gosub>clipboard Endif Else Gosub>clipboard Endif
by Knoore
Sat Dec 09, 2006 5:31 pm
Forum: Technical / Scripting
Topic: Browse to select a dir
Replies: 2
Views: 4688

I dont have version 9 :(
by Knoore
Sat Dec 09, 2006 5:28 pm
Forum: Technical / Scripting
Topic: Remove Dirs
Replies: 11
Views: 12609

He is going to send me a copy of Deltree.exe
by Knoore
Sat Dec 09, 2006 1:58 pm
Forum: Technical / Scripting
Topic: Browse to select a dir
Replies: 2
Views: 4688

Browse to select a dir

How can i make my script select a folder, instead of a file. Currently i got this. But now you are forced to select a file. How can i make the script accept dirs as wel Dialog>Dialog3 Caption=Dialog3 Width=445 Height=250 Top=104 Left=16 Button=msButton1,168,56,75,25,0 Edit=msEdit1,32,48,121,msEdit1 ...
by Knoore
Sat Dec 09, 2006 12:35 pm
Forum: Technical / Scripting
Topic: Remove Dirs
Replies: 11
Views: 12609

Any1?
by Knoore
Fri Dec 08, 2006 10:35 am
Forum: Technical / Scripting
Topic: Remove Dirs
Replies: 11
Views: 12609

Aint it possible to remove the dir with VB or something?

VBSTART
Sub dirremove (dir)
RmDir dir
End Sub
VBEND

VBRun>dirremove,subsubdir

This gives an error, but i dont know why, does any1 know how to fix it?
Sign up to our newsletter for free automation tips, tricks & discounts