Permalänk
Medlem

Batch Hjälp

Hej

Fråga 1: Kan man få en Batch fil att starta en fil fast man inte vet sökvägen till Filen?

Fråga 2: kan man få datorn i viloläge med cmd/batch-fil? (kommando)

Tack på förhand!

Visa signatur

WS: Phenom 9850BE @ 3.0GHZ .:. 4GB Redline .:. 790-FX.:. 4870x2 .:. 1TB .:.Lian-Li PC-V2000 .:. Vattenkylning .:. Vista x64/Xp x86
Server: Sempron Le-1100 .:. 2GB xms2 .:. 1.6TB .:. Lian-li PC-A05.:. Windows home server
Väntar på : Deneb

Permalänk
Medlem

1: Va? Vad ska du starta, och varför?
2: Ja.

start rundll32 PowrProf.dll, SetSuspendState

Permalänk
Medlem
Citat:

Ursprungligen inskrivet av azoapes
1: Va? Vad ska du starta, och varför?
2: Ja.

start rundll32 PowrProf.dll, SetSuspendState

Håller på och leker lite. Tänkte fixa en enkel batch fil. När man startar den så letar den rätt på en viss spellista och spelar ca 10-15min sedan går datorn ner i vänteläge. Skulle vara skönt om man var oberoende av sökväg till spellista!

Kan du kommandot för det?

Visa signatur

WS: Phenom 9850BE @ 3.0GHZ .:. 4GB Redline .:. 790-FX.:. 4870x2 .:. 1TB .:.Lian-Li PC-V2000 .:. Vattenkylning .:. Vista x64/Xp x86
Server: Sempron Le-1100 .:. 2GB xms2 .:. 1.6TB .:. Lian-li PC-A05.:. Windows home server
Väntar på : Deneb

Permalänk

Om du ska öppna en fil automagiskt eller icke, så måste man ju veta vad som ska öppnas

Datorn kan ju inte veta vilken fil du vill öppna...

Men om det är en spellista, så måste du väl veta sökvägen till den filen?

Visa signatur

http://www.quickhelp.se - Uppdragsförmedling

Permalänk
Medlem
Citat:

Ursprungligen inskrivet av silversoft
Om du ska öppna en fil automagiskt eller icke, så måste man ju veta vad som ska öppnas

Datorn kan ju inte veta vilken fil du vill öppna...

Men om det är en spellista, så måste du väl veta sökvägen till den filen?

Ja vet att det låter konstigt. Men jag tänkte om det fanns någon inbyggd sök-funktion som kunde söka upp namnet på filen tex homo.mp3 och sedan starta den.

Edit: Finns det någon tidsfunktion för viloläge så man kan välja när datorn ska sova?

Visa signatur

WS: Phenom 9850BE @ 3.0GHZ .:. 4GB Redline .:. 790-FX.:. 4870x2 .:. 1TB .:.Lian-Li PC-V2000 .:. Vattenkylning .:. Vista x64/Xp x86
Server: Sempron Le-1100 .:. 2GB xms2 .:. 1.6TB .:. Lian-li PC-A05.:. Windows home server
Väntar på : Deneb

Permalänk
Medlem

shutdown -? ger:

Usage: shutdown [/i | /l | /s | /r | /a | /p | /h | /e] [/f]
[/m \\computer][/t xxx][/d [p:]xx:yy [/c "comment"]]

No args Display help. This is the same as typing /?
/? Display help. This is the same as not typing any options
/i Display the graphical user interface (GUI).
This must be the first option
/l Log off. This cannot be used with /m or /d option
/s Shutdown the computer
/r Shutdown and restart the computer
/a Abort a system shutdown.
This can only be used during the time-out period
/p Turn off the local computer with no time-out or warning.
This can only be used with /d option
/h Hibernate the local computer.
This can only be used with the /f option
/e Document the reason for an unexpected shutdown of a computer
/m \\computer Specify the target computer
/t xxx Set time-out period before shutdown to xxx seconds.
The valid range is 0-600, with a default of 30
/c "comment" Comment on the reason for the restart or shutdown.
Maximum of 127 characters allowed
/f Force running applications to close without forewarning users
/d [p:]xx:yy Provide the reason for the restart or shutdown
p indicates that the restart or shutdown is planned
xx is the major reason number (positive integer less than 256)
yy is the minor reason number (positive integer less than 65536)

således shudown /h ger dig hybernate(viloläge) det + en schemalagd aktivitet borde lösa din punkt 2.

Visa signatur

all we need is love.

Permalänk
Medlem
Citat:

Ursprungligen inskrivet av Isola
shutdown -? ger:

Usage: shutdown [/i | /l | /s | /r | /a | /p | /h | /e] [/f]
[/m \\computer][/t xxx][/d [p:]xx:yy [/c "comment"]]

No args Display help. This is the same as typing /?
/? Display help. This is the same as not typing any options
/i Display the graphical user interface (GUI).
This must be the first option
/l Log off. This cannot be used with /m or /d option
/s Shutdown the computer
/r Shutdown and restart the computer
/a Abort a system shutdown.
This can only be used during the time-out period
/p Turn off the local computer with no time-out or warning.
This can only be used with /d option
/h Hibernate the local computer.
This can only be used with the /f option
/e Document the reason for an unexpected shutdown of a computer
/m \\computer Specify the target computer
/t xxx Set time-out period before shutdown to xxx seconds.
The valid range is 0-600, with a default of 30
/c "comment" Comment on the reason for the restart or shutdown.
Maximum of 127 characters allowed
/f Force running applications to close without forewarning users
/d [p:]xx:yy Provide the reason for the restart or shutdown
p indicates that the restart or shutdown is planned
xx is the major reason number (positive integer less than 256)
yy is the minor reason number (positive integer less than 65536)

således shudown /h ger dig hybernate(viloläge) det + en schemalagd aktivitet borde lösa din punkt 2.

Aaah, tack så mycket

Visa signatur

WS: Phenom 9850BE @ 3.0GHZ .:. 4GB Redline .:. 790-FX.:. 4870x2 .:. 1TB .:.Lian-Li PC-V2000 .:. Vattenkylning .:. Vista x64/Xp x86
Server: Sempron Le-1100 .:. 2GB xms2 .:. 1.6TB .:. Lian-li PC-A05.:. Windows home server
Väntar på : Deneb