30. Oktober 2008 17:05
Documentation()
OnRun()
filename :='C:\Neu.txt';
CreateFile(filename);
CreateFile(VAR FileName : Text[250]) Status : Boolean
Status := COPY('C:\\test.txt', FileName);
if(NOT GUIALLOWED) THEN
message(Format(Status));
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
namespace WebService
{
using localhost;
class Program
{
static void Main(string[] args)
{
CopyFile File = new CopyFile();
File.UseDefaultCredentials = true;
//File.Url = "http://localhost:7047/DynamicsNAV/WS/CRONUS_AG/Codeunit/CopyFile";
String filename = "C:\\new.txt";
if (File.CreateFile(filename))
{
Console.WriteLine("Die Datei "+filename+" wurde umkopiert");
}
else
{
Console.WriteLine("Die Datei " + filename + " konnte nicht umkopiert werden");
}
Console.ReadLine();
}
}
}
30. Oktober 2008 17:40