Re: [U2] windows/dos my documents environment variable

2010-03-05 Thread Dave Laansma
Thank you all for your help, however this subroutine from 2005 actually
works perfectly:

SUBROUTINE ATGETDOCPATH(PATH)

* Get path to My Documents folder using AccuTerm Script

SCR='InitSession.Output MyDocPath()  Chr$(13)'

SCR=SCR:CHAR(25):'End Sub'

SCR=SCR:CHAR(25):'Private Declare Function SHGetFolderPath Lib
shfolder.dll Alias SHGetFolderPathA (ByVal hwnd,ByVal fldr,ByVal
tok,ByVal dw,ByVal Path$)'

SCR=SCR:CHAR(25):'Function MyDocPath() As String'

SCR=SCR:CHAR(25):'Dim path As String'

SCR=SCR:CHAR(25):'On Error Resume Next'

SCR=SCR:CHAR(25):'path=String$(1000,0)'

SCR=SCR:CHAR(25):'SHGetFolderPath 0,5,0,0,path'

SCR=SCR:CHAR(25):'path=Left$(path,InStr(path,Chr$(0))-1)'

SCR=SCR:CHAR(25):'If Len(path) Then'

SCR=SCR:CHAR(25):'If Right$(path,1)\ Then path=path  \'

SCR=SCR:CHAR(25):'End If'

SCR=SCR:CHAR(25):'MyDocPath=path'

SCR=SCR:CHAR(25):'End Function'

SCR=SCR:CHAR(25):'Sub Dummy'

PRINT CHAR(27):CHAR(2):'P':SCR:CHAR(13):

ECHO OFF

PROMPT ''

INPUT PATH:

PROMPT '?'

ECHO ON

RETURN

END

Sincerely,
David Laansma
IT Manager
Hubbard Supply Co.
Direct: 810-342-7143
Office: 810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
Delivering Products, Services and Innovative Solutions

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Holt, Jake
Sent: Thursday, March 04, 2010 12:31 PM
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

I don't think it works if the user moves their documents/My documents
anyway so it's probably not the best place to be dropping files.  I've
always avoided it unless it's a .net app where I can use
Environment.SpecialFolder.MyDocuments, even then I've only used it once
or twice for unimportant things.

%HOMEPATH% actually goes to \Documents and Settings\{username} not
{drive}:\Documents and Settings\{username} which is why it's not working
the same as %USERPROFILE%.

Make a network share and use \\server\share\%username% instead =).

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Thursday, March 04, 2010 9:59 AM
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

...Or moved it back to where it was in XP.

I wonder what it's like to be in on the design meeting where someone
says
hey, let's just move stuff in this next release, k?.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-05 Thread Jacques G.
Hi,

This works for Windows in the English language.  In French, it would be:   
%userprofile\Mes documents.   The directory name changes depending on the 
language windows is in.



- Original Message 
From: Holt, Jake jh...@samsill.com
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Thu, March 4, 2010 10:10:19 AM
Subject: Re: [U2] windows/dos my documents environment variable

%userprofile%\My Documents

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma
Sent: Thursday, March 04, 2010 9:11 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] windows/dos my documents environment variable

I know this is not a U2 question, but I am trying to push a file from
Unidata to the PC User's 'my documents' directory, using the Accuterm
escape sequences for transferring a file.



For those of you who are Dos savvy, what is the Dos environment variable
that returns the full path of the users 'my documents' directory?



Sincerely,

David Laansma

IT Manager

Hubbard Supply Co.

Direct: 810-342-7143

Office: 810-234-8681

Fax: 810-234-6142

www.hubbardsupply.com

Delivering Products, Services and Innovative Solutions



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users



  
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-05 Thread Tony Gravagno
 From: Dave Laansma 
 Thank you all for your help, however this subroutine from 
 2005 actually works perfectly:
 
 SUBROUTINE ATGETDOCPATH(PATH)

 SCR=SCR:CHAR(25):'Private Declare Function SHGetFolderPath Lib
 shfolder.dll Alias SHGetFolderPathA (ByVal hwnd,ByVal
fldr,ByVal
 tok,ByVal dw,ByVal Path$)'

Executing kernel functions is a bit extreme for something this
basic.  The script above will work for AccuTerm users on the
client, not on the server.  If that's what you want and you have
AccuTerm, great.  Otherwise someone will need to code an
executable wrapper around shfolder.dll.  Again - a bit extreme
given the multitude of simpler solutions.  For info on Windows
special folders (that's what they're called) and environment
variables, I recommend people Google around to sites that provide
Windows-specific info.  As the OP stated, this isn't a U2
question.

