sri
sri

Reputation: 3379

How to get workspace (document) path on Linux and Windows using commandline?

I have a script which is copy the file source to user workspace when run the script. here i need to get current user workspace from commandline. Can you help me how to get it on both Windows and Linux

Thanks in advance - sri

Upvotes: 0

Views: 868

Answers (1)

Erik A. Brandstadmoen
Erik A. Brandstadmoen

Reputation: 10588

What exactly do you mean by Workspace? If you mean the user's home directory, you can get this via the environment variable $HOME on Linux, and I think the equivalent on Windows would be %HOMESHARE% (not totally sure about the last one, because I am on a Domain computer with roaming profiles right now, and I'm not sure if there is any special setup on it.

Upvotes: 1

Related Questions