Domino 9 und frühere Versionen > ND6: Entwicklung

Dos Commando`s aufrufen über Notes

(1/1)

Matze-muc:
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

qojote:
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

Axel:
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.


--- Ende Zitat ---

Axel

Matze-muc:
Vielen Dank.
Hab das letzere genommen.....

 :D :D :D :D

Navigation

[0] Themen-Index

Zur normalen Ansicht wechseln