Tony Gravagno
Nebula Research and Development
TG@ remove.pleaseNebula-RnD.com
Visit PickWiki.com! Contribute!
http://Twitter.com/TonyGravagno




___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] windows/dos my documents environment variable

2010-03-04 Thread Dave Laansma
I know this is not a U2 question, but I am trying to push a file from
Unidata to the PC User's 'my documents' directory, using the Accuterm
escape sequences for transferring a file.

 

For those of you who are Dos savvy, what is the Dos environment variable
that returns the full path of the users 'my documents' directory?

 

Sincerely,

David Laansma

IT Manager

Hubbard Supply Co.

Direct: 810-342-7143

Office: 810-234-8681

Fax: 810-234-6142

www.hubbardsupply.com

Delivering Products, Services and Innovative Solutions

 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Holt, Jake
%userprofile%\My Documents

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma
Sent: Thursday, March 04, 2010 9:11 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] windows/dos my documents environment variable

I know this is not a U2 question, but I am trying to push a file from
Unidata to the PC User's 'my documents' directory, using the Accuterm
escape sequences for transferring a file.

 

For those of you who are Dos savvy, what is the Dos environment variable
that returns the full path of the users 'my documents' directory?

 

Sincerely,

David Laansma

IT Manager

Hubbard Supply Co.

Direct: 810-342-7143

Office: 810-234-8681

Fax: 810-234-6142

www.hubbardsupply.com

Delivering Products, Services and Innovative Solutions

 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Keith Conley
Hi Dave,

I think what you are looking for are these variables:

%WINDIR% or %SYSTEMROOT%: opens the Windows installation
%PROGRAMFILES%: Opens the folder where you installed other programs (Program 
Files)
%USERPROFILE%: opens the profile of the user currently logged
%HOMEDRIVE%: opens the browser on the partition or the operating system is 
installed
%HOMEPATH%: opens the currently logged user C: \ Documents and Settings \ 
[username]
%TEMP%: opens the temporary folder

Keith Conley
IS Manager
Jerry Pate Turf  Irrigation, Inc.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma
Sent: Thursday, March 04, 2010 9:11 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] windows/dos my documents environment variable

I know this is not a U2 question, but I am trying to push a file from
Unidata to the PC User's 'my documents' directory, using the Accuterm
escape sequences for transferring a file.



For those of you who are Dos savvy, what is the Dos environment variable
that returns the full path of the users 'my documents' directory?



Sincerely,

David Laansma

IT Manager

Hubbard Supply Co.

Direct: 810-342-7143

Office: 810-234-8681

Fax: 810-234-6142

www.hubbardsupply.com

Delivering Products, Services and Innovative Solutions



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

CONFIDENTIALITY NOTICE: This electronic mail transmission is intended only for 
use by the addressee(s) named herein and may contain information that is 
confidential, privileged, or proprietary.  Distribution to anyone other than 
the addressee is prohibited. If you are not the intended recipient, you are not 
authorized to read, print, retain, copy or disseminate this message, any part 
of it, or any attachments.  If you have received this message in error, please 
permanently delete this message and any attachments without reading the content 
and notify the sender immediately of the inadvertent transmission.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Keith Conley
So I think what you are actually looking for would be:  %homepath%/Documents/

If you were to type that into the Run line, it would take you to the My 
Documents folder for the currently logged in user.

Keith

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith Conley
Sent: Thursday, March 04, 2010 9:17 AM
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

Hi Dave,

I think what you are looking for are these variables:

%WINDIR% or %SYSTEMROOT%: opens the Windows installation
%PROGRAMFILES%: Opens the folder where you installed other programs (Program 
Files)
%USERPROFILE%: opens the profile of the user currently logged
%HOMEDRIVE%: opens the browser on the partition or the operating system is 
installed
%HOMEPATH%: opens the currently logged user C: \ Documents and Settings \ 
[username]
%TEMP%: opens the temporary folder

Keith Conley
IS Manager
Jerry Pate Turf  Irrigation, Inc.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma
Sent: Thursday, March 04, 2010 9:11 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] windows/dos my documents environment variable

I know this is not a U2 question, but I am trying to push a file from
Unidata to the PC User's 'my documents' directory, using the Accuterm
escape sequences for transferring a file.



For those of you who are Dos savvy, what is the Dos environment variable
that returns the full path of the users 'my documents' directory?



Sincerely,

