Jump to content

Recommended Posts

Posted (edited)

Morning all, back to the daily grind after easter break!..

 

We have an issue with an application called Kodu. The program tries to create a folder in the users My Documents folder but for some reason the program failes to create it with an error. Not sure if it's a permission issue or a bug in the program. I'm thinking the latter as it even fails if you log in locally. If i create the folder manually (my documents\SavedGames\Boku\Player 1\) the application loads fine and saves data to that folder.

 

So, a simple fix would be a logon script that would create the folder. I tried this:

 

md "%USERPROFILE%\documents\SavedGames\Boku\Player 1"

 

This just creates another folder in the user profile along side the "my pictures" and such called documents. I have tried other variations such as \My Documents\ etc. Is there a system variable to use for navigating to my documents?

 

Any help would be great. Not sure i want to go through profiles manually adding this folder!

Edited by Patrick
Posted
Ahh no. That just created a SavedGames folder in the user profile alongside My Documents. Any .vbs scripters around that could knock one up? Maybe .vbs can call My documents variable?
Posted

No luck :(

 

That just created another folder in the user profile called my documents. It work as a local user, but not as a domain user, because my documents are redirected. Hmm.

Posted

Oh domain account, my derp

 

It would probably have to be a direct domain link like

 

\\server\\usersfolder\\%USERNAME%\\My Documents\\folder\\

  • Thanks 1
Posted
Oh domain account, my derp

 

It would probably have to be a direct domain link like

 

\\server\\usersfolder\\%USERNAME%\\My Documents\\folder\\

 

Did the trick!! It's key to use the USERNAME variable and not USERPROFILE. Thanks very much, great stuff!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...