The result is not the same as "CommandLine". If i use CommandLine, i receive the name of the batch file i use to start my vbs.
objProcess.CommandeLine return:
cmd /c ""C:\testcall.bat" "
testcall.bat is the program who call the VBS file.
If i use Executable path, i...
I need to know what Script are Running on my computer. On Windows XP, i can use this little script:
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("c:\test.log", 8 , True)
'Get parameters (Process ID)
Set objArgs = WScript.Arguments
For I = 0 to...
http://support.microsoft.com/default.aspx?scid=kb;DE;311219
i install offcie XP and i think this is why it not working(see link). I replace MScal.ocx(version 10) by Mscal.ocx(version 9), regsvr32 Mscal.ocx, and it work very well.
thanks.
I have control calendar 10.0 in my application. This application is working very well since june 2003. Now i need to make some modification in the application but when i open my project, the control calendar are change for Picture box with the name of my calendar!!!, i re-insert a control...
Hi, anyone know how to change local Security Settings with VBscript or Wscript?? I need to change "Log on as a Service" in the "User Rights Assignment".
Hi, i try to delete all file in a directory where the date is less than a specific date(date - 10 day)
My Code:
If CStr( Day((Now()-NbDay))) < 10 Then
jour = "0" + CStr( Day((Now()-NbDay)))
Else
jour = CStr( Day((Now()-NbDay)))
End if
mois = CStr( Month((Now()-NbDay)))
annee =...
Hi,
I got a little problem printing a report(crystal report) from visual basic. I open the report without problem and i can print the report when is open. But if i try to print it with:
ReportViewerFrm.CRViewer1.PrintReport
It does'nt work!!!! but if i run my program in step by step mode, it...
Hi,
i execute a SQL query in Cobol. I have 450 host variables to declare. My problem is, when i execute my query, i have some null field and then the query return me error( sqlcode -305).
i know i can use a indicator to verify if my field is null, but i don't want to declare 450 indicator and...
Hi,
I need to update a table1 from table1 in a SQL SERVER database. I can use update without problem, but i also need to insert new value from table 2 in table1.
I know i can use "replace into" in MYSQL(replace and insert).
but it seem that it not working in SQL server. i really need...
Hi,
i got a little problem. I made a Script in VB(not vbscript) who convert some caractere in a text file
My code:
Private Sub Main()
Dim temp As Byte
Open "D:\input.txt" For Binary As #1 Open "D:\output.txt" For Binary As #2
While Not EOF(1)...
thank you CliveC and Dimandja, but it doesn't work.
I just want to replace all apostrophe in a string with a space. Exemple of my string, a town call VAL D'OR.
I don't know how i can do my inspect because i have to put my apostrophe between two apostrophe ( ''').
Clive, i do what you said...
Hi, i need to replace all apostrophe(') in a string.
i use this:
INSPECT MYVARIABLE REPLACING FIRST 'apostrophe' BY space.
How can i write apostrophe in that case??? (''',not work)
thanks a lot.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.