David Laansma

IT Manager

Hubbard Supply Co.

Direct: 810-342-7143

Office: 810-234-8681

Fax: 810-234-6142

www.hubbardsupply.com

Delivering Products, Services and Innovative Solutions



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

CONFIDENTIALITY NOTICE: This electronic mail transmission is intended only for 
use by the addressee(s) named herein and may contain information that is 
confidential, privileged, or proprietary.  Distribution to anyone other than 
the addressee is prohibited. If you are not the intended recipient, you are not 
authorized to read, print, retain, copy or disseminate this message, any part 
of it, or any attachments.  If you have received this message in error, please 
permanently delete this message and any attachments without reading the content 
and notify the sender immediately of the inadvertent transmission.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Edward Brown
Actually, what seems to work on Vista is %USERPROFILE%/Documents/ - a
mixture of previous suggestions!

Ed



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith Conley
Sent: 04 March 2010 15:20
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

So I think what you are actually looking for would be:
%homepath%/Documents/

If you were to type that into the Run line, it would take you to the My
Documents folder for the currently logged in user.

Keith

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith Conley
Sent: Thursday, March 04, 2010 9:17 AM
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

Hi Dave,

I think what you are looking for are these variables:

%WINDIR% or %SYSTEMROOT%: opens the Windows installation
%PROGRAMFILES%: Opens the folder where you installed other programs
(Program Files)
%USERPROFILE%: opens the profile of the user currently logged
%HOMEDRIVE%: opens the browser on the partition or the operating system
is installed
%HOMEPATH%: opens the currently logged user C: \ Documents and Settings
\ [username]
%TEMP%: opens the temporary folder

Keith Conley
IS Manager
Jerry Pate Turf  Irrigation, Inc.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma
Sent: Thursday, March 04, 2010 9:11 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] windows/dos my documents environment variable

I know this is not a U2 question, but I am trying to push a file from
Unidata to the PC User's 'my documents' directory, using the Accuterm
escape sequences for transferring a file.



For those of you who are Dos savvy, what is the Dos environment variable
that returns the full path of the users 'my documents' directory?



Sincerely,

David Laansma

IT Manager

Hubbard Supply Co.

Direct: 810-342-7143

Office: 810-234-8681

Fax: 810-234-6142

www.hubbardsupply.com

Delivering Products, Services and Innovative Solutions



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

CONFIDENTIALITY NOTICE: This electronic mail transmission is intended
only for use by the addressee(s) named herein and may contain
information that is confidential, privileged, or proprietary.
Distribution to anyone other than the addressee is prohibited. If you
are not the intended recipient, you are not authorized to read, print,
retain, copy or disseminate this message, any part of it, or any
attachments.  If you have received this message in error, please
permanently delete this message and any attachments without reading the
content and notify the sender immediately of the inadvertent
transmission.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

---
This e-mail and any attachment(s), is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the 
addressee, dissemination, copying or use of this e-mail or any of its content 
is prohibited and may be unlawful. If you are not the intended recipient please 
inform the sender immediately and destroy the e-mail, any attachment(s) and any 
copies. All liability for viruses is excluded to the fullest extent permitted 
by law. It is your responsibility to scan or otherwise check this email and any 
attachment(s). Unless otherwise stated (i) views expressed in this message are 
those of the individual sender (ii) no contract may be construed by this 
e-mail. Emails may be monitored and you are taken to consent to this 
monitoring.  

Civica Services Limited, Company No. 02374268; Civica UK Limited, Company No. 
01628868
Both companies are registered in England and Wales and each has its registered 
office at 2 Burston Road, Putney, London, SW15 6AR.
---

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Kevin King
Didn't Microsoft change the location of the /Documents/ directory with Win7
Or is it still under %USERPROFILE%?

