- est-il possible de créer un CD à l'aide des APIs Windows avec un VBS ou un JS sans Executable ???
- comment pour récupérer la variable d'environement "USERNAME" avec l'objet :
set oSH = CreateObject("Wscript.Shell")
set oSHEnv = oSH.Environment("SYSTEM")..
j'arrive à récupérer que des variables systèmes ...
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Jacques Barathon [MS]
"Guy" wrote in message news:
Bonjour à tous,
j'ai deux petites questions:
- est-il possible de créer un CD à l'aide des APIs Windows avec un VBS ou un JS sans Executable ???
Je ne connais pas d'instruction ni d'API standard, par contre il existe de nombreux outils en ligne de commande disponibles en freeware. Tu trouveras notamment des infos (plus d'autres sur la création de CD bootables) sur le site de Séverin Terrier: http://severinterrier.free.fr/Boot/.
- comment pour récupérer la variable d'environement "USERNAME" avec l'objet : set oSH = CreateObject("Wscript.Shell") set oSHEnv = oSH.Environment("SYSTEM").. j'arrive à récupérer que des variables systèmes ...
En précisant l'environnement System, tu te restreins toi-même dans tes possibilités. Essaye plutôt les 2 lignes suivantes:
"Guy" <Guy@discussions.microsoft.com> wrote in message
news:F5023150-DDD8-4746-81D9-0636AC7E2F92@microsoft.com...
Bonjour à tous,
j'ai deux petites questions:
- est-il possible de créer un CD à l'aide des APIs Windows avec un VBS ou
un JS sans Executable ???
Je ne connais pas d'instruction ni d'API standard, par contre il existe de
nombreux outils en ligne de commande disponibles en freeware. Tu trouveras
notamment des infos (plus d'autres sur la création de CD bootables) sur le
site de Séverin Terrier: http://severinterrier.free.fr/Boot/.
- comment pour récupérer la variable d'environement "USERNAME" avec
l'objet :
set oSH = CreateObject("Wscript.Shell")
set oSHEnv = oSH.Environment("SYSTEM")..
j'arrive à récupérer que des variables systèmes ...
En précisant l'environnement System, tu te restreins toi-même dans tes
possibilités. Essaye plutôt les 2 lignes suivantes:
- est-il possible de créer un CD à l'aide des APIs Windows avec un VBS ou un JS sans Executable ???
Je ne connais pas d'instruction ni d'API standard, par contre il existe de nombreux outils en ligne de commande disponibles en freeware. Tu trouveras notamment des infos (plus d'autres sur la création de CD bootables) sur le site de Séverin Terrier: http://severinterrier.free.fr/Boot/.
- comment pour récupérer la variable d'environement "USERNAME" avec l'objet : set oSH = CreateObject("Wscript.Shell") set oSHEnv = oSH.Environment("SYSTEM").. j'arrive à récupérer que des variables systèmes ...
En précisant l'environnement System, tu te restreins toi-même dans tes possibilités. Essaye plutôt les 2 lignes suivantes:
- est-il possible de créer un CD à l'aide des APIs Windows avec un VBS ou un JS sans Executable ??? Aucune idée !
- comment pour récupérer la variable d'environement "USERNAME" avec l'objet : set oSH = CreateObject("Wscript.Shell") set oSHEnv = oSH.Environment("SYSTEM").. j'arrive à récupérer que des variables systèmes ...
Username, ComputerName, USerDomain,... sont des propriétés de l'objet NetWork ! http://www.bellamyjc.org/fr/vbsobjets.html#wshnetwork
Set net = Wscript.CreateObject("WScript.Network") wscript.echo "Bienvenue à " & net.username & " sur " & net.ComputerName & " du domaine " & net.Userdomain
-- May the Force be with You! La Connaissance s'accroît quand on la partage ---------------------------------------------------------- Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org http://www.bellamyjc.org *
Dans le message news:F5023150-DDD8-4746-81D9-0636AC7E2F92@microsoft.com ,
Guy <Guy@discussions.microsoft.com> s'est ainsi exprimé:
Bonjour à tous,
j'ai deux petites questions:
- est-il possible de créer un CD à l'aide des APIs Windows avec un
VBS ou un JS sans Executable ???
Aucune idée !
- comment pour récupérer la variable d'environement "USERNAME" avec
l'objet :
set oSH = CreateObject("Wscript.Shell")
set oSHEnv = oSH.Environment("SYSTEM")..
j'arrive à récupérer que des variables systèmes ...
Username, ComputerName, USerDomain,... sont des propriétés de l'objet
NetWork !
http://www.bellamyjc.org/fr/vbsobjets.html#wshnetwork
Set net = Wscript.CreateObject("WScript.Network")
wscript.echo "Bienvenue à " & net.username & " sur " & net.ComputerName & "
du domaine " & net.Userdomain
--
May the Force be with You!
La Connaissance s'accroît quand on la partage
----------------------------------------------------------
Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org
http://www.bellamyjc.org Jean-Claude.Bellamy@wanadoo.fr *
JC.Bellamy@free.fr
- est-il possible de créer un CD à l'aide des APIs Windows avec un VBS ou un JS sans Executable ??? Aucune idée !
- comment pour récupérer la variable d'environement "USERNAME" avec l'objet : set oSH = CreateObject("Wscript.Shell") set oSHEnv = oSH.Environment("SYSTEM").. j'arrive à récupérer que des variables systèmes ...
Username, ComputerName, USerDomain,... sont des propriétés de l'objet NetWork ! http://www.bellamyjc.org/fr/vbsobjets.html#wshnetwork
Set net = Wscript.CreateObject("WScript.Network") wscript.echo "Bienvenue à " & net.username & " sur " & net.ComputerName & " du domaine " & net.Userdomain
-- May the Force be with You! La Connaissance s'accroît quand on la partage ---------------------------------------------------------- Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org http://www.bellamyjc.org *
Jean-Claude BELLAMY
Dans le message news: , Guy s'est ainsi exprimé:
Merci beaucoup pour toutes vos réponses ... pour ce qui est des gravures par les APIs Windows, j'ai trouvé un exécutable CreateCD.exe qui me permet de le faire en lignede commande
Ta question initiale parlait d'API, pas d'exécutable en ligne de commande!
Dans ce cas là, il y a tous les outils en ligne de commande fournis avec CDRWIN (certains sont des freewares), que j'utilise depuis longtemps : http://www.goldenhawk.com
P.ex. : (outils payants) DAO.EXE This is the main disc-at-once recording program. It is capable of making AUDIO, CDROM (Mode1), CDROM-XA (Mode2), CD-I, CD+G, and MIXED-MODE discs. The resulting discs will be either "redbook" or "yellowbook" compatible and can be used as masters for commercial CDROM production. [...]
SNAPSHOT.EXE This program will make backup copies of just about any CDROM disc.
CDCLIP.EXE This program extracts "digital audio data" from a CD and stores the data in a WAV or other type of binary file. This file can then be recorded onto a new CD using DAO.EXE. CDCLIP performs complete "jitter compensation" to insure correct digital copies. [...]
COPY2CD.EXE This program will copy the files from one or more directories (on your harddrive) directly to a CD recorder without needing to build an ISO9660 image file first. The ISO9660 image is built "on-the-fly" as the data is being written to the disc. [...]
MAKEISO.EXE This program will build an ISO9660 image file from one or more data files. [...].
ISO2RAW.EXE This program will take an ISO9660 image file and convert it to raw CDROM data sectors (2352 byte sectors). The resulting file can then be used by DAO.EXE to create a data or mixed-mode disc. You must convert your image files because some recorders (such as the Philips and HP) will only accept raw data sectors when doing disc-at-once recording.[...]
et aussi (outils gratuits) :
CD2CD.EXE Copies a single-track data CD from any SCSI based CDROM drive directly to the CD recorder. The reader must be faster than the recorder (i.e. 4X reader when recording at 2X, or a 2X reader when recording at 1X).[...]
CD2FILE.EXE and FILE2CD.EXE Copies a CD from any SCSI based CDROM drive to an "image" file on disk. This file can then be used by FILE2CD to write the image to the CD recorder. [...]
DISK2CD.EXE Copies a SCSI harddrive block-by-block to the CD recorder. This program can be used to make native VMS and Unix CDs from the PC. The harddrive cannot be larger than the capacity of a CDROM (650Mb). [...]
CDTOOLS.EXE This program is a collection of miscellaneous CDROM/CD-R tools with the following functions... - Display a disc's table-of-contents. - Erase a disc (CD-RW only). - Finalize a session/disc. - Load a disc (tray models only). - Eject a disc. [...]
Le produit complet (CDRWIN + Outils ligne de commande + Outils MSDOS) coute 39 $.
-- May the Force be with You! La Connaissance s'accroît quand on la partage ---------------------------------------------------------- Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org http://www.bellamyjc.org *
Dans le message news:20EB9947-4AB2-4022-841C-B8288E5902A5@microsoft.com ,
Guy <Guy@discussions.microsoft.com> s'est ainsi exprimé:
Merci beaucoup pour toutes vos réponses ...
pour ce qui est des gravures par les APIs Windows, j'ai trouvé un
exécutable CreateCD.exe qui me permet de le faire en lignede commande
Ta question initiale parlait d'API, pas d'exécutable en ligne de commande!
Dans ce cas là, il y a tous les outils en ligne de commande fournis avec
CDRWIN (certains sont des freewares), que j'utilise depuis longtemps :
http://www.goldenhawk.com
P.ex. : (outils payants)
DAO.EXE
This is the main disc-at-once recording program. It is capable
of making AUDIO, CDROM (Mode1), CDROM-XA (Mode2), CD-I, CD+G, and
MIXED-MODE discs. The resulting discs will be either "redbook" or
"yellowbook" compatible and can be used as masters for commercial
CDROM production. [...]
SNAPSHOT.EXE
This program will make backup copies of just about any CDROM disc.
CDCLIP.EXE
This program extracts "digital audio data" from a CD and stores
the data in a WAV or other type of binary file. This file can then
be recorded onto a new CD using DAO.EXE. CDCLIP performs complete
"jitter compensation" to insure correct digital copies. [...]
COPY2CD.EXE
This program will copy the files from one or more directories
(on your harddrive) directly to a CD recorder without needing to
build an ISO9660 image file first. The ISO9660 image is built
"on-the-fly" as the data is being written to the disc. [...]
MAKEISO.EXE
This program will build an ISO9660 image file from one or more
data files. [...].
ISO2RAW.EXE
This program will take an ISO9660 image file and convert it to
raw CDROM data sectors (2352 byte sectors). The resulting file can
then be used by DAO.EXE to create a data or mixed-mode disc. You must
convert your image files because some recorders (such as the Philips
and HP) will only accept raw data sectors when doing disc-at-once
recording.[...]
et aussi (outils gratuits) :
CD2CD.EXE
Copies a single-track data CD from any SCSI based CDROM drive
directly to the CD recorder. The reader must be faster than the
recorder (i.e. 4X reader when recording at 2X, or a 2X reader
when recording at 1X).[...]
CD2FILE.EXE and FILE2CD.EXE
Copies a CD from any SCSI based CDROM drive to an "image" file
on disk. This file can then be used by FILE2CD to write the image
to the CD recorder. [...]
DISK2CD.EXE
Copies a SCSI harddrive block-by-block to the CD recorder. This
program can be used to make native VMS and Unix CDs from the PC.
The harddrive cannot be larger than the capacity of a CDROM (650Mb).
[...]
CDTOOLS.EXE
This program is a collection of miscellaneous CDROM/CD-R tools
with the following functions...
- Display a disc's table-of-contents.
- Erase a disc (CD-RW only).
- Finalize a session/disc.
- Load a disc (tray models only).
- Eject a disc.
[...]
Le produit complet (CDRWIN + Outils ligne de commande + Outils MSDOS) coute
39 $.
--
May the Force be with You!
La Connaissance s'accroît quand on la partage
----------------------------------------------------------
Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org
http://www.bellamyjc.org Jean-Claude.Bellamy@wanadoo.fr *
JC.Bellamy@free.fr
Merci beaucoup pour toutes vos réponses ... pour ce qui est des gravures par les APIs Windows, j'ai trouvé un exécutable CreateCD.exe qui me permet de le faire en lignede commande
Ta question initiale parlait d'API, pas d'exécutable en ligne de commande!
Dans ce cas là, il y a tous les outils en ligne de commande fournis avec CDRWIN (certains sont des freewares), que j'utilise depuis longtemps : http://www.goldenhawk.com
P.ex. : (outils payants) DAO.EXE This is the main disc-at-once recording program. It is capable of making AUDIO, CDROM (Mode1), CDROM-XA (Mode2), CD-I, CD+G, and MIXED-MODE discs. The resulting discs will be either "redbook" or "yellowbook" compatible and can be used as masters for commercial CDROM production. [...]
SNAPSHOT.EXE This program will make backup copies of just about any CDROM disc.
CDCLIP.EXE This program extracts "digital audio data" from a CD and stores the data in a WAV or other type of binary file. This file can then be recorded onto a new CD using DAO.EXE. CDCLIP performs complete "jitter compensation" to insure correct digital copies. [...]
COPY2CD.EXE This program will copy the files from one or more directories (on your harddrive) directly to a CD recorder without needing to build an ISO9660 image file first. The ISO9660 image is built "on-the-fly" as the data is being written to the disc. [...]
MAKEISO.EXE This program will build an ISO9660 image file from one or more data files. [...].
ISO2RAW.EXE This program will take an ISO9660 image file and convert it to raw CDROM data sectors (2352 byte sectors). The resulting file can then be used by DAO.EXE to create a data or mixed-mode disc. You must convert your image files because some recorders (such as the Philips and HP) will only accept raw data sectors when doing disc-at-once recording.[...]
et aussi (outils gratuits) :
CD2CD.EXE Copies a single-track data CD from any SCSI based CDROM drive directly to the CD recorder. The reader must be faster than the recorder (i.e. 4X reader when recording at 2X, or a 2X reader when recording at 1X).[...]
CD2FILE.EXE and FILE2CD.EXE Copies a CD from any SCSI based CDROM drive to an "image" file on disk. This file can then be used by FILE2CD to write the image to the CD recorder. [...]
DISK2CD.EXE Copies a SCSI harddrive block-by-block to the CD recorder. This program can be used to make native VMS and Unix CDs from the PC. The harddrive cannot be larger than the capacity of a CDROM (650Mb). [...]
CDTOOLS.EXE This program is a collection of miscellaneous CDROM/CD-R tools with the following functions... - Display a disc's table-of-contents. - Erase a disc (CD-RW only). - Finalize a session/disc. - Load a disc (tray models only). - Eject a disc. [...]
Le produit complet (CDRWIN + Outils ligne de commande + Outils MSDOS) coute 39 $.
-- May the Force be with You! La Connaissance s'accroît quand on la partage ---------------------------------------------------------- Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org http://www.bellamyjc.org *