A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Surface pen



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old October 7th 18, 04:45 PM posted to alt.comp.os.windows-10
Silvio Galli
external usenet poster
 
Posts: 7
Default Surface pen

I have problems with my Surface Pro pen since the beginning. Every few
days I loose the connection and the pen stop working.
The only solution suggested by the support team tant works, is to
disinstall the drivers in 'Surface pen settings" and 'Touchscreen
compatible HID' and then restart Windows.

It works, but it's a PITA to make it every few days.

Waiting a driver update that can solve finally the problem, I would
like to write a script to automate the process. I have no experience
in scripting and I don't know if it is possible and where can I find
some basic instruction to write a script.

Thanks,
Silvio
Ads
  #2  
Old October 8th 18, 11:04 AM posted to alt.comp.os.windows-10
Silvio Galli
external usenet poster
 
Posts: 7
Default Surface pen


Thanks for the link. I have given a quick glance and it is
interesting.

But before starting to learn scripting and discover at the end of it
that what I want to accomplish is non feasible, could you give me your
opinion about it?
With a script is it possible to uninstall those specific drivers?

Thanks,
Silvio

On Sun, 7 Oct 2018 12:34:00 -0400, Wolf K
wrote:

On 2018-10-07 11:45, Silvio Galli wrote:
I have problems with my Surface Pro pen since the beginning. Every few
days I loose the connection and the pen stop working.
The only solution suggested by the support team tant works, is to
disinstall the drivers in 'Surface pen settings" and 'Touchscreen
compatible HID' and then restart Windows.

It works, but it's a PITA to make it every few days.

Waiting a driver update that can solve finally the problem, I would
like to write a script to automate the process. I have no experience
in scripting and I don't know if it is possible and where can I find
some basic instruction to write a script.

Thanks,
Silvio


Start he

https://en.wikipedia.org/wiki/Windows_Script_Host

  #3  
Old October 8th 18, 02:29 PM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Surface pen

Silvio Galli wrote:
Thanks for the link. I have given a quick glance and it is
interesting.

But before starting to learn scripting and discover at the end of it
that what I want to accomplish is non feasible, could you give me your
opinion about it?
With a script is it possible to uninstall those specific drivers?

Thanks,
Silvio


There is "devcon64.exe". This should really ship in the OS, but
it requires a separate download.

https://docs.microsoft.com/en-us/win...devtest/devcon

"Update drivers (interactive and noninteractive)"

And this page has more end-user information, including
sample scripts.

http://www.robvanderwoude.com/devcon.php

The idea is, that devcon.exe can do everything that
devmgmt.msc can do, except that devcon.exe is a command line
program and doesn't need the GUI part.

Paul
  #4  
Old October 9th 18, 02:48 AM posted to alt.comp.os.windows-10
Micky
external usenet poster
 
Posts: 1,528
Default Surface pen

In alt.comp.os.windows-10, on Mon, 08 Oct 2018 12:04:00 +0200, Silvio
Galli wrote:


Thanks for the link. I have given a quick glance and it is
interesting.

But before starting to learn scripting and discover at the end of it
that what I want to accomplish is non feasible, could you give me your
opinion about it?
With a script is it possible to uninstall those specific drivers?

Thanks,
Silvio


I think so. First I would google uninstall driver command line

Command line is the secret to many mysteries.

One of the first hits is
https://docs.microsoft.com/en-us/win...command-syntax


PnPUtil Command Syntax

01/30/2018
2 minutes to read
Contributors
Nathan Bazan NabilFates Eliot Graff

To run PnPUtil, open a Command Prompt window (Run as Administrator) and

==== YOu can use a bat file to open a command prompt window. In fact,
it's hard to get one not to. ;-)

type a command using the following syntax and parameters.

Note PnPUtil (PnPUtil.exe) is included in every version of Windows,
starting with Windows Vista (in the %windir%\system32 directory).

pnputil [/add-driver ... | /delete-driver ... |
/export-driver ... | /enum-drivers | /?]

Commands

/add-driver ......

/delete-driver oem#.inf [/uninstall] [/force] [/reboot]

Delete driver package from the driver store.

/uninstall - uninstall driver package from any devices using it.
/force - delete driver package even when it is in use by devices.
/reboot - reboot system if needed to complete the operation.