On Thu, Mar 4, 2010 at 8:24 AM, Edward Brown ebr...@civica.co.uk wrote:

 Actually, what seems to work on Vista is %USERPROFILE%/Documents/ - a
 mixture of previous suggestions!

 Ed



 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith Conley
 Sent: 04 March 2010 15:20
 To: U2 Users List
 Subject: Re: [U2] windows/dos my documents environment variable

 So I think what you are actually looking for would be:
 %homepath%/Documents/

 If you were to type that into the Run line, it would take you to the My
 Documents folder for the currently logged in user.

 Keith

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith Conley
 Sent: Thursday, March 04, 2010 9:17 AM
 To: U2 Users List
 Subject: Re: [U2] windows/dos my documents environment variable

 Hi Dave,

 I think what you are looking for are these variables:

 %WINDIR% or %SYSTEMROOT%: opens the Windows installation
 %PROGRAMFILES%: Opens the folder where you installed other programs
 (Program Files)
 %USERPROFILE%: opens the profile of the user currently logged
 %HOMEDRIVE%: opens the browser on the partition or the operating system
 is installed
 %HOMEPATH%: opens the currently logged user C: \ Documents and Settings
 \ [username]
 %TEMP%: opens the temporary folder

 Keith Conley
 IS Manager
 Jerry Pate Turf  Irrigation, Inc.

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma
 Sent: Thursday, March 04, 2010 9:11 AM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] windows/dos my documents environment variable

 I know this is not a U2 question, but I am trying to push a file from
 Unidata to the PC User's 'my documents' directory, using the Accuterm
 escape sequences for transferring a file.



 For those of you who are Dos savvy, what is the Dos environment variable
 that returns the full path of the users 'my documents' directory?



 Sincerely,

 David Laansma

 IT Manager

 Hubbard Supply Co.

 Direct: 810-342-7143

 Office: 810-234-8681

 Fax: 810-234-6142

 www.hubbardsupply.com

 Delivering Products, Services and Innovative Solutions



 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

 CONFIDENTIALITY NOTICE: This electronic mail transmission is intended
 only for use by the addressee(s) named herein and may contain
 information that is confidential, privileged, or proprietary.
 Distribution to anyone other than the addressee is prohibited. If you
 are not the intended recipient, you are not authorized to read, print,
 retain, copy or disseminate this message, any part of it, or any
 attachments.  If you have received this message in error, please
 permanently delete this message and any attachments without reading the
 content and notify the sender immediately of the inadvertent
 transmission.
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users


 ---
 This e-mail and any attachment(s), is confidential and may be legally
 privileged. It is intended solely for the addressee. If you are not the
 addressee, dissemination, copying or use of this e-mail or any of its
 content is prohibited and may be unlawful. If you are not the intended
 recipient please inform the sender immediately and destroy the e-mail, any
 attachment(s) and any copies. All liability for viruses is excluded to the
 fullest extent permitted by law. It is your responsibility to scan or
 otherwise check this email and any attachment(s). Unless otherwise stated
 (i) views expressed in this message are those of the individual sender (ii)
 no contract may be construed by this e-mail. Emails may be monitored and you
 are taken to consent to this monitoring.

 Civica Services Limited, Company No. 02374268; Civica UK Limited, Company
 No. 01628868
 Both companies are registered in England and Wales and each has its
 registered office at 2 Burston Road, Putney, London, SW15 6AR.

 ---

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users




-- 
-Kevin
http://www.PrecisOnline.com
___
U2-Users mailing list
U2-Users@listserver.u2ug.org

Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Keith Conley
Before I posted, I verified on my desktop (Windows 7 Pro) that it did in fact 
work. :)

Keith

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Thursday, March 04, 2010 9:44 AM
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

Didn't Microsoft change the location of the /Documents/ directory with Win7
Or is it still under %USERPROFILE%?

