Seite 1 von 1
Copy to %APPDATA%
Verfasst: 08 Aug 2018, 08:54
von MyLive
Hallo Opsi Team,
ich möchte nach %APPDATA% kopieren, folgende Ansätze haben alle nicht funktioniert
[Files_SystemProfile]
copy -s "%ScriptPath%\subversion\servers" "%AppData%\Subversion"
copy -s "%ScriptPath%\subversion\servers" "C:\Windows\system32\config\systemprofile\AppData\Roaming\Subversion"
[DosInAnIcon_Copy]
copy "%ScriptPath%\subversion\servers" "%AppData%\Subversion"
copy "%ScriptPath%\subversion\servers" "C:\Windows\system32\config\systemprofile\AppData\Roaming\Subversion"
[DosBatch_Copy]
copy "%ScriptPath%\subversion\servers" "%AppData%\Subversion"
copy "%ScriptPath%\subversion\servers" "C:\Windows\system32\config\systemprofile\AppData\Roaming\Subversion"
Ich sitze hier seit einigen Stunden und habe keine Ahnung was ich tun soll, er sagt zwar immer er hat kopiert, aber dem ist nicht so.
Hat jemand eine Lösung ?
Grüße & Danke,
R. Hegewald
Re: Copy to %APPDATA%
Verfasst: 08 Aug 2018, 13:22
von bernd670
Hallo,
%APPDATA% funktioniert nur wenn der User angemeldet ist.
Du willst wahrscheinlich in alle Userprofile die Daten kopieren!?
Das sollte dann so gehen (nicht getestet)
Code: Alles auswählen
[Files_SystemProfile]
copy -s "%ScriptPath%\subversion\servers" "%CurrentProfileDir%\Subversion"
copy -s "%ScriptPath%\subversion\servers" "C:\Windows\system32\config\systemprofile\AppData\Roaming\Subversion"
Und aufufen mit
Re: Copy to %APPDATA%
Verfasst: 08 Aug 2018, 13:35
von MyLive
Hallo bernd670,
nein, geht leider nicht.
Zumal mich das auch gewundert hätte

.
Grüße,
René
PS: aber in meiner Verzeiflung hab ich das mal getestet, gleiches wie immer:
1 File(s) found, aber auf dem Ziel ist nix
Re: Copy to %APPDATA%
Verfasst: 08 Aug 2018, 14:44
von uncle_scrooge
An Deinen DOS-Batch hinten ein 'pause' dranhängen. Dann siehst Du , was passiert. Und wie die Variablen aufgelöst werden.
Und dann erklären, was Du genau erreichen willst.
Liegt bernd670 mit seiner Vermutung richtig? Oder willst Du doch deine Kaffeemaschine mit einer Subversion-Config beglücken? Oder was?
Re: Copy to %APPDATA%
Verfasst: 08 Aug 2018, 16:42
von MyLive
Keine Kaffee Maschine

sondern Config Files die im SVN Schlummern

Zum erklären was ich erreichen will, das steht doch oben.
Ich möchte ein File Kopieren nach %APPDATA%.
Jenes %APPDATA% welches Opsi bei der Ausführung kennt, da der SVN Client den ich über Opsi starte dort unter
%APPDATA%\Subversion seine config erwartet.
Next Try als Winbatch: Output:
Code: Alles auswählen
Call "robocopy p:\pandis_fpl\subversion %AppData%\Subversion servers"
Waiting until the called process is finished
Start process as invoker: SYSTEM
ExitCode 0 Executed process "robocopy p:\pandis_fpl\subversion %AppData%\Subversion servers"
Call "robocopy p:\pandis_fpl\subversion C:\Windows\system32\config\systemprofile\AppData\Roaming\Subversion servers"
Waiting until the called process is finished
Start process as invoker: SYSTEM
ExitCode 0 Executed process "robocopy p:\pandis_fpl\subversion C:\Windows\system32\config\systemprofile\AppData\Roaming\Subversion servers"
aber wie auch schon oben, die Datei ist nicht vorhanden .. ich versteh nicht wieso

Re: Copy to %APPDATA%
Verfasst: 09 Aug 2018, 18:08
von d.haberland
Hallo,
ich habe das gleiche mal gemacht bloß mit Daten löschen.
Ich hab es fast so wie
Code: Alles auswählen
[Files_SystemProfile] /AllNtUserProfiles
[Files_SystemProfile]
copy -s "%ScriptPath%\subversion\servers" "%CurrentProfileDir%\Subversion"
copy -s "%ScriptPath%\subversion\servers" "%CurrentProfileDir%\AppData\Roaming\Subversion"
Könntest du auch evtl. die Fehlerlogs posten?
Re: Copy to %APPDATA%
Verfasst: 09 Aug 2018, 20:15
von uncle_scrooge
..das steht doch oben...
Tut es nicht. Dort stehen lustige Dinge. Aber nicht so viel, daß ein seniler, alter Mann wie ich messerscharf daraus schließen kann, daß Du wirklich am system profile rumbasteln willst.
Sei's drum.
Woran Du scheiterst, sind die Untiefen eines 64bittigen Windows.
Wenn Du unter C:\Windows\SysWOW64\config\systemprofile\AppData nachsiehst, wirst Du mit Sicherheit Deine Datei finden.
Häng' an Deinen DOSBatch ein 'winst /SYSNATIVE' dran. Also DOSBatch_Copy winst /SYSNATIVE
Dann landest Du in C:\Windows\system32\config\systemprofile\AppData
Re: Copy to %APPDATA%
Verfasst: 09 Aug 2018, 23:09
von SisterOfMercy
It's not hard:
Code: Alles auswählen
Files_install_AllProfiles /AllNtUserProfiles
[Files_install_AllProfiles]
copy -s "%ScriptPath%\files\*" "%UserProfileDir%\AppData\Roaming\Directory"
See the difference? I think it's in the wildcard.
Code: Alles auswählen
copy -s "%ScriptPath%\subversion\servers" "%CurrentProfileDir%\Subversion"