Patrick Posted April 13, 2015 Posted April 13, 2015 (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 April 13, 2015 by Patrick
tmcd35 Posted April 13, 2015 Posted April 13, 2015 would md "%homepath%\SavedGames\Boku\Player 1" work?
Patrick Posted April 13, 2015 Author Posted April 13, 2015 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?
Arreks Posted April 13, 2015 Posted April 13, 2015 Perhaps [color=#333333]md %USERPROFILE%\\My Documents\\SavedGames\\Boku\\Player 1 [/color]
Patrick Posted April 13, 2015 Author Posted April 13, 2015 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.
Arreks Posted April 13, 2015 Posted April 13, 2015 Oh domain account, my derp It would probably have to be a direct domain link like \\server\\usersfolder\\%USERNAME%\\My Documents\\folder\\ 1
Patrick Posted April 13, 2015 Author Posted April 13, 2015 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now