Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: writing to a users "My Documents" folder

by boblawblah (Scribe)
on Jan 27, 2009 at 21:59 UTC ( [id://739365]=note: print w/replies, xml ) Need Help??


in reply to writing to a users "My Documents" folder

perl -e 'print "$_ = $ENV{$_}\n" for sort keys %ENV;'
Run that. It will print of all your system environmental variables. Which includes the current users 'My Document' folder.

It should be noted, that if you are using Win32::OLE to create the excel file that simply saying
$Book->SaveAs('file.xls');
will save to the users My Documents folder. (The OLE object does not default to using your programs current working directory).

Replies are listed 'Best First'.
Re^2: writing to a users "My Documents" folder
by Anonymous Monk on Sep 30, 2013 at 06:32 UTC
    but if I want the excel to be saved in my current directory then how do I do?? PS: giving the path has not worked for me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://739365]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found