Sequence of commands

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
ciphershut
Posts: 5
Joined: 28 Feb 2016 06:32

Sequence of commands

#1 Post by ciphershut » 28 Feb 2016 06:38

Hi
I have bat file:
___
ECHO OFF
cipher /W:C:
shutdown -s
exit
____
But it just shutdown imediately, not done of cipher command.
how can i fix it?
PC is shutdown when cipher is done !
thx

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Sequence of commands

#2 Post by foxidrive » 28 Feb 2016 10:39

Some programs wait and some don't.

cipher could be anything - it may not even be called cipher :D
but the start command has a wait switch.

ciphershut
Posts: 5
Joined: 28 Feb 2016 06:32

Re: Sequence of commands

#3 Post by ciphershut » 28 Feb 2016 11:51

thx foxidrive,
I am is beginer :°)
i trying with start with wait option.
my big probleme is "cipher" :),.
i need simple, fast solution to absolute erasing of datas
you have idea ?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Sequence of commands

#4 Post by foxidrive » 29 Feb 2016 01:19

ciphershut wrote:i trying with start with wait option.


How did you go?

ciphershut
Posts: 5
Joined: 28 Feb 2016 06:32

Re: Sequence of commands

#5 Post by ciphershut » 01 Mar 2016 00:22

foxidrive wrote:
ciphershut wrote:i trying with start with wait option.


How did you go?


START /WAIT cipher /W:C:
SHUTDOWN -f -s -t 0 : is not work.

cipher /w:c:|more
shutdown -f -s -t 0 : is working

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Sequence of commands

#6 Post by foxidrive » 01 Mar 2016 11:06

ciphershut wrote:i need simple, fast solution to absolute erasing of datas


I can't follow what part is not working and how it fails, but can you explain what kind of secure erasure you need and on what kind of drive?

Do you need military level erasing of data from each sector on the drive?
Is it a flash drive?

ciphershut
Posts: 5
Joined: 28 Feb 2016 06:32

Re: Sequence of commands

#7 Post by ciphershut » 05 Mar 2016 00:09

foxidrive wrote:
ciphershut wrote:i need simple, fast solution to absolute erasing of datas


I can't follow what part is not working and how it fails, but can you explain what kind of secure erasure you need and on what kind of drive?

Do you need military level erasing of data from each sector on the drive?
Is it a flash drive?


I use cipher xxx|more and it is work.
mechanicc HDD.
i know that: impossible erase on flash drive?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Sequence of commands

#8 Post by foxidrive » 05 Mar 2016 05:06

Some discussion I read has suggested using an encrypted file on the drive, then all you need to do is to delete it.

ciphershut
Posts: 5
Joined: 28 Feb 2016 06:32

Re: Sequence of commands

#9 Post by ciphershut » 06 Mar 2016 13:01

foxidrive wrote:Some discussion I read has suggested using an encrypted file on the drive, then all you need to do is to delete it.

i thing this solution is not good. Because original datas to be deleten without encrypt.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Sequence of commands

#10 Post by foxidrive » 06 Mar 2016 19:15

ciphershut wrote:
foxidrive wrote:Some discussion I read has suggested using an encrypted file on the drive, then all you need to do is to delete it.

i thing this solution is not good. Because original datas to be deleten without encrypt.

You can encrypt the whole drive.

Your actual situation is unknown so we can't judge how to go about it.

miskox
Posts: 630
Joined: 28 Jun 2010 03:46

Re: Sequence of commands

#11 Post by miskox » 07 Mar 2016 04:13

You can try and use sdelete.exe from Sysinternals (https://technet.microsoft.com/en-us/sys ... elete.aspx). It returns to 'cmd' when it completes.

Saso

Post Reply