On Thu, Mar 4, 2010 at 8:24 AM, Edward Brown ebr...@civica.co.uk wrote:

 Actually, what seems to work on Vista is %USERPROFILE%/Documents/ - a
 mixture of previous suggestions!

 Ed



 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith Conley
 Sent: 04 March 2010 15:20
 To: U2 Users List
 Subject: Re: [U2] windows/dos my documents environment variable

 So I think what you are actually looking for would be:
 %homepath%/Documents/

 If you were to type that into the Run line, it would take you to the My
 Documents folder for the currently logged in user.

 Keith

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith Conley
 Sent: Thursday, March 04, 2010 9:17 AM
 To: U2 Users List
 Subject: Re: [U2] windows/dos my documents environment variable

 Hi Dave,

 I think what you are looking for are these variables:

 %WINDIR% or %SYSTEMROOT%: opens the Windows installation
 %PROGRAMFILES%: Opens the folder where you installed other programs
 (Program Files)
 %USERPROFILE%: opens the profile of the user currently logged
 %HOMEDRIVE%: opens the browser on the partition or the operating system
 is installed
 %HOMEPATH%: opens the currently logged user C: \ Documents and Settings
 \ [username]
 %TEMP%: opens the temporary folder

 Keith Conley
 IS Manager
 Jerry Pate Turf  Irrigation, Inc.

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma
 Sent: Thursday, March 04, 2010 9:11 AM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] windows/dos my documents environment variable

 I know this is not a U2 question, but I am trying to push a file from
 Unidata to the PC User's 'my documents' directory, using the Accuterm
 escape sequences for transferring a file.



 For those of you who are Dos savvy, what is the Dos environment variable
 that returns the full path of the users 'my documents' directory?



 Sincerely,

 David Laansma

 IT Manager

 Hubbard Supply Co.

 Direct: 810-342-7143

 Office: 810-234-8681

 Fax: 810-234-6142

 www.hubbardsupply.com

 Delivering Products, Services and Innovative Solutions



 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

 CONFIDENTIALITY NOTICE: This electronic mail transmission is intended
 only for use by the addressee(s) named herein and may contain
 information that is confidential, privileged, or proprietary.
 Distribution to anyone other than the addressee is prohibited. If you
 are not the intended recipient, you are not authorized to read, print,
 retain, copy or disseminate this message, any part of it, or any
 attachments.  If you have received this message in error, please
 permanently delete this message and any attachments without reading the
 content and notify the sender immediately of the inadvertent
 transmission.
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users


 ---
 This e-mail and any attachment(s), is confidential and may be legally
 privileged. It is intended solely for the addressee. If you are not the
 addressee, dissemination, copying or use of this e-mail or any of its
 content is prohibited and may be unlawful. If you are not the intended
 recipient please inform the sender immediately and destroy the e-mail, any
 attachment(s) and any copies. All liability for viruses is excluded to the
 fullest extent permitted by law. It is your responsibility to scan or
 otherwise check this email and any attachment(s). Unless otherwise stated
 (i) views expressed in this message are those of the individual sender (ii)
 no contract may be construed by this e-mail. Emails may be monitored and you
 are taken to consent to this monitoring.

 Civica Services Limited, Company No. 02374268; Civica UK Limited, Company
 No. 01628868
 Both companies are registered in England and Wales and each has its
 registered office at 2 Burston Road, Putney, London, SW15 6AR

Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Edward Brown
Just checked %homepath%/Documents/ again on a Vista machine - it doesn't
work.

So looks like ms moved My Documents on Win7...

Ed

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith Conley
Sent: 04 March 2010 15:53
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

Before I posted, I verified on my desktop (Windows 7 Pro) that it did in
fact work. :)

Keith

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Thursday, March 04, 2010 9:44 AM
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

Didn't Microsoft change the location of the /Documents/ directory with
Win7
Or is it still under %USERPROFILE%?

On Thu, Mar 4, 2010 at 8:24 AM, Edward Brown ebr...@civica.co.uk
wrote:

 Actually, what seems to work on Vista is %USERPROFILE%/Documents/ - a
 mixture of previous suggestions!

 Ed



 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith
Conley
 Sent: 04 March 2010 15:20
 To: U2 Users List
 Subject: Re: [U2] windows/dos my documents environment variable

 So I think what you are actually looking for would be:
 %homepath%/Documents/

 If you were to type that into the Run line, it would take you to the
My
 Documents folder for the currently logged in user.

 Keith

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Keith
Conley
 Sent: Thursday, March 04, 2010 9:17 AM
 To: U2 Users List
 Subject: Re: [U2] windows/dos my documents environment variable

 Hi Dave,

 I think what you are looking for are these variables:

 %WINDIR% or %SYSTEMROOT%: opens the Windows installation
 %PROGRAMFILES%: Opens the folder where you installed other programs
 (Program Files)
 %USERPROFILE%: opens the profile of the user currently logged
 %HOMEDRIVE%: opens the browser on the partition or the operating
system
 is installed
 %HOMEPATH%: opens the currently logged user C: \ Documents and
Settings
 \ [username]
 %TEMP%: opens the temporary folder

 Keith Conley
 IS Manager
 Jerry Pate Turf  Irrigation, Inc.

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave
Laansma
 Sent: Thursday, March 04, 2010 9:11 AM
 To: u2-users@listserver.u2ug.org
 Subject: [U2] windows/dos my documents environment variable

 I know this is not a U2 question, but I am trying to push a file from
 Unidata to the PC User's 'my documents' directory, using the Accuterm
 escape sequences for transferring a file.



 For those of you who are Dos savvy, what is the Dos environment
