This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-17 12:04:08

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

.bat Help!

I need something like this:

@ECHO OFF
START AS ADMIN/ BLAH/BLAH/MOREBLAH/test.bat

You see, I want this to startup, start another batch as admin (as some features only work as admin.) so, any suggestion?

Offline

 

#2 2011-07-17 12:06:28

msdosdude
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: .bat Help!


http://i39.tinypic.com/2vkxppf.png
Freebie. Not a Scratch OS, a REAL OS you can boot to, by msdosdude.

Offline

 

#3 2011-07-17 12:07:21

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

msdosdude wrote:

http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.htm Maybe that can help?  smile

it came up with a 404 error.

Offline

 

#4 2011-07-17 12:09:42

msdosdude
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: .bat Help!

TornFusion wrote:

msdosdude wrote:

http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.htm Maybe that can help?  smile

it came up with a 404 error.

Sorry, here is the right link: http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.html  smile


http://i39.tinypic.com/2vkxppf.png
Freebie. Not a Scratch OS, a REAL OS you can boot to, by msdosdude.

Offline

 

#5 2011-07-17 12:12:31

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

hmm... NOPE.

Offline

 

#6 2011-07-17 12:14:18

msdosdude
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: .bat Help!

TornFusion wrote:

hmm... NOPE.

Dang.


http://i39.tinypic.com/2vkxppf.png
Freebie. Not a Scratch OS, a REAL OS you can boot to, by msdosdude.

Offline

 

#7 2011-07-17 12:21:59

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

i REALLY NEED IT NOW...

Offline

 

#8 2011-07-17 12:26:11

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

would RUNAS work?

My user name is Kiran, but I dont know what my domain is...

Offline

 

#9 2011-07-17 12:39:50

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

bump

Offline

 

#10 2011-07-17 12:40:06

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: .bat Help!

This code should work:

@echo off
runas /noprofile /user:administrator BLAH\BLAH\MORE BLAH\test.bat

Hope that helps.  smile


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#11 2011-07-17 12:43:07

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

ermm. didnt really help.

My username is Kiran.
The path to the file I want it to open is 'C:\Users\Kiran\Desktop\startup.bat\'
I own a windows7.

Offline

 

#12 2011-07-17 12:46:43

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

Helllpp!

Offline

 

#13 2011-07-17 12:49:53

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: .bat Help!

Download and install this, and then make the batch file say:

@echo off
sudo C:\Users\Kiran\Desktop\startup.bat


That will require you to put in a password to run it, but it will work.


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#14 2011-07-17 12:52:23

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

erm... it says passphrase? whats that? I havent set a pass yet.

i dont have a pass for my user.

I cant type either when it comes up.

Last edited by TornFusion (2011-07-17 12:56:33)

Offline

 

#15 2011-07-17 12:55:27

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: .bat Help!

Set one.  tongue


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#16 2011-07-17 12:56:48

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

fire219 wrote:

Set one.  tongue

sudo –password foobar cmd?

Offline

 

#17 2011-07-17 12:59:25

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

can you make it:

Password = a
Start as admin

PLEASE?

Offline

 

#18 2011-07-17 13:07:18

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: .bat Help!

I really don't know how the WinSudo thing works, so idk how to make it work w/o a password.  sad


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#19 2011-07-17 13:10:15

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

fire219 wrote:

I really don't know how the WinSudo thing works, so idk how to make it work w/o a password.  sad

then why recommend?

Offline

 

#20 2011-07-17 13:15:15

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: .bat Help!

TornFusion wrote:

fire219 wrote:

I really don't know how the WinSudo thing works, so idk how to make it work w/o a password.  sad

then why recommend?

Because I thought it was a Windows port of the Linux sudo, and I know how to work that.  tongue


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#21 2011-07-17 14:27:24

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Re: .bat Help!

Bump

Offline

 

Board footer