Das Notes Forum

Domino 9 und frühere Versionen => ND6: Entwicklung => Thema gestartet von: Matze-muc am 19.07.05 - 09:49:36

Titel: Dos Commando`s aufrufen über Notes
Beitrag von: Matze-muc am 19.07.05 - 09:49:36
Hallo zusammen,
hat jemand hier eine idee wie man über ein Button einen Dos-Befehl aufrufen kann ?
Der Dos-Befehl wäre "ren date1.txt datei2.txt"....

Vielen dank im voraus.
Gruß an alle !!!
Mathias
Titel: Re: Dos Commando`s aufrufen über Notes
Beitrag von: qojote am 19.07.05 - 09:55:56
Hi,

hierzu aus der Hilfe.

The following example is specific to Windows:
' Start the Windows Calculator as a normal (not minimized)
' window with focus.
Dim result As Integer
result = Shell("CALC.EXE", 1)

See Also
Shell function

Gruß
Qojote
Titel: Re: Dos Commando`s aufrufen über Notes
Beitrag von: Axel am 19.07.05 - 09:59:59
Hi,

wenn's nur um das Imbenennen einer Datei geht, dann kannst du auch den Name - Befehl von Script verwenden.

Auszug aus Designer-Hilfe:

Zitat
Syntax
Name oldName As newName

Elements

oldName
A string expression whose value is the name of an existing file or directory, optionally including a path.

newName
A string expression whose value is the name to be given to the file or directory, optionally including a path. The newName cannot be another file or directory that already exists.

Usage
To move a file, specify complete paths in both oldName and newName. Use the same file name for both arguments if you don't want to rename it.
You can't move a file from one drive to another except under Windows NT and Windows 95.
You can't rename a file or directory to itself except under Windows NT and Windows 95.
You can rename a directory, but you can't move it except under UNIX.
You can't rename the current directory.


Axel
Titel: Re: Dos Commando`s aufrufen über Notes
Beitrag von: Matze-muc am 19.07.05 - 10:32:02
Vielen Dank.
Hab das letzere genommen.....

 :D :D :D :D