variable
 that returns the full path of the users 'my documents' directory?



 Sincerely,

 David Laansma

 IT Manager

 Hubbard Supply Co.

 Direct: 810-342-7143

 Office: 810-234-8681

 Fax: 810-234-6142

 www.hubbardsupply.com

 Delivering Products, Services and Innovative Solutions



 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

 CONFIDENTIALITY NOTICE: This electronic mail transmission is intended
 only for use by the addressee(s) named herein and may contain
 information that is confidential, privileged, or proprietary.
 Distribution to anyone other than the addressee is prohibited. If you
 are not the intended recipient, you are not authorized to read, print,
 retain, copy or disseminate this message, any part of it, or any
 attachments.  If you have received this message in error, please
 permanently delete this message and any attachments without reading
the
 content and notify the sender immediately of the inadvertent
 transmission.
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users




---
 This e-mail and any attachment(s), is confidential and may be legally
 privileged. It is intended solely for the addressee. If you are not
the
 addressee, dissemination, copying or use of this e-mail or any of its
 content is prohibited and may be unlawful. If you are not the intended
 recipient please inform the sender immediately and destroy the e-mail,
any
 attachment(s) and any copies. All liability for viruses is excluded to
the
 fullest extent permitted by law. It is your responsibility to scan or
 otherwise check this email and any attachment(s). Unless otherwise
stated
 (i) views expressed in this message are those of the individual sender

Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Kevin King
...Or moved it back to where it was in XP.

I wonder what it's like to be in on the design meeting where someone says
hey, let's just move stuff in this next release, k?.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread BNeylon
If you wish, there is a subroutine, FIND_MYDOCUMENTS, in the AccuTerm 
SAMPLES file. 


Bruce M Neylon
Health Care Management Group 




From:   Dave Laansma dlaan...@hubbardsupply.com
To: u2-users@listserver.u2ug.org
Date:   03/04/2010 10:11 AM
Subject:[U2] windows/dos my documents environment variable
Sent by:u2-users-boun...@listserver.u2ug.org



I know this is not a U2 question, but I am trying to push a file from
Unidata to the PC User's 'my documents' directory, using the Accuterm
escape sequences for transferring a file.

 

For those of you who are Dos savvy, what is the Dos environment variable
that returns the full path of the users 'my documents' directory?

 

Sincerely,

David Laansma

IT Manager

Hubbard Supply Co.

Direct: 810-342-7143

Office: 810-234-8681

Fax: 810-234-6142

www.hubbardsupply.com

Delivering Products, Services and Innovative Solutions

 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Holt, Jake
I don't think it works if the user moves their documents/My documents
anyway so it's probably not the best place to be dropping files.  I've
always avoided it unless it's a .net app where I can use
Environment.SpecialFolder.MyDocuments, even then I've only used it once
or twice for unimportant things.

%HOMEPATH% actually goes to \Documents and Settings\{username} not
{drive}:\Documents and Settings\{username} which is why it's not working
the same as %USERPROFILE%.

Make a network share and use \\server\share\%username% instead =).

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Thursday, March 04, 2010 9:59 AM
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

...Or moved it back to where it was in XP.

I wonder what it's like to be in on the design meeting where someone
says
hey, let's just move stuff in this next release, k?.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] windows/dos my documents environment variable

2010-03-04 Thread Robert Porter
I was about to bring that up... This pc for example has been set by group 
policy to have My Documents point to D:\ for re-imaging reasons. Yet no 
environmental variable shows that.  BTW, type SET by itself at a command 
prompt to see which env. variables are set - they do vary amount versions of 
Windows.
 
Also correct on the %HOMEPATH%, you would need %HOMEDRIVE%%HOMEPATH%\Documents\ 
 for the full path, unless the above applies...
 
Robert


 Holt, Jake jh...@samsill.com 3/4/2010 11:30 AM 
I don't think it works if the user moves their documents/My documents
anyway so it's probably not the best place to be dropping files.  I've
always avoided it unless it's a .net app where I can use
Environment.SpecialFolder.MyDocuments, even then I've only used it once
or twice for unimportant things.

%HOMEPATH% actually goes to \Documents and Settings\{username} not
{drive}:\Documents and Settings\{username} which is why it's not working
the same as %USERPROFILE%.

Make a network share and use \\server\share\%username% instead =).

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: Thursday, March 04, 2010 9:59 AM
To: U2 Users List
Subject: Re: [U2] windows/dos my documents environment variable

...Or moved it back to where it was in XP.

I wonder what it's like to be in on the design meeting where someone
says
hey, let's just move stuff in this next release, k?.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org 
http://listserver.u2ug.org/mailman/listinfo/u2-users 
___
U2-Users mailing list
U2-Users@listserver.u2ug.org 
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users