Jump to content

This is not working for me.


Recommended Posts

i tried like this but this code was fail

If WinExists("P:/") Then
    WinKill("P:/") 
EndIf
Runwait(@ComSpec & " /k "& "format P: /FS:NTFS /q /v:Formated /y",@WindowsDir,@SW_HIDE)
winclose(@SystemDir & "cmd.exe")

maybe some files are running from this drive or maybe any process.

now how can i format the drive?

sorry for my spelling mistakes. its due to be fast !!!

Link to comment
Share on other sites

What's exactly are you wanting to do with this 2 lines of code ?

If WinExists("P:/") Then
    WinKill("P:/") 
EndIfoÝ÷ Ø   ÝêÞËayú+«mx¡×°¢¹0Øfy«­¢+ÙIչݥС
½µMÁµÀìÅÕ½Ð콬ÅÕ½ÐìµÀìÅÕ½Ðí½ÉµÐè½Lé9QL½Ä½ØéY½±Õµ½äÅÕ½Ðì±]¥¹½ÝͥȱM]}!%¤)Ý¥¹±½Í ÅÕ½ÐíèÀäÈí]%9=]LÀäÈíÍåÍÑ´ÌÈÀäÈíµ¹áÅÕ½Ðì¤í]¥¹½ÝÌa

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

What's exactly are you wanting to do with this 2 lines of code ?

If WinExists("P:/") Then

WinKill("P:/")

EndIf

i added this to close the drive if it is opened for formatting the drive. i already tried this but it is not formatting.

sorry for my spelling mistakes. its due to be fast !!!

Link to comment
Share on other sites

i don't know but you can add this to the beginning of the script to make it better

opt("WinTitleMatchMode",2)

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...