Forum: SuRun English speaking RSS
command line tool
digital (Guest) #1
No profile available.
Link to this post
Subject: command line tool
Is it possible to use SuRun from a command line (for usage in the scripts for example), not from Explorer?
Kay (Administrator) #2
User title: Weltverbesserer
Member since Nov 2007 · 1509 posts · Location: Magdeburg
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
Yes it is.

Just run "SuRun <program>" to start <program> as Administrator.

Additionally SuRun supports the following command line switches:
/QUIET              do not display an messages
/RUNAS <program>    start <program> as different user
/RESTORE <file>     restore "SuRun Settings" from <file>
/SETUP              start "SuRun Settings"
/INSTALL            Install SuRun unattended
/INSTALL <file>     Install SuRun unattended and do "SuRun /RESTORE <file>"
/UNINSTALL          remove SuRun from the system


Native support for console applications is already in the wish list but not done yet.

cheers,

Kay
digital (Guest) #3
No profile available.
Link to this post
Thank you for the answer. Could you please add this text (just paste it :) to the ReadMe.txt?
Also I see there is /RESTORE <file>, is there a corresponding /SAVE <file>?
Cosmo #4
Member since Mar 2008 · 451 posts
Group memberships: Mitglieder
Show profile · Link to this post
Quote by digital:
Could you please add this text (just paste it :) to the ReadMe.txt?
Good idea! Also place the info into the PDF-docu, please.
Thomas
Kay (Administrator) #5
User title: Weltverbesserer
Member since Nov 2007 · 1509 posts · Location: Magdeburg
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
"/BACKUP <file>" now is on the wish list.

The info is already in the german documentation.
I've put it to the english readme. :-)
Unfortunately there is no english documentation yet.
This post was edited on 2008-11-07, 08:41 by Kay.
Cosmo #6
Member since Mar 2008 · 451 posts
Group memberships: Mitglieder
Show profile · Link to this post
Regarding the German docu: My fault, I did not check. Sorry for that.
Thomas
digital (Guest) #7
No profile available.
Link to this post
I ran surun /RESTORE file.txt (file.txt was backed up from the gui, and one setting was changed), but after that I see the setting is not changed in GUI.
Kay (Administrator) #8
User title: Weltverbesserer
Member since Nov 2007 · 1509 posts · Location: Magdeburg
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
I want to dig that up: What setting was changed?
digital (Guest) #9
No profile available.
Link to this post
I changed UserTSA=2 to 0:

[User0]
Name=aa
IsLocalUser=1
NoRunSetup=1
RestrictApps=0
UserTSA=0
HideFromUser=0
ReqPw4Setup=0

Backup was done on the same PC. When I restore from command line gui still shows "Display user status in taskbar" checked for this user. If I restore using gui, it is changed properly ("Display user status in taskbar" becomes unchecked). I used full path for the file as I read in another post - surun /RESTORE  "C:\Documents and Settings\Administrator\Desktop\surun2"
Kay (Administrator) #10
User title: Weltverbesserer
Member since Nov 2007 · 1509 posts · Location: Magdeburg
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
I found the bug!

SuRun did not unquote the file name ("C:\Documents and Settings\Administrator\Desktop\surun2").

Thanks for reporting! :-)

I fixed this internally.
The next Beta will contain the fix.
Until then just run surun /RESTORE  C:\Documents and Settings\Administrator\Desktop\surun2 without any quotation marks.
Kay (Administrator) #11
User title: Weltverbesserer
Member since Nov 2007 · 1509 posts · Location: Magdeburg
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
Please try the latest SuRun beta.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Not logged in. · Lost password · Register
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 62.8 ms (33.3 ms) · 93 database queries in 24.5 ms
Current time: 2019-12-08, 03:51:56 (UTC +01:00)