For examples of how to use the PnPUtil tool, see PnPUtil Examples.
====

The last line of your bat file can be the command that exits windows.

The name of the bat file can be the name of the bat file that Windows is
already set up to run when you exit windows normallyl. I think most
people don't have that bat file. If you do, and I'm sure you don't,
you'd just want to add the language above to that current bat file,
probably at the start of it, so that your stuff and it both run.


On Sun, 7 Oct 2018 12:34:00 -0400, Wolf K
wrote:

On 2018-10-07 11:45, Silvio Galli wrote:
I have problems with my Surface Pro pen since the beginning. Every few
days I loose the connection and the pen stop working.
The only solution suggested by the support team tant works, is to
disinstall the drivers in 'Surface pen settings" and 'Touchscreen
compatible HID' and then restart Windows.

It works, but it's a PITA to make it every few days.

Waiting a driver update that can solve finally the problem, I would
like to write a script to automate the process. I have no experience
in scripting and I don't know if it is possible and where can I find
some basic instruction to write a script.

Thanks,
Silvio


Start he

https://en.wikipedia.org/wiki/Windows_Script_Host


  #5  
Old October 9th 18, 02:51 AM posted to alt.comp.os.windows-10
Micky
external usenet poster
 
Posts: 1,528
Default Surface pen

In alt.comp.os.windows-10, on Mon, 08 Oct 2018 21:48:00 -0400, micky
wrote:

In alt.comp.os.windows-10, on Mon, 08 Oct 2018 12:04:00 +0200, Silvio
Galli wrote:


Thanks for the link. I have given a quick glance and it is
interesting.

But before starting to learn scripting and discover at the end of it
that what I want to accomplish is non feasible, could you give me your
opinion about it?
With a script is it possible to uninstall those specific drivers?

Thanks,
Silvio


I think so. First I would google uninstall driver command line


There are more hits farther down plus there is at least one video. I
think tthe video is called Abbott and Costello meet Frankenstein, but I
watched it anyhow and it disucssed deleting drivers with a command line.


Command line is the secret to many mysteries.

One of the first hits is
https://docs.microsoft.com/en-us/win...command-syntax


PnPUtil Command Syntax

01/30/2018
2 minutes to read
Contributors
Nathan Bazan NabilFates Eliot Graff

To run PnPUtil, open a Command Prompt window (Run as Administrator) and

==== YOu can use a bat file to open a command prompt window. In fact,
it's hard to get one not to. ;-)

type a command using the following syntax and parameters.

Note PnPUtil (PnPUtil.exe) is included in every version of Windows,
starting with Windows Vista (in the %windir%\system32 directory).

pnputil [/add-driver ... | /delete-driver ... |
/export-driver ... | /enum-drivers | /?]

Commands

/add-driver ......

/delete-driver oem#.inf [/uninstall] [/force] [/reboot]

Delete driver package from the driver store.

/uninstall - uninstall driver package from any devices using it.
/force - delete driver package even when it is in use by devices.
/reboot - reboot system if needed to complete the operation.


For examples of how to use the PnPUtil tool, see PnPUtil Examples.
====

The last line of your bat file can be the command that exits windows.

The name of the bat file can be the name of the bat file that Windows is
already set up to run when you exit windows normallyl. I think most
people don't have that bat file. If you do, and I'm sure you don't,
you'd just want to add the language above to that current bat file,
probably at the start of it, so that your stuff and it both run.


On Sun, 7 Oct 2018 12:34:00 -0400, Wolf K
wrote:

On 2018-10-07 11:45, Silvio Galli wrote:
I have problems with my Surface Pro pen since the beginning. Every few
days I loose the connection and the pen stop working.
The only solution suggested by the support team tant works, is to
disinstall the drivers in 'Surface pen settings" and 'Touchscreen
compatible HID' and then restart Windows.

It works, but it's a PITA to make it every few days.

Waiting a driver update that can solve finally the problem, I would
like to write a script to automate the process. I have no experience
in scripting and I don't know if it is possible and where can I find
some basic instruction to write a script.

Thanks,
Silvio


Start he

https://en.wikipedia.org/wiki/Windows_Script_Host


  #6  
