Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / rename / move directory

Author
Message
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 26th Nov 2011 06:42
any chance we can rename, move or copy path(directory).
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 26th Nov 2011 10:06 Edited at: 26th Nov 2011 16:21
Try typing DELETE DIRECTORY then click in the middle of it when it turns blue then press the F1 key... note the directory has to be empty...

Regarding the other stuff... well theres delete file etc... you can always PERFORM CHECKLIST FOR FILES within a folder and use the CHECKLIST commands... look into those..

Moving is beyond me for now sorry... hope someone better equipped has some sunlight for that answer...

Also if you could also asK how you wish to use these commands... like on a local machine or via FTP... might shed some direction on the kind of code you require.

Hope this helped somewhat...

EDIT

NOTIVED A PECULIAR TYPO THERE... GLAD I SPOTTED IT... WHEN I DID...

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 26th Nov 2011 16:03
am talking about using DBpro
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 26th Nov 2011 16:19 Edited at: 26th Nov 2011 16:22
Hence the DBPro conmands... . did I miss something?

EDIT

also... write more than half a sentence in future... I have asked what your intention is... still no reply to it...

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 26th Nov 2011 16:46
I am making a software where folders are created and file are stored in it, however,, folder names might be the same, the user is asked to delete exisring folder, or, duplicate, or, locate the under similar name added with numbers.

I have a solution for that but am going through the lazy option to save time.

These commands don't exist in DBpro but it might exist in one of the forum pluggins.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 26th Nov 2011 17:05 Edited at: 26th Nov 2011 17:05
Quote: "I am making a software where folders are created and file are stored in it, however,, folder names might be the same, the user is asked to delete exisring folder, or, duplicate, or, locate the under similar name added with numbers."


Generally commands that fail do so silently. Like the following that creates a directory twice. The first time actually creates the directory but the second command with the same directory name fails automatically because the directory already exists.



The rest of the commands MrValentine mentioned are listed under the File Commands in the help files.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 26th Nov 2011 17:22
thanks a lot guys, the problem is bigger than that. however I solved the problem with applying the file commands on folders.

what surprizes me is ?
I always loose folders completeley when I try to rename or move them with file commands until I post this question. but the problem seems to be solved.

Login to post a reply

Server time is: 2026-07-10 11:24:36
Your offset time is: 2026-07-10 11:24:36