diff options
author | Javier Castillo | 2011-04-05 19:40:30 +0200 |
---|---|---|
committer | Javier Castillo | 2011-04-06 15:04:28 +0200 |
commit | b97727e23c3dc5635f3ee1adb026e613d4062581 (patch) | |
tree | c43911e6f5720b3df91defa8b990ba32cdc58151 /AccountValue/Form1.cs | |
parent | Version: 0.5.0 (diff) | |
download | logintool-b97727e23c3dc5635f3ee1adb026e613d4062581.tar.gz logintool-b97727e23c3dc5635f3ee1adb026e613d4062581.tar.xz logintool-b97727e23c3dc5635f3ee1adb026e613d4062581.zip |
FIX: Druckereintellung (RZ und UB2)
Signed-off-by: Javier Castillo <javier.castillo@rz.uni-freiburg.de>
Diffstat (limited to 'AccountValue/Form1.cs')
-rw-r--r-- | AccountValue/Form1.cs | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/AccountValue/Form1.cs b/AccountValue/Form1.cs index 5d5170c..8472718 100644 --- a/AccountValue/Form1.cs +++ b/AccountValue/Form1.cs @@ -277,7 +277,8 @@ namespace AccountValue try
{
oNetDrive.LocalDrive = "";
- oNetDrive.ShareName = "\\\\pub-ps01.public.ads.uni-freiburg.de";
+ //oNetDrive.ShareName = "\\\\pub-ps01.public.ads.uni-freiburg.de";
+ oNetDrive.ShareName = "\\\\pub-ps03.public.ads.uni-freiburg.de";
oNetDrive.MapDrive("PUBLIC\\" + textBox1.Text, maskedTextBox1.Text);
}
catch
@@ -291,40 +292,52 @@ namespace AccountValue {
try
{
+ // Installiere RZ-MONO
System.Diagnostics.ProcessStartInfo sendInfo;
sendInfo = new System.Diagnostics.ProcessStartInfo("cscript");
sendInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
if (myOS == "WinXP")
- sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\rzps1";
+ //sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\rzps1";
+ sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps03.public.ads.uni-freiburg.de\\rz01";
if (myOS == "WinVista" || myOS == "Win7")
- sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\rzps1";
+ //sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\rzps1";
+ sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps03.public.ads.uni-freiburg.de\\rz01";
System.Diagnostics.Process.Start(sendInfo);
sendInfo = null;
+ // Installiere RZ-FARBE
sendInfo = new System.Diagnostics.ProcessStartInfo("cscript");
sendInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
if (myOS == "WinXP")
- sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\rzps2";
+ //sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\rzps2";
+ sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps03.public.ads.uni-freiburg.de\\rz02";
if (myOS == "WinVista" || myOS == "Win7")
- sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\rzps2";
+ //sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\rzps2";
+ sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps03.public.ads.uni-freiburg.de\\rz02";
System.Diagnostics.Process.Start(sendInfo);
sendInfo = null;
+ // Installiere UB2-MONO
sendInfo = new System.Diagnostics.ProcessStartInfo("cscript");
sendInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
if (myOS == "WinXP")
- sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\ubps1";
+ //sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\ubps1";
+ sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps03.public.ads.uni-freiburg.de\\ub201";
if (myOS == "WinVista" || myOS == "Win7")
- sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\ubps1";
+ //sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\ubps1";
+ sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps03.public.ads.uni-freiburg.de\\ub201";
System.Diagnostics.Process.Start(sendInfo);
sendInfo = null;
+ // Installiere UB2-FARBE
sendInfo = new System.Diagnostics.ProcessStartInfo("cscript");
sendInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
if (myOS == "WinXP")
- sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\ubps2";
+ //sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\ubps2";
+ sendInfo.Arguments = "C:\\WINDOWS\\system32\\prnmngr.vbs -ac -p " + "\\\\pub-ps03.public.ads.uni-freiburg.de\\ub202";
if (myOS == "WinVista" || myOS == "Win7")
- sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\ubps2";
+ //sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps01.public.ads.uni-freiburg.de\\ubps2";
+ sendInfo.Arguments = "C:\\WINDOWS\\system32\\printing_admin_scripts\\de-DE\\prnmngr.vbs -ac -p " + "\\\\pub-ps03.public.ads.uni-freiburg.de\\ub202";
System.Diagnostics.Process.Start(sendInfo);
sendInfo = null;
}
@@ -339,7 +352,8 @@ namespace AccountValue try
{
oNetDrive.LocalDrive = "";
- oNetDrive.ShareName = "\\\\pub-ps01.public.ads.uni-freiburg.de";
+ //oNetDrive.ShareName = "\\\\pub-ps01.public.ads.uni-freiburg.de";
+ oNetDrive.ShareName = "\\\\pub-ps03.public.ads.uni-freiburg.de";
oNetDrive.MapDrive("PUBLIC\\" + textBox1.Text, maskedTextBox1.Text);
}
catch
|