Old October 9th 18, 10:31 AM posted to alt.comp.os.windows-10
Silvio Galli
external usenet poster
 
Posts: 7
Default Surface pen

Thanks. Very helpful !
Silvio



On Mon, 08 Oct 2018 21:48:00 -0400, micky
wrote:

In alt.comp.os.windows-10, on Mon, 08 Oct 2018 12:04:00 +0200, Silvio
Galli wrote:


Thanks for the link. I have given a quick glance and it is
interesting.

But before starting to learn scripting and discover at the end of it
that what I want to accomplish is non feasible, could you give me your
opinion about it?
With a script is it possible to uninstall those specific drivers?

Thanks,
Silvio


I think so. First I would google uninstall driver command line

Command line is the secret to many mysteries.

One of the first hits is
https://docs.microsoft.com/en-us/win...command-syntax


PnPUtil Command Syntax

01/30/2018
2 minutes to read
Contributors
Nathan Bazan NabilFates Eliot Graff

To run PnPUtil, open a Command Prompt window (Run as Administrator) and

==== YOu can use a bat file to open a command prompt window. In fact,
it's hard to get one not to. ;-)

type a command using the following syntax and parameters.

Note PnPUtil (PnPUtil.exe) is included in every version of Windows,
starting with Windows Vista (in the %windir%\system32 directory).

pnputil [/add-driver ... | /delete-driver ... |
/export-driver ... | /enum-drivers | /?]

Commands

/add-driver ......

/delete-driver oem#.inf [/uninstall] [/force] [/reboot]

Delete driver package from the driver store.

/uninstall - uninstall driver package from any devices using it.
/force - delete driver package even when it is in use by devices.
/reboot - reboot system if needed to complete the operation.


For examples of how to use the PnPUtil tool, see PnPUtil Examples.
====

The last line of your bat file can be the command that exits windows.

The name of the bat file can be the name of the bat file that Windows is
already set up to run when you exit windows normallyl. I think most
people don't have that bat file. If you do, and I'm sure you don't,
you'd just want to add the language above to that current bat file,
probably at the start of it, so that your stuff and it both run.


On Sun, 7 Oct 2018 12:34:00 -0400, Wolf K
wrote:

On 2018-10-07 11:45, Silvio Galli wrote:
I have problems with my Surface Pro pen since the beginning. Every few
days I loose the connection and the pen stop working.
The only solution suggested by the support team tant works, is to
disinstall the drivers in 'Surface pen settings" and 'Touchscreen
compatible HID' and then restart Windows.

It works, but it's a PITA to make it every few days.

Waiting a driver update that can solve finally the problem, I would
like to write a script to automate the process. I have no experience
in scripting and I don't know if it is possible and where can I find
some basic instruction to write a script.

Thanks,
Silvio


Start he

https://en.wikipedia.org/wiki/Windows_Script_Host

  #7  
Old October 9th 18, 04:18 PM posted to alt.comp.os.windows-10
Ken Blake[_5_]
external usenet poster
 
Posts: 2,221
Default Surface pen

On Mon, 08 Oct 2018 21:51:02 -0400, micky
wrote:


There are more hits farther down plus there is at least one video. I
think tthe video is called Abbott and Costello meet Frankenstein, but I
watched it anyhow and it disucssed deleting drivers with a command line.



So Abbott talked about deleting drivers with a command line and
Costello asked "Commander Line? Is he on first?"?
  #8  
Old October 12th 18, 03:30 AM posted to alt.comp.os.windows-10
Micky
external usenet poster
 
Posts: 1,528
Default Surface pen

In alt.comp.os.windows-10, on Mon, 08 Oct 2018 21:48:00 -0400, micky
wrote:


/uninstall - uninstall driver package from any devices using it.
/force - delete driver package even when it is in use by devices.
/reboot - reboot system if needed to complete the operation.


Of course it's easier to use /reboot than an additional line, but I
hadn't read the subcommand list


For examples of how to use the PnPUtil tool, see PnPUtil Examples.
====

The last line of your bat file can be the command that exits windows.


Maybe a way comes with windows to exit windows from a batch file, but I
ended up dl'ing a famous suite of free utility programs.

I used this for a bat file to run my printer every month while I was out
of town, and it worked except I never got the scheduler to start it.
You won't have that problem.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 12:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.