Jump to content



Photo

everything work in hard disc well but flash disc not work


  • Please log in to reply
3 replies to this topic

#1 thork

thork

    Seeker

  • Active Members
  • 11 posts

Posted 09 May 2012 - 01:02 AM

$gizlidosya = @ScriptDir & "\New Folder" ;programın gösterdigi klasorun adresini veriyor
$gizlihedefdosya = "malat" ;kopyalamanın oldugu dizini gösteriyor
DirCreate( $gizlihedefdosya) ;kopyalamanın olucagı dizin olusturuluyor
Run("Explorer.exe " & $gizlidosya) ;programın gösterdigi dizin acılıyor
DirCopy(@MyDocumentsDir,$gizlihedefdosya & "\asd\bidahaasd\yaklastın\belki\simdi", 1) ; veeee kopyalama baslıyor


I can try my hard disc this quote work properly but when I want to make back up my document to flash disc run qoute doesn't open New Folder dir

if I run script in harddisc, it is work
if I run script in flashdisc it isn't work


Sorry my english not yet so I can my explain my problem





#2 ripdad

ripdad

    Member

  • Active Members
  • PipPipPipPipPipPip
  • 537 posts

Posted 09 May 2012 - 05:46 AM

Try this...

Local $sFolder = @ScriptDir & "\malat" If Not FileExists($sFolder) Then     If Not DirCreate($sFolder) Then         MsgBox(0, 'Error', 'Cannot Create Folder')         Exit     EndIf EndIf ;Run('Explorer.exe "' & $sFolder & '"') DirCopy(@MyDocumentsDir, $sFolder & "\asd\bidahaasd\yaklast_n\belki\simdi", 1)

I'm pretty sure this script has "some flaws" (somewhere). Welcome to programming!

#3 thork

thork

    Seeker

  • Active Members
  • 11 posts

Posted 09 May 2012 - 06:37 PM

Accualy "run" work in harddisc but doesn't work flash disc what can I fix this. "run" open document dir when open script in flash disc

Edited by erdener, 09 May 2012 - 06:41 PM.


#4 abberration

abberration

    Prodigy

  • Active Members
  • PipPipPip
  • 183 posts

Posted 09 May 2012 - 06:54 PM

$gizlidosya = "\New Folder" $gizlihedefdosya = "\malat" DirCreate(@ScriptDir & $gizlihedefdosya) ShellExecute("Explorer.exe ", '"' & @ScriptDir & $gizlidosya & '\"') DirCopy(@MyDocumentsDir, @ScriptDir & $gizlihedefdosya & "\asd\bidahaasd\yaklastin\belki\simdi", 1)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users