> hi
>
[quoted text clipped - 4 lines]
> but i don't realy know how to get System.Environment.GetCommandLineArgs
> can u post me the code how to work with this argument please
It's not really a script when it is compiled, by the way; it is now an
application.
Here's some demo code that will echo out the complete commandline, the
location of the assembly, and each of the commandline arguments passed to
the assembly:
//argdemo.js
// compile with:
// jsc /t:exe /out:argdemo.exe /nologo argdemo.js
import System;
import System.Reflection;
var args = System.Environment.GetCommandLineArgs();
//Note that the calling executable is one of the arguments.
System.Console.WriteLine("Raw commandline is: {0}",
System.Environment.CommandLine);
var Assembly = System.Reflection.Assembly.GetExecutingAssembly();
System.Console.WriteLine("Location: {0}", Assembly.Location);
var i = -1;
for (var arg in args) {
System.Console.WriteLine("argument {0}: {1}", ++i, args(arg));
}
> and if its possible to get the path of my script inside the script
>
[quoted text clipped - 21 lines]
>>> tnx
>>> jeza
jeza - 08 May 2004 23:11 GMT
hi
thank you very much.
now i have another question.
does .js have a library to connect to a FTP server
i would like my app(compiled with jsc.exe)
connect to ftp server
send a raw command and receive the server response to my command
and disconnect
> > hi
> >
[quoted text clipped - 56 lines]
> >>> tnx
> >>> jeza
Alex K. Angelopoulos [MVP] - 09 May 2004 00:32 GMT
> hi
> thank you very much.
>
> now i have another question.
> does .js have a library to connect to a FTP server
One of the reasons for the .NET CLR is to make the support libraries used by
applications universally identical, no matter the language used.
I don't believe there is a native .NET FTP client library, but the post
noted below documents some places to look for code which could be used like
this:
http://groups.google.com/groups?selm=2g1jdsF3gduuU1%40uni-berlin.de
> i would like my app(compiled with jsc.exe)
> connect to ftp server
[quoted text clipped - 62 lines]
>>>>> tnx
>>>>> jeza