Script help needed

J

John

Hi

What batch or windows script command can I use to copy myfile.htm to

<system drive>:\Documents and Settings\<Current User>\Application
Data\Microsoft\Stationery

folder?

Thanks

Regards
 
M

Mark Dormer

copy c:\myfile.htm "%systemdrive%\Documents and
Settings\%username%\Application Data\Microsoft\Stationery\myfile.htm"


Regards
Mark Dormer
 
W

Wesley Vogel

Shorter.

copy c:\myfile.htm "%userprofile%\Application
Data\Microsoft\Stationery\myfile.htm"

But, it too wrapped.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
P

Pegasus \(MVP\)

It's not only shorter but also more robust. A user's profile
folder is not necessarily "c:\documents and settings\%UserName%" -
- it can be a completely different folder. The variable
%UserProfile% reports it reliably.
 
R

Ramesh, MS-MVP

Adding to Wes, Mark and Pegasus:

%appdata% variable can be used to further shorten the path.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


It's not only shorter but also more robust. A user's profile
folder is not necessarily "c:\documents and settings\%UserName%" -
- it can be a completely different folder. The variable
%UserProfile% reports it reliably.
 
G

Guest

I need to submit a post on a hard disk / checksum problem but every time I
click on New 'Question' or 'General comment', nothing happens except that the
page jumps a bit and that's that.

This happens occasionally, like today, all day, using either of 2 pc's I
have access to. So it must have something to do with the net or this Win Xp
newsgroup setup/function. Only way I can submit is via a 'Reply' to a random
current thread, like now. Any help?

How else can I access this Win XP General group. I usually come here via an
old
email notification or via the link I find in my Win XP DeskTop Help (F1).

(My HD suddenly stoipped working as a Master and keeps rebooting w/ checksum
error message. It won't boot to Win Xp any more but still works fine as a
slave in the spare comp).

Appreciate.

--
Ted...


Ramesh said:
Adding to Wes, Mark and Pegasus:

%appdata% variable can be used to further shorten the path.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


It's not only shorter but also more robust. A user's profile
folder is not necessarily "c:\documents and settings\%UserName%" -
- it can be a completely different folder. The variable
%UserProfile% reports it reliably.


Wesley Vogel said:
Shorter.

copy c:\myfile.htm "%userprofile%\Application
Data\Microsoft\Stationery\myfile.htm"

But, it too wrapped.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

Guest

Whoops! Think I just saw the light. Seems the msn pop-up blocker is at work.
Didn't notice it and got no sound right now. When I allow popups, the new
'question' window pops up ok. Sorry 'bout that. I will now try to post under
title of:

"Lost HD Master function / CMOS checksum error"

(Note: I already posted this before but had to break into someone's thread
and use the 'Reply' expedient. Unfortunately that will not get it to the
attention of the
mvp's who may be specialists on this issue. So want to now post the proper
way).

--
Ted...


Ramesh said:
Adding to Wes, Mark and Pegasus:

%appdata% variable can be used to further shorten the path.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


It's not only shorter but also more robust. A user's profile
folder is not necessarily "c:\documents and settings\%UserName%" -
- it can be a completely different folder. The variable
%UserProfile% reports it reliably.


Wesley Vogel said:
Shorter.

copy c:\myfile.htm "%userprofile%\Application
Data\Microsoft\Stationery\myfile.htm"

But, it too wrapped.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
W

Wesley Vogel

How else can I access this Win XP General group

Microsoft CDO for Windows 2000 is akin to bear skins and stone knives.

Do yourself a favor and setup a real newsreader.

Outlook Express came free with XP.

You will later wonder why you didn't setup OE as your newsreader sooner.

MICROSOFT PUBLIC NEWSGROUPS
[[There are many valuable newsgroups on the msnews.microsoft.com server, on
nearly every available topic and in many different languages. Clicking the
links below will automatically create any necessary account configuration in
Outlook Express and take you directly to the newsgroup you have selected -
no complicated technical configurations are needed!]]
http://aumha.org/nntp.htm

Using Outlook Express To View Newsgroups
http://support.microsoft.com/default.aspx?scid=/directory/worldwide/en-gb/newsout.asp

Viewing and Posting to Newsgroups
http://www.microsoft.com/windows/ie/using/howto/oe/newsgroups.asp

Setting up Outlook Express Newsreader
http://michaelstevenstech.com/outlookexpressnewreader.htm

Getting News from Newsgroups
Ignore this part ->> Access a newsgroup right from the Web.
http://www.microsoft.com/windows/ie/using/howto/oe/gettingnews.asp

Set Up Outlook Express
http://www.microsoft.com/windows/ie/using/howto/oe/setup.asp

Mastering Newsgroups in Outlook Express: Power User Tips
http://www.microsoft.com/windows/ie/community/columns/newsgroups.mspx

Outlook Express newsgroups 101
http://www.microsoft.com/Windows/IE/community/columns/newsgroups101.mspx

Windows XP Newsgroup Setup Instructions for Outlook Express
http://www.microsoft.com/windowsxp/expertzone/newsgroupsetup.mspx

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
tedoniman said:
I need to submit a post on a hard disk / checksum problem but every time I
click on New 'Question' or 'General comment', nothing happens except that
the page jumps a bit and that's that.

