replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - start_process@
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

start_process@

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: D�sseldorf, Germany

PostPosted: Fri Mar 11, 2011 3:11 pm    Post subject: start_process@ Reply with quote

I want to remove a directory with "rmdir xxxx /s /q" and want to do this from within a programme. It is possible with cissue@, but it fails using start_process@. I think that I need the correct syntax but I don't find it. Can anyone help me?

Thanks and best regards
Wilfried
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Fri Mar 11, 2011 4:43 pm    Post subject: Reply with quote

You might be able to run cmd.exe, possibly with /p (or something) and then the command.

There will also probably be a Windows API function that will do this directly.
Back to top
View user's profile Send private message AIM Address
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: D�sseldorf, Germany

PostPosted: Sat Mar 12, 2011 8:43 am    Post subject: Reply with quote

If I use start_process@('cmd.exe','rmdir /s /q') then only a DOS window opens. I've tried a lot of variations but nothing works. RMDIR has the opprtunity that you can delete a directory even if it is not empty. The Windows API function RemoveDirectory only works if you first delete all files (and subdirectories), so it causes a lot of work before the directory is deleted.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Sat Mar 12, 2011 10:26 am    Post subject: Reply with quote

I think that there is a command switch that you need to use with cmd.exe.
You will need to look up the instructions for cmd.exe.
Yes Google does it again!

cmd.exe /c rmdir xxxx /s/q

You may need quotes etc.
Back to top
View user's profile Send private message AIM Address
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: D�sseldorf, Germany

PostPosted: Sat Mar 12, 2011 1:37 pm    Post subject: Reply with quote

Thank you, Paul!

Now I have the exact syntax, and it works perfectly: j = start_process@('cmd.exe /c','rmdir xxxx /s /q')

Regards - Wilfried
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
Location: Yateley, Hants, UK

PostPosted: Sat Mar 12, 2011 6:06 pm    Post subject: Reply with quote

The equivalent mkdir operation is catered for by a standard routine in the FTN77 library. I could have sworn that rmdir was there, but on looking, it isn't, although there is a rename subroutine and an attach subroutine and many others all potentially useful.

Experience suggests that those old routine still work.

Eddie
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group