Python+Windows specific questions

H

hg

Hi,

Do I need the pywin32 extentions to:

1) change the pc system date ?
2) launch a ppp connection ?

Thanks,

hg
 
D

Dennis Lee Bieber

Do I need the pywin32 extentions to:

1) change the pc system date ?

For windows, maybe not... os.system() might be sufficient via
invocation of:

C:\Documents and Settings\Dennis Lee Bieber>date /?
Displays or sets the date.

DATE [/T | date]

Type DATE without parameters to display the current date setting and
a prompt for a new one. Press ENTER to keep the same date.

If Command Extensions are enabled the DATE command supports
the /T switch which tells the command to just output the
current date, without prompting for a new date.

C:\Documents and Settings\Dennis Lee Bieber>
C:\Documents and Settings\Dennis Lee Bieber>time /?
Displays or sets the system time.

TIME [/T | time]

Type TIME with no parameters to display the current time setting and a
prompt
for a new one. Press ENTER to keep the same time.

If Command Extensions are enabled the TIME command supports
the /T switch which tells the command to just output the
current time, without prompting for a new time.

C:\Documents and Settings\Dennis Lee Bieber>


Of course, you may need privileges to perform that operation -- I
don't know if the actual setting operation is locked for "users".
Besides, my system does -- at a minimum -- a weekly update via various
NTP servers, so any change wouldn't stick around.

2) launch a ppp connection ?
No idea... If you have a short-cut to dial that connection,
os.start() [or is it os.startfile()] might be sufficient when fed the
shortcut.
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top