|
|
|||||||
Hi, we use 4.67. I'm not a goot programmer and i dont unterstand something at kixtart. We need a variable for the desktop. I use the following: Code: ;$rc = SetOption("NoVarsInStrings", "On") $Desktop = ExpandEnvironmentVars(%USERPROFILE%) $Desktop = $Desktop + "\Desktop" If i "deactivate" $rc = SetOption("NoVarsInStrings", "On") i get the value in $Desktop But i'm not sure if the following commands runs: copy "\\serv01\profile\lokal\%username%.v2\Desktop" "I:\Desktop\" or: SHELL "CMD.EXE /C %logonserver%\netlogon\IE_Druck.bat" Kind Regards Christian |
||||||||
|
|
|||||||
It is much safer to look up the path of the Desktop in the registry. In case of redirected folders, profile problems etc. this is the safest bet. Code: $Desktop=ReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Desktop") |
||||||||
|
|
|||||||
If i use the solution with the readvalue i get at an windows 7 pc the value %userprofile%\Desktop - %userprofile% would not been resolved |
||||||||
|
|
|||||||
Then use this: Code: $Desktop=ExpandEnvironmentVars(ReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Desktop")) |