This happens occasionally, like today, all day, using either of 2 pc's I
have access to. So it must have something to do with the net or this Win
Xp newsgroup setup/function. Only way I can submit is via a 'Reply' to a
random current thread, like now. Any help?

How else can I access this Win XP General group. I usually come here via
an old
email notification or via the link I find in my Win XP DeskTop Help (F1).

(My HD suddenly stoipped working as a Master and keeps rebooting w/
checksum error message. It won't boot to Win Xp any more but still works
fine as a slave in the spare comp).

Appreciate.

--
Ted...


Ramesh said:
Adding to Wes, Mark and Pegasus:

%appdata% variable can be used to further shorten the path.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


It's not only shorter but also more robust. A user's profile
folder is not necessarily "c:\documents and settings\%UserName%" -
- it can be a completely different folder. The variable
%UserProfile% reports it reliably.


Wesley Vogel said:
Shorter.

copy c:\myfile.htm "%userprofile%\Application
Data\Microsoft\Stationery\myfile.htm"

But, it too wrapped.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In Mark Dormer <[email protected]> hunted and pecked:
copy c:\myfile.htm "%systemdrive%\Documents and
Settings\%username%\Application Data\Microsoft\Stationery\myfile.htm"


Regards
Mark Dormer

Hi

What batch or windows script command can I use to copy myfile.htm to

<system drive>:\Documents and Settings\<Current User>\Application
Data\Microsoft\Stationery

folder?

Thanks

Regards
 
W

Wesley Vogel

;-)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Ramesh said:
Adding to Wes, Mark and Pegasus:

%appdata% variable can be used to further shorten the path.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


It's not only shorter but also more robust. A user's profile
folder is not necessarily "c:\documents and settings\%UserName%" -
- it can be a completely different folder. The variable
%UserProfile% reports it reliably.


Wesley Vogel said:
Shorter.

copy c:\myfile.htm "%userprofile%\Application
Data\Microsoft\Stationery\myfile.htm"

But, it too wrapped.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
K

Ken Blake

tedoniman said:
I need to submit a post on a hard disk / checksum problem but every
time I click on New 'Question' or 'General comment', nothing happens
except that the page jumps a bit and that's that.

This happens occasionally, like today, all day, using either of 2
pc's I have access to. So it must have something to do with the net
or this Win Xp newsgroup setup/function. Only way I can submit is via
a 'Reply' to a random current thread, like now. Any help?

How else can I access this Win XP General group. I usually come here
via an old
email notification or via the link I find in my Win XP DeskTop Help

The reason you're having such problems is that you are using the web
interface to read this newsgroup--it's the slowest, clunkiest, most
error-prone method there is. Do yourself a favor and switch to a newsreader,
such as Outlook Express, which comes with Windows.

See http://www.michaelstevenstech.com/outlookexpressnewreader.htm
 
G

Guest

Thanks, Ken and Wesley. Will add that to my 3-mile-long To Do list immediately!
First I got some other problems to solve, unfortunately. Fortunately, I do
have
Outlook Express installed and working. Usually it's not to bad here but as
you say...
Will give it a go soon.

Appreciate,
 
G

Guest

22-AUG-06 / 02:00 Thailand time

OK, Wesley, re OE, had some cockpit problems initially, since mostly
resolved.

Think was due to fact I'd forgotten I was working from friend's comp (which
didn't have an OE acct) and analyzing my own problem-HD in it as Slave (and
which had my OE acct) - or something like that...

Anyhow, I'm in OE now and, as you say, it's great. Just take some time to
get used to. Got all your links, though, for when I do get into trouble.

Once again, thanks for putting me on the right track. Looks good, so far.
OK. Got to get back on that troublesome HD and first back up some 30 Gigs
tonite - to where, I still don't know!
 
W

Wesley Vogel

Anyhow, I'm in OE now and, as you say, it's great.

Except for this message.

Newsreader: Microsoft CDO for Windows 2000

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

Guest

OK. Got that. Thanks. Got another one to post here, re: "MSOCache". Not too
familiar w/it. Maybe I'll google it but might not tell me what need to know.

Appreciate.
 
G

Guest

Aha! That'll save me a bit of trouble then. Just what the
Doctor ordered. That was fast!

Couldn't check my mail 'til today 'tho.

Thanks again.
 
G

Guest

OK. Just checked those 2 links and they sure do clear the air for me on the
issue.
Thanks.

If I could push my luck just a hair further - and although this is not
really a WIN
issue - I'm wondering if you've had any experience w/ problem Hard Drives.
If so,
you may have asked (and answered) similar.

As noted in a previous post, the HD in question won't work as Master any
more.
It just wouldn't boot one morning. Works fine as Slave, though, in other comp.

I'm wondering if the MBR and/or first sector were damaged somehow. If this
is the case, would re-partitioning and re-formating restore the Master
functionality?

I seem to recall something in a flash from the past about if sector 1 is
damged
then the HD is toast and nothing can be done.

Any comment on the above?
 
M

Mark Dormer

Who mentioned c: ?

I specified "%systemdrive%\Documents and Settings

Regards
Mark Dormer
 

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

Top