Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "\pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "\pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
David
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "\pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "\pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
David
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
David
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "\pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "\pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
David
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
David
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "\pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "\pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
David
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'appara ît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement d ésespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par d éfaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'appara ît pas.
David
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "\pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "\pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement d ésespéré.
Merci encore
David
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par d éfaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'appara ît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement d ésespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par d éfaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
L'erreur est sur tous les postes.
Avec les informations que tu as ci-dessous (non du share...) pourrais-tu stp
m'écrire la commande net use ?
Merci d'avance.
David
"Benoit" wrote:l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
L'erreur est sur tous les postes.
Avec les informations que tu as ci-dessous (non du share...) pourrais-tu stp
m'écrire la commande net use ?
Merci d'avance.
David
"Benoit" wrote:
l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
David
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "\pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "\pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
David
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
L'erreur est sur tous les postes.
Avec les informations que tu as ci-dessous (non du share...) pourrais-tu stp
m'écrire la commande net use ?
Merci d'avance.
David
"Benoit" wrote:l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
si tu n'as pas lpt1: déclarée sur le poste :
"net use lpt1: pharmacieRICOHAfi"
c'est tout !L'erreur est sur tous les postes.
Avec les informations que tu as ci-dessous (non du share...) pourrais-tu stp
m'écrire la commande net use ?
Merci d'avance.
David
"Benoit" wrote:l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
si tu n'as pas lpt1: déclarée sur le poste :
"net use lpt1: \pharmacieRICOHAfi"
c'est tout !
L'erreur est sur tous les postes.
Avec les informations que tu as ci-dessous (non du share...) pourrais-tu stp
m'écrire la commande net use ?
Merci d'avance.
David
"Benoit" wrote:
l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?
Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
David
Bonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "\pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "\pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "\pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
David
Bonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau
si tu n'as pas lpt1: déclarée sur le poste :
"net use lpt1: pharmacieRICOHAfi"
c'est tout !L'erreur est sur tous les postes.
Avec les informations que tu as ci-dessous (non du share...) pourrais-tu stp
m'écrire la commande net use ?
Merci d'avance.
David
"Benoit" wrote:l'erreur apparaît sur tous les postes ? pas seulement le pc15 ?
as-tu la même erreur quand tu fais un "Net Use" ?Bonjour Benoit,
Tu as dû répondre à mon message, merci, mais ta réponse n'apparaît pas.
DavidBonjour Michel,
Merci pour ta réponse.
oui c'est uniquement pour se connecter.
j'ai trouvé un script vbs qui me permet de le faire mais il dit à chaque
fois que le nom de mon imprimante réseau est inccorect.
Sais-tu comment je peux connaitre le nom à mettre dans le script ?
J'ai fais un net share et je vois RICOHAfi (c'est le nom du partage), est-ce
ce nom que je dois utiliser ?
Voici mon script :
Option Explicit
Dim oNetwork, sPrintPath
Set oNetwork = CreateObject("WScript.Network")
Select Case oNetwork.ComputerName
Case "SalleInfoPC02"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC03"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC04"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC05"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC06"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC07"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC08"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC09"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC10"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC11"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC12"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC13"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC14"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC15"
sPrintPath = "pharmacieRICOH Aficio AP410N PS"
Case "SalleInfoPC16"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC17"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC18"
sPrintPath = "pharmacieRICOHAfi"
Case "SalleInfoPC19"
sPrintPath = "pharmacieRICOHAfi"
End Select
oNetwork.AddWindowsPrinterConnection sPrintPath
oNetwork.SetDefaultPrinter sPrintPath
J'espère que tu pourras encore m'aider car je suis réellement désespéré.
Merci encore
DavidBonjour !
Juste pour se connecter ? Simple : NET USE
Avec NET USE /? tu auras plus de renseignements.
Mais, AMHA, le besoin doit être plus large, car, sous XP, par défaut,
les reconnexions sont automatiques.
--
@-salutations
